<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>Barry,</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;">It solved with your guidance.</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;">Thanx!</div><div><br></div>  <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1">  <b><span style="font-weight:bold;">Απο:</span></b> Barry Flanagan &lt;barry@flanagan.ie&gt;<br> <b><span style="font-weight: bold;">Προς:</span></b> aaaa aaaa &lt;indefix1@yahoo.gr&gt;; Kamailio
 (SER) - Users Mailing List &lt;sr-users@lists.sip-router.org&gt; <br> <b><span style="font-weight: bold;">Στάλθηκε:</span></b> 10:35 μ.μ. Κυριακή, 31 Μαρτίου 2013<br> <b><span style="font-weight: bold;">Θέμα:</span></b> Re: [SR-Users] Problem with Realtime Kamailio-Asterisk integration<br> </font> </div> <br><div id="yiv1494142828"><div dir="ltr">On 30 March 2013 21:32, aaaa aaaa <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:indefix1@yahoo.gr" target="_blank" href="mailto:indefix1@yahoo.gr">indefix1@yahoo.gr</a>&gt;</span> wrote:<br><div class="yiv1494142828gmail_extra"><div class="yiv1494142828gmail_quote"><blockquote class="yiv1494142828gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex;">

<div><div style="font-size:12pt;"><div><div><font face="times new roman, new york, times, serif">Hello,</font></div><div style="background-color:transparent;">

<font face="times new roman, new york, times, serif">I followed the step by step guide (<a rel="nofollow" target="_blank" href="http://kb.asipto.com/asterisk:realtime:kamailio-3.3.x-asterisk-10.7.0-astdb">http://kb.asipto.com/asterisk:realtime:kamailio-3.3.x-asterisk-10.7.0-astdb</a>) that describe the realtime integration between Kamailio and Asterisk. I have no problem with registration but when I try a call from 101 to 102 I get the followng error:</font></div>

<div style="background-color:transparent;"><font face="times new roman, new york, times, serif">&nbsp;</font></div><div style="background-color:transparent;"><font face="times new roman, new york, times, serif">[Mar 31 01:18:44] NOTICE[32330][C-00000006]: chan_sip.c:25195 handle_request_invite: Call from '101' (<a rel="nofollow" target="_blank"  href="http://192.168.1.100:5060/">192.168.1.100:5060</a>) to extension '103' rejected
 because extension not found in context 'DEFAULT NULL'.</font></div><div style="font-size:12pt;"></div></div></div></div></blockquote><div><br></div><div><br></div><div style="">Looks like you have an issue with your database table. The context being returned from the database appears to be "DEFAULT NULL" which is definitely not what you want. I don't know how you ended up with that value in your db by following the instructions.</div>

<div style=""><br></div><div style="">Quick fix might be to change the value of the field sipusers.context for all entries to something &nbsp;- say "mycontext" and then in your asterisk extensions.conf make sure that you are defining your extensions in this context, like so:</div>

<div style=""><br></div><div style="">&nbsp;[mycontext]</div><div style=""><div>; our phones use 3 digit extensions, starting with 1</div><div>exten =&gt; _1XX,1,Dial(SIP/${EXTEN})</div><div>exten =&gt; _1XX,n,Voicemail(${EXTEN},u)</div>

<div>exten =&gt; _1XX,n,Hangup</div><div>exten =&gt; _1XX,101,Voicemail(${EXTEN},b)</div><div>exten =&gt; _1XX,102,Hangup</div></div><div style=""><br></div><div style="">(You will need to reload/restart Asterisk after making these changes)&nbsp;</div>

<div style=""><br></div><div style="">The issue you are having is an Asterisk one, not Kamailio and would be better asked in the Asterisk list if you dont get it working fr m the above.. &nbsp;</div><div>&nbsp;</div><div><br></div><div style="">

Hope this helps.</div><div style=""><br></div><div style="">-Barry</div><div style=""></div></div><br></div><div class="yiv1494142828gmail_extra"><br></div></div>
</div><br><br> </div> </div>  </div></body></html>