I’m using Sonetel provider and number 0111222333 is routed to my asterisk server.
I have installed X-lite in my Windows PC and I’m trying to get the calls 0111222333 routed to X-lite.
I have following configuratio in sip.conf
[code]register => xxxx@yyyy.com:zzzzzz@sip.sonetel.com
outboundproxy=sip.sonetel.com
[paul]
type=friend
dtmfmode=rfc2833
context=mercury
host=sip.sonetel.com
username=paul
secret=zzzzzzzz
nat=yes
fromdomain=mercuryh.com
outboundproxy=sip.sonetel.com
insecure=invite
disallow=All
allow=alaw
allow=ulaw
allow=gsm
[101]
type=peer
secret=secret
host=dynamic
dtmfmode=rfc2833
disallow=all
allow=ulaw
context=mercury[/code]
I have following configuration in extensions.conf
[code][mercury]
exten => paul,1,Answer
exten => paul,n,Playback(Enterprise-Welcome-message);
exten => paul,n, Hangup
exten => _00X.,1, Answer
exten => _00X.,n, Set(CALLERID(num)=paul)
exten => _00X.,n, Dial(SIP/${EXTEN}@paul)
exten => _00X.,n, Hangup
exten => s,1,Answer
exten => s,2,Dial(SIP/101)
[/code]
When I make the call, this is what I get in asterisk console,
== Using SIP RTP CoS mark 5
-- Executing [s@mercury:1] Answer("SIP/paul-00000017", "") in new stack
-- Executing [s@mercury:2] Dial("SIP/paul-00000017", "SIP/101,30") in new stack
== Using SIP RTP CoS mark 5
-- Called SIP/101
[Nov 21 01:32:42] WARNING[1824]: chan_sip.c:20245 handle_response_invite: Received response: "Forbidden" from '"+54" <sip:+54@xx.yyy.zzz.107>;tag=as4fe8e1ae'
== Everyone is busy/congested at this time (1:0/1/0)
-- Auto fallthrough, channel 'SIP/paul-00000017' status is 'CONGESTION'
asterisk*CLI>
What is going wrong? Please help.