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 [114...@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 [4...@incomming_pstn:1] Answer("SIP/192.168.50.132-b7d4f6b0", "") in new stack -- Executing [4...@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
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users