[asterisk-users] Context issue
Adrian Marsh
Adrian.Marsh at ubiquisys.com
Fri Nov 12 11:08:38 CST 2010
Hi,
Running 1.4.15. I've a SIP user as below. My default context in
sip.conf is [incomming_pstn]
I'm having trouble with inbound calls going to the wrong context.
[test-ubi]
username=test-ubi
type=friend
secret=XXXXXXX
host=dynamic
canreinvite=no
context=testinbound
nat=yes
allow=ulaw
allow=gsm
allow=alaw
qualify=no
the testinbound context includes the code to prepend a 2 to the CLI
before passing it onto another context
[testinbound]
exten =>
_XXXX,1,ExecIF($["${RECORDSIP}"="TRUE"],Monitor,wav|${TIMESTAMP}-${CALLE
RID(num)}-${EXTEN}-${UNIQUEID}.WAV)
exten => _XXXX,n,NoOp(REWRITE CALLERID)
exten => _XXXX,n,ExecIf($[ "${LEN(${CALLERID(num)})}" = "4"
]|Set|CALLERID(num)=2${CALLERID(num)})
exten => _XXXX,n,Goto(local,${EXTEN},1)
However, when a call comes in, its being passed to the
[incomming_pstn] context instead of [testinbound].
The Outbound server is dialling:
-- Executing [114201 at from-sip-UK:2]
Dial("SIP/235012071833427-0a068a18", "SIP/test-ubi/4201|40|r") in new
stack
-- Called test-ubi/4201
And that test-ubi account on there has the same SIP account setup.
The inbound server seems to skip the testinbound context completely
though, jumping straight to incomming_pstn, but I've no idea why.
I think it should be going to the context defined in test-ubi
ubiphone*CLI>
-- Executing [4201 at incomming_pstn:1]
Answer("SIP/192.168.50.132-b7d4f6b0", "") in new stack
-- Executing [4201 at incomming_pstn:2]
SayDigits("SIP/192.168.50.132-b7d4f6b0", "2333") in new stack
-- <SIP/192.168.50.132-b7d4f6b0> Playing 'digits/2' (language 'en')
-- <SIP/192.168.50.132-b7d4f6b0> Playing 'digits/3' (language 'en')
.....
But any idea why ???
Thanks,
Adrian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20101112/85daf7e1/attachment-0001.htm
More information about the asterisk-users
mailing list