<div dir="ltr">general context of sip.conf is as following:<div><br></div><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

[general]</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

port = 5566</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

bindaddr = 0.0.0.0</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

dbname = &lt;mysql db name&gt;</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

dbhost = &lt;mysql db host ip&gt;</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

dbuser = &lt;mysql db username&gt;</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

dbpass = &lt;mysql db password&gt;</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

context = others</blockquote><div><br></div><div>as here context is others so i add other context in extensions.ael as following:</div><div><br></div><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

context others {</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

   2001 =&gt; {</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

           Dial(SIP/2001);</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

   }</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

}</blockquote><div><br></div><div>Now I fwded opensips request to port 5566 but asterisk never listened it. then i tried with 5060 port and asterisk respond to it and call was established successfully. But I think it means that every request on 5060 will be fwded to others context and it will be unsecured. So can it be possible to do something that opensips will first register to asterisk and then asterisk only receive calls from registered opensips only?<br>

<br>Regards,<br><br>Saeed Akhtar<br><br>
<br><br><div class="gmail_quote">On Wed, Dec 30, 2009 at 12:43 PM, ram <span dir="ltr">&lt;<a href="mailto:talk2ram@gmail.com">talk2ram@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div>create a user in sip.conf</div>
<div> </div>
<div>Ram<br><br></div>
<div class="gmail_quote"><div><div></div><div class="h5">On Tue, Dec 29, 2009 at 5:47 PM, Saeed Akhtar <span dir="ltr">&lt;<a href="mailto:saeedakhtar.484@gmail.com" target="_blank">saeedakhtar.484@gmail.com</a>&gt;</span> wrote:<br>


</div></div><blockquote style="border-left:#ccc 1px solid;margin:0px 0px 0px 0.8ex;padding-left:1ex" class="gmail_quote"><div><div></div><div class="h5">
<div dir="ltr">hi all, 
<div>  I&#39;m configuring OpenSIPS with Asterisk. I used <span style="line-height:14px;font-family:&#39;Lucida Console&#39;, &#39;Andale Mono&#39;, &#39;Courier New&#39;, Courier;white-space:pre;color:rgb(102,102,102);font-size:12px">seturi(&quot;sip:2001@ASTERISK_IP:ASTERISK_PORT&quot;);<span style="line-height:normal;font-family:arial;white-space:normal;color:rgb(0,0,0);font-size:small"> to forward my call to Asterisk. Now Asterisk receives the call but shows a message that it can&#39;t transfer call to my extension because it says call from &#39; &#39; to &#39;2001&#39; cannot transfer because extension 2001 not found. extension 2001 is already there in default context. I think problem is that from extension is empty. Can anyone guide me what exactly is problem. Thanks</span></span></div>



<div><br>Regards,<br><br>Saeed Akhtar<br><br></div></div><br></div></div>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>

<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div></div>