Hello,
after reading some documents and possible solutions on tutorial I thought to use two different approaches:
- My Gateway will send only one registration request with the number 30139632 (but on the gateway even the numbers 30139633, 30139634 and 30139635 are configured). So I think that when an incoming call addressed to any number should be sent to the same interface where 30139632 is registered.
I thought to do in this way
extension.config file
[general]
OUTBOUNDTRUNK = ??
[outbound-local]
exten => 3013963[2-5]1,Dial(${OUTBOUNDTRUNK}/${EXTEN})
The problem is that I don’t know how to find the outbound interface on which the defualt number is registered.
- Using a sip trunk
in the following my configuration:
sip.config
[general]
register => 30136932:31039632@serversip.sip.net
[trunk]
type=friend
secret=30139632
username=30139632
host=serversip.sip.net
fromdomain=sipserver.sip.net
context=tslab
[30139630]
type=friend
username=30139630
secret=30139630
host=dynamic
context=tslab
[30139631]
type=friend
username=30139631
secret=30139631
host=dynamic
context=tslab
[30139632]
type=friend
username=30139632
secret=30139632
host=dynamic
context=tslab
[30139633]
type=friend
username=30139633
secret=30139633
host=dynamic
context=tslab
[30139634]
type=friend
username=30139634
secret=30139634
host=dynamic
context=tslab
[30139635]
type=friend
username=30139635
secret=30139635
host=dynamic
context=tslab
and the extension.conf
[tslab]
exten => 30139630,1,Dial(SIP/30139630,r)
exten => 30139631,1,Dial(SIP/30139631,r)
exten => s,1,Log(NOTICE, Incoming call from ${CALLERID(all)}
exten => 3013963[2-5],n,Dial(SIP/trunk/${EXTEN},r)
I tried to call from 30139631 to 30139632, but it doesn’t work.
Is there someone who can give me some advices or help me in the configuration?
Thanks in advance to everybody