Hi All,<br><br>I am using Asterisk for one of my projects in OpenBTS. I am having the age old problem of "extension not found" when try to make<br>a call from one registered SIP phone to other registered SIP phone (two mobile phones connected to Asterisk via OpenBTS).<br>
<br>The exact error thrown on Asterisk CLI is<br><b>"chan_sip.c:20039 handle_request_invite: Call from [IMSI310410270465840] to extension "2103" rejected because extension not found"</b><br><br>I have provisioned for both the phones in <b>sip.conf</b> and <b>extensions.conf</b> under context<b> [sip-external]</b> but I suspect whatever entry given in extensions.conf, <br>
that file is not getting parsed and extensions are not read.<br><br>I have tried all the methods suggested by others in the Asterisk User community but still the problem remains same. If anybody knows the solution to this <br>
one, please let me know.<br><br>--<br>Abhinav<br><br><br>Copied below is my sip.conf and extensions.conf<br>===================================<br><br><b>extensions.conf</b><br>===============================<br>[globals]<br>
<br>;Using this Macro<br>[macro-dialGSM]<br>exten => s,1,Dial(SIP/${ARG1})<br>exten => s,2,Goto(s-${DIALSTATUS},1)<br>exten => s-CANCEL,1,Hangup<br>exten => s-NOANSWER,1,Hangup<br>exten => s-BUSY,1,Busy(30)<br>
exten => s-CONGESTION,1,Congestion(30)<br>exten => s-CHANUNAVAIL,1,playback(ss-noservice)<br>exten => s-CANCEL,1,Hangup<br><br>#include "extensions.local.conf"<br><br>[sip-external]<br>exten => 2101,1,Macro(dialGSM,2101)<br>
exten => 2102,1,Macro(dialGSM,IMSI310410270465840)<br>exten => 2103,1,Macro(dialGSM,IMSI404864430002302)<br><br>; check for local extensions first<br>include => sip-local<br>===============================<br><br>
<b>sip.conf</b><br>==============================<br>[general]<br>; Comment these out if no backhaul is available.<br>; Use the pair with the shortest latency.<br>;register => <a href="http://kestrel0:v01ptest@sip.ca1.link2voip.com:5060">kestrel0:v01ptest@sip.ca1.link2voip.com:5060</a><br>
;register => <a href="http://kestrel0:v01ptest@sip.ca2.link2voip.com:5060">kestrel0:v01ptest@sip.ca2.link2voip.com:5060</a><br>;register => <a href="http://kestrel0:v01ptest@sip.us1.link2voip.com:5060">kestrel0:v01ptest@sip.us1.link2voip.com:5060</a><br>
;register => <a href="http://kestrel0:v01ptest@sip.us2.link2voip.com:5060">kestrel0:v01ptest@sip.us2.link2voip.com:5060</a><br>;register => <a href="http://kestrel0:v01ptest@sip.nl1.link2voip.com:5060">kestrel0:v01ptest@sip.nl1.link2voip.com:5060</a><br>
;register => <a href="http://kestrel0:v01ptest@sip.nl2.link2voip.com:5060">kestrel0:v01ptest@sip.nl2.link2voip.com:5060</a><br>rtpstart=16386<br>rtpend=16482<br>relaxdtmf=yes<br><br><br>[softPhone]<br>callerid=2101<br>
canreinvite=no<br>type=friend<br>context=sip-external<br>allow=ulaw<br>allow=gsm<br>host=dynamic<br><br>; provisioned Thu Dec 13 17:15:10 2010<br>[IMSI310410270465840] ; ATnT SIM card IMSI<br>callerid=2102<br>canreinvite=no<br>
type=friend<br>context=sip-external<br>allow=gsm<br>host=dynamic<br>dtmfmode=info<br><br>; provisioned Thu Dec 14 12:15:10 2010<br>[IMSI404864430002302] ; Vodafone SIM card IMSI<br>callerid=2103<br>canreinvite=no<br>type=friend<br>
context=sip-external<br>allow=gsm<br>host=dynamic<br>dtmfmode=info<br>==============================<br>