<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 = <mysql db name></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 = <mysql db host ip></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 = <mysql db username></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 = <mysql db password></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 => {</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"><<a href="mailto:talk2ram@gmail.com">talk2ram@gmail.com</a>></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"><<a href="mailto:saeedakhtar.484@gmail.com" target="_blank">saeedakhtar.484@gmail.com</a>></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'm configuring OpenSIPS with Asterisk. I used <span style="line-height:14px;font-family:'Lucida Console', 'Andale Mono', 'Courier New', Courier;white-space:pre;color:rgb(102,102,102);font-size:12px">seturi("sip:2001@ASTERISK_IP:ASTERISK_PORT");<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't transfer call to my extension because it says call from ' ' to '2001' 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>