<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi there </div><div>Pinging was ok, but it was another Gateway issue. Thanks for your reply. It works now.</div><div>I've another question. </div><div>Is there an other possibility to do such calls without rewrite the host?</div><div>I mean Phone 1 would call Phone 2 and Host1 (OpenSips1) should know that the destination is in the other subnet and forward the invite? </div><div>Or is the rewritehost the best possibility to do that?</div><div><br></div><div>Regards</div><div>Duc</div><br><div><div>Am 11.11.2009 um 12:00 schrieb <a href="mailto:users-request@lists.opensips.org">users-request@lists.opensips.org</a>:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">So this might be a stupid question, but is OpenSIPS1 able to ping<br>OpenSIPS2??? I am wondering if you Network Gateway/Router is the issue. If<br>you can ping then what do you see on OpenSIPS2 when you perform an ngrep for<br>the SIP packets?<br><br>On Tue, Nov 10, 2009 at 8:27 PM, Duc-Lam Tran <<a href="mailto:dltran1983@gmail.com">dltran1983@gmail.com</a>> wrote:<br><br><blockquote type="cite">Hi there<br></blockquote><blockquote type="cite">I got 2 Subnets with the addresses 192.168.1.0 and 172.31.10.0<br></blockquote><blockquote type="cite">Between those two OpenSips is a Linux Debian Gateway installed with IP<br></blockquote><blockquote type="cite">forwarding and 2 Network Interfaces.<br></blockquote><blockquote type="cite">OpenSips1 ---- Gateway ---- OpenSips2<br></blockquote><blockquote type="cite">My Goal is to config the OpenSips that i can call from Subnet 1 to<br></blockquote><blockquote type="cite">Subnet 2 using Prefixes.<br></blockquote><blockquote type="cite">I got a Sipphone at Subnet 1 (Callnumber 1000) and another at subnet 2<br></blockquote><blockquote type="cite">(1001)<br></blockquote><blockquote type="cite">My configutarion of opensips.cfg for prefix calling is:<br></blockquote><blockquote type="cite">if (uri=~"<a href="sip:01[0-9]+@">sip:01[0-9]+@</a>) {<br></blockquote><blockquote type="cite"> strip(2);<br></blockquote><blockquote type="cite"> rewritehost("192.168.1.2"); // ip from opensips1<br></blockquote><blockquote type="cite"> t_relay();<br></blockquote><blockquote type="cite"> exit;<br></blockquote><blockquote type="cite">}<br></blockquote><blockquote type="cite">--> if I dial 01-1000 (01 Prefix) from agent 2 than i should get a<br></blockquote><blockquote type="cite">ring at agent 1. but it doesnt work (time out)<br></blockquote><blockquote type="cite">is this code correct? did i forget something? or is there another<br></blockquote><blockquote type="cite">possibility to do such calls?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Thanks for your help in advance.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Regards<br></blockquote><blockquote type="cite">Duc<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">Users mailing list<br></blockquote><blockquote type="cite"><a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br></blockquote><blockquote type="cite"><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br></blockquote></span><br class="Apple-interchange-newline"></blockquote></div><br></body></html>