Thanks...I will check the gateway or try other gateway<br><br><div><span class="gmail_quote">On 11/28/06, <b class="gmail_sendername">Bogdan-Andrei Iancu</b> &lt;<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro
</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Sam,<br><br>According to SIP RFC the TO header is not used at all for routing - most
<br>probably you have an old gateway which is not SIP compliant anymore.<br>There is no mechanism in openser to change the TO header. The strip()<br>function affects only the RURI.<br><br>the authentication name *must* not be changed as the auth will failed -
<br>the auth response is computed based on the auth name known by the UAC.<br><br>regards,<br>bogdan<br><br>Sam Hsu wrote:<br><br>&gt; i use the strip() function to strip the prefix when call out<br>&gt; for example, prefix 0 to call out
<br>&gt; there are my sip invite message<br>&gt; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<br>&gt;<br>&gt; INVITE sip:0928117466@202.111.222.76:5060 SIP/2.0<br>&gt; Record-Route: &lt;sip:
<a href="http://211.111.222.102">211.111.222.102</a><br>&gt; &lt;<a href="http://211.111.222.102">http://211.111.222.102</a>&gt;;r2=on;lr=on;ftag=694064c4&gt;<br>&gt; Record-Route: &lt;sip:<a href="http://211.111.222.102">
211.111.222.102</a><br>&gt; &lt;<a href="http://211.111.222.102">http://211.111.222.102</a>&gt;;transport=tcp;r2=on;lr=on;ftag=694064c4&gt;<br>&gt; Content-Length: 324<br>&gt; Content-Type: application/sdp<br>&gt; Via: SIP/2.0/UDP 
<a href="http://211.23.176.102">211.23.176.102</a><br>&gt; &lt;<a href="http://211.23.176.102">http://211.23.176.102</a>&gt;;branch=z9hG4bK4eec.ecf680e4.0;i=1<br>&gt; Via: SIP/2.0/TCP <a href="http://192.168.123.5:5060">192.168.123.5:5060
</a><br>&gt; &lt;<a href="http://192.168.123.5:5060">http://192.168.123.5:5060</a>&gt;;received=<a href="http://220.132.138.7">220.132.138.7</a><br>&gt; &lt;<a href="http://220.132.138.7">http://220.132.138.7</a>&gt;;branch=z9hG4bK69486617
<br>&gt; To: &lt;<a href="mailto:sip:00928117466@211.111.222.102">sip:00928117466@211.111.222.102</a><br>&gt; &lt;mailto:<a href="mailto:sip">sip</a>:<a href="mailto:00928117466@211.111.222.102">00928117466@211.111.222.102
</a>&gt;&gt;<br>&gt; From: &quot;joepass&quot; &lt;<a href="mailto:sip:joepass@211.111.222.102">sip:joepass@211.111.222.102</a><br>&gt; &lt;mailto:<a href="mailto:sip">sip</a>:<a href="mailto:joepass@211.111.222.102">joepass@211.111.222.102
</a>&gt;&gt;;tag=694064c4<br>&gt; Supported: timer<br>&gt; Call-ID: <a href="mailto:95746504-39004973-1533c430-d8319d29@192.168.123.5">95746504-39004973-1533c430-d8319d29@192.168.123.5</a><br>&gt; &lt;mailto:<a href="mailto:95746504-39004973-1533c430-d8319d29@192.168.123.5">
95746504-39004973-1533c430-d8319d29@192.168.123.5</a>&gt;<br>&gt; CSeq: 26589 INVITE<br>&gt; User-Agent: IP SIP Phone/2.1.3<br>&gt; Max-Forwards: 69<br>&gt; Session-Expires: 1800<br>&gt; Allow: UPDATE,INFO,MESSAGE,REFER,NOTIFY,INVITE,ACK,OPTIONS,BYE,CANCEL
<br>&gt; Authorization: Digest<br>&gt; nonce=&quot;456ba868fbd62c72ca16fcdd04678168a8fa0683&quot;, username=&quot;joepass&quot;,<br>&gt; realm=&quot;<a href="http://votel-tech.com">votel-tech.com</a> &lt;<a href="http://votel-tech.com">
http://votel-tech.com</a>&gt;&quot;, uri=&quot;<br>&gt; <a href="mailto:sip:00928117466@211.111.222.102">sip:00928117466@211.111.222.102</a><br>&gt; &lt;mailto:<a href="mailto:sip">sip</a>:<a href="mailto:00928117466@211.111.222.102">
00928117466@211.111.222.102</a>&gt;&quot;,<br>&gt; response=&quot;73a8c869c2a42a12f0d920c2a7d6f068&quot;<br>&gt; P-IPRAuth: <a href="http://votel-tech.com">votel-tech.com</a> &lt;<a href="http://votel-tech.com">http://votel-tech.com
</a>&gt;<br>&gt; Contact: &lt;sip:joepass@220.111.222.7:1070&gt;<br>&gt; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<br>&gt;<br>&gt; in the example, the real number is 0928117466
<br>&gt; add prefix 0, so the final number is 00928117466<br>&gt; I see the INVITE part the id has strip the prefix 0<br>&gt; but<br>&gt; To: &lt; <a href="mailto:sip:00928117466@211.111.222.102">sip:00928117466@211.111.222.102
</a><br>&gt; &lt;mailto:<a href="mailto:sip">sip</a>:<a href="mailto:00928117466@211.111.222.102">00928117466@211.111.222.102</a>&gt;&gt;<br>&gt; and the Authorization part(uri) still keep on 00928117466<br>&gt;<br>&gt; My gateway seems to use this information to call out.
<br>&gt; So it cause some error respond.<br>&gt; If i call to the gateway directly(not through openser with number<br>&gt; 0928117466), it works.<br>&gt; How can i strip the &quot;To&quot; and &quot;Authorization&quot; part uri.
<br>&gt; thanks...<br>&gt;<br>&gt; Sam<br>&gt;<br>&gt;------------------------------------------------------------------------<br>&gt;<br>&gt;_______________________________________________<br>&gt;Users mailing list<br>&gt;
<a href="mailto:Users@openser.org">Users@openser.org</a><br>&gt;<a href="http://openser.org/cgi-bin/mailman/listinfo/users">http://openser.org/cgi-bin/mailman/listinfo/users</a><br>&gt;<br>&gt;<br><br></blockquote></div><br>