Just using your configuration file for minimal changes<div><br></div><div>1- Add this line in the defines</div><div><br></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">#!define WITH_PSTN</font></div>
<div><br></div><div>2- Change the lines where PSTN _ GW IP/PORT are defined</div><div><br></div><div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">#!ifdef WITH_PSTN</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"># PSTN GW Routing</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">#</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"># - pstn.gw_ip: valid IP or hostname as string value, example:</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">pstn.gw_ip = &quot;10.0.0.101&quot; desc &quot;My Asterisk SERVER Address&quot;</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">pstn.gw_port = &quot;7160&quot;</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">#</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"># - by default is empty to avoid misrouting</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">#!endif</font></div></div><div><br></div><div>3- Change the condition accroding to your usage in [PSTN] route</div><div><br></div><div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><span class="Apple-tab-span" style="white-space:pre">        </span>if(!($rU=~&quot;^(\+|00)[1-9][0-9]{3,20}$&quot;))</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><span class="Apple-tab-span" style="white-space:pre">                </span>return;</font></div><div><br></div>I think this should work ideally, if nothing has been changed from the original configuration file.</div>
<div><br></div><div>Regards,</div><div>Sammy.</div><div><br></div><div><br></div><div><br><div class="gmail_quote">On Thu, Nov 24, 2011 at 4:28 PM, arif tuhin <span dir="ltr">&lt;<a href="mailto:etothepowerpi@hotmail.com">etothepowerpi@hotmail.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><div dir="ltr">
kamailio is important because it also drives several mediaproxy. I will try that and post any update. Thank you.<br><br><div><hr>Date: Thu, 24 Nov 2011 16:25:00 +0500<div><div class="h5"><br>From: <a href="mailto:govoiper@gmail.com" target="_blank">govoiper@gmail.com</a><br>
To: <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>Subject: Re: [SR-Users] Problem to relay sip message recieved port 9090 to asterisk port 7160<br><br>You can take sip trace using sipgrep/ngrep or tcpdump/tshark. Also I was thinking if its just a matter of port forwarding then why deploy Kamailio why not just use two/three iptables lines and forward to asterisk IP:PORT !!?<div>

<br></div><div>Hhow about you follow some asterisk-kamailio integration post and change the ip/port of asterisk from there and you&#39;ll be ready to rock in just half an hour or so  !!</div><div><br></div><div>Regards,</div>

<div>Sammy.<br><br><div>On Thu, Nov 24, 2011 at 3:08 PM, arif tuhin <span dir="ltr">&lt;<a href="mailto:etothepowerpi@hotmail.com" target="_blank">etothepowerpi@hotmail.com</a>&gt;</span> wrote:<br><blockquote style="border-left:1px #ccc solid;padding-left:1ex">





<div><div dir="ltr">
How can i get the Sip trace? if you can provide me any details it will be helpful. Also i have attached kamailio.cfg with the mail. Thank you.<br><br><div><hr>Date: Tue, 22 Nov 2011 18:18:27 +0500<br>From: <a href="mailto:govoiper@gmail.com" target="_blank">govoiper@gmail.com</a><br>

To: <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>Subject: Re: [SR-Users] Problem to relay sip message recieved port 9090 to asterisk port 7160<div><div><br>
<br><div>Hi,</div><div><br></div>Can you capture a sip trace on Kamailio server for this, also paste your configuration file ! so someone can figure out.<div><br></div><div>Regards,</div><div>Sammy.<br><br><div>
On Tue, Nov 22, 2011 at 5:14 PM, arif tuhin <span dir="ltr">&lt;<a href="mailto:etothepowerpi@hotmail.com" target="_blank">etothepowerpi@hotmail.com</a>&gt;</span> wrote:<br><blockquote style="border-left:1px #ccc solid;padding-left:1ex">






<div><div dir="ltr">
I&#39;m Trying to relay sip messages from sip client to asterisk. Kamailio should accept the msg on 9090 udp port and it will forward the sip message to 7160 udp port of Asterisk.<br>I thought the default cfg file will be enough to accomplish this simple task. But kamailio is receiving the msg ok but its not forwarding the msg. Another interesting thing is if i enable tls and give a tls port of kamailio , it easily forwards and the client registers ok.<br>


With Best Regards<br>                                               </div></div>
<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a></div></div></div>                                               </div></div>
<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a></div></div></div>                                               </div></div>
<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div>