So I took your advice and decided to use * to identify sip 2 sip calls. However, theres something wrong with my routing. I added route(6) to get authorize. Because when I&nbsp; try to dial sip to sip I get 407 proxy authentication required. Still after adding route(6), I still get the 407 proxy authentication required message. What is wrong? Route (1) is just the default message handler This is what I have:<br>  <br>  route[3] {<br>  <br>  &nbsp;&nbsp;&nbsp; # -----------------------------------------------------------------<br>  &nbsp;&nbsp;&nbsp; # INVITE Message Handler<br>  &nbsp;&nbsp;&nbsp; # -----------------------------------------------------------------<br>  <br>  &nbsp;&nbsp;&nbsp; if (!proxy_authorize("","subscriber")) {<br>  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; proxy_challenge("","0");<br>  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return;<br>  &nbsp;&nbsp;&nbsp; } else if (!check_from()) {<br>  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sl_send_reply("403", "Use
 From=ID");<br>  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return;<br>  &nbsp;&nbsp;&nbsp; };<br>  <br>  &nbsp;&nbsp;&nbsp;  consume_credentials();<br>  <br>  &nbsp;&nbsp;&nbsp; if (nat_uac_test("19")) {<br>  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; setflag(6);<br>  &nbsp;&nbsp;&nbsp; }<br>  <br>  &nbsp;&nbsp;&nbsp; lookup("aliases");<br>  &nbsp;&nbsp;&nbsp; if (uri!=myself) {<br>  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; route(4);<br>  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; route(1);<br>  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return;<br>  &nbsp;&nbsp;&nbsp; };<br>  &nbsp;&nbsp;&nbsp; <br>  &nbsp;&nbsp;&nbsp; if (uri=~"^sip:\*[0-9]*@"){<br>  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; xlog("Sip 2 Sip\n");<br>  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strip(1); #strip the * because we dont need it<br>  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; route(4);<br>  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; route(6);<br>  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; route(1);<br>  &nbsp;&nbsp;&nbsp;
 &nbsp;&nbsp;&nbsp; return;<br>  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>  &nbsp;&nbsp;&nbsp; };<br>  &nbsp;&nbsp;&nbsp; <br>  &nbsp;&nbsp;&nbsp; if  (!lookup("location")){<br>  &nbsp;&nbsp;&nbsp; <br>  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (uri=~"^sip:[0-9]*@") {&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; # International PSTN<br>  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; xlog("PSTN Gateway\n");<br>  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; route(4);<br>  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; route(5);<br>  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return;<br>  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; };<br>  &nbsp;&nbsp;&nbsp; <br>  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sl_send_reply("404", "User Not Found");<br>  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return;<br>  &nbsp;&nbsp;&nbsp; };<br>  <br>  &nbsp;&nbsp;&nbsp; route(4);<br>  &nbsp;&nbsp;&nbsp; route(1);<br>  }<br>  <br>  route[4] {<br>  <br> 
 &nbsp;&nbsp;&nbsp; # -----------------------------------------------------------------<br>  &nbsp;&nbsp;&nbsp; # NAT Traversal Section<br>  &nbsp;&nbsp;&nbsp; #  -----------------------------------------------------------------<br>  <br>  &nbsp;&nbsp;&nbsp; if (isflagset(6)) {<br>  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; force_rport();<br>  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; fix_nated_contact();<br>  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; force_rtp_proxy();<br>  &nbsp;&nbsp;&nbsp; }<br>  }<br>  <br>  route[5] {<br>  <br>  &nbsp;&nbsp;&nbsp; # -----------------------------------------------------------------<br>  &nbsp;&nbsp;&nbsp; # PSTN Handler<br>  &nbsp;&nbsp;&nbsp; # -----------------------------------------------------------------<br>  &nbsp;&nbsp;&nbsp; xlog("Routed to route 5\n");<br>  &nbsp;&nbsp;&nbsp; rewritehostport("pstn.gateway:5060");  <br>  <br>  &nbsp;&nbsp;&nbsp; avp_write("i:45", "inv_timeout");<br>  <br>  &nbsp;&nbsp;&nbsp; route(1);<br>  }<br>  <br> 
 route[6] {<br>  &nbsp;&nbsp;&nbsp; <br>  &nbsp;&nbsp;&nbsp; if (!proxy_authorize("","subscriber")) {<br>  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; proxy_challenge("","0");<br>   &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return;<br>  &nbsp;&nbsp;&nbsp; } else if (!check_from()) {<br>  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sl_send_reply("403", "Use From=ID");<br>  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return;<br>  &nbsp;&nbsp;&nbsp; };<br>  }<br>  <br>  <br>  onreply_route[1] {<br>  <br>  &nbsp;&nbsp;&nbsp; if (isflagset(6) &amp;&amp; status=~"(180)|(183)|2[0-9][0-9]") {<br>  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (!search("^Content-Length:[ ]*0")) {<br>  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; force_rtp_proxy();<br>  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; };<br>  &nbsp;&nbsp;&nbsp; };<br>  <br>  &nbsp;&nbsp;&nbsp; if (nat_uac_test("1")) {<br>  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; fix_nated_contact();<br>  &nbsp;&nbsp;&nbsp; };<br>  }<br>  <br>  <br>
 <b><i>Bogdan-Andrei Iancu &lt;bogdan@voice-system.ro&gt;</i></b> wrote: Hi,<br> <br> that's right.  For example SIPURA ATAs with two lines but online one <br> terminal use # for line selection....<br> you better use a digit that does not overlap with the PSTN dialling plan.<br> <br> regards,<br> bogdan<br> <br> Glenn Dalgliesh wrote:<br> <br> &gt;Well I would becarefull using # since some UA's use # to terminate digit input and dial..... Not positive but I think * would be a better choice.<br> &gt;---------------------<br> &gt;Sent with ChatterEmail<br> &gt;True push email for the Treo Smartphone<br> &gt;www.chatteremail.com<br> &gt;<br> &gt;<br> &gt;-----Original Message-----<br> &gt;From: Kenny Chua <strain15 @yahoo.com=""><br>&gt;Date: Wednesday, Jun 28, 2006 10:56 pm<br>&gt;Subject: [Users] Using # for Sip 2 Sip calls<br>&gt;<br>&gt;Hello, I was wondering how to set my dialing plans to use # only for Sip 2 Sip calls. A user has to press the # sign if he wants to call
 another sip number, and just dial normally for PSTN calls?<br>&gt; <br>&gt; I came up with something like this:  <br>&gt;     lookup("aliases");<br>&gt;     if (uri=~"^sip:#[0-9]*@"){<br>&gt;         xlog("Sip 2 SIP\n");<br>&gt;         route(4);<br>&gt;         route(1);<br>&gt;         return;<br>&gt;     };<br>&gt; <br>&gt; Which of course don't work. So I'll need help. I know its possible to use 9 for PSTN calls, but I'm sure that you can use # for Sip 2 Sip. Please help me out here. Thank you.<br>&gt; <br>&gt;   <br>&gt;---------------------------------<br>&gt;Do you Yahoo!?<br>&gt; Get on board. You're invited to try the new Yahoo! Mail Beta.<br>&gt;--0-591390942-1151549737=:48905<br>&gt;Content-Type: text/html; charset=iso-8859-1<br>&gt;Content-Transfer-Encoding: 8bit<br>&gt;<br>&gt;Hello, I was wondering how to set my dialing plans to use # only for Sip 2 Sip calls. A user has to press the # sign if he wants to call another sip number, and just dial normally for
 PSTN calls?<br> <br> I came up with something like this: <br> &nbsp;&nbsp;&nbsp; lookup("aliases");<br>  &nbsp;&nbsp;&nbsp; if (uri=~"^sip:#[0-9]*@"){<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; xlog("Sip 2 SIP\n");<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; route(4);<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; route(1);<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return;<br> &nbsp;&nbsp;&nbsp; };<br> <br> Which of course don't work. So I'll need help. I know its possible to use 9 for PSTN calls, but I'm sure that you can use # for Sip 2 Sip. Please help me out here. Thank you.<br> </strain15> <div> <br>&gt;  </div> <p>&#32;
        
                <hr size=1>Sneak preview the <a href="http://us.rd.yahoo.com/evt=40762/*http://www.yahoo.com/preview"> all-new Yahoo.com</a>. It's not radically different. Just radically better.