i use the strip() function to strip the prefix when call out<br>for example, prefix 0 to call out<br>there are my sip invite message<br>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
<br>INVITE sip:0928117466@202.111.222.76:5060 SIP/2.0<br>Record-Route: &lt;sip:<a href="http://211.111.222.102">211.111.222.102</a>;r2=on;lr=on;ftag=694064c4&gt;<br>Record-Route: &lt;sip:<a href="http://211.111.222.102">211.111.222.102
</a>;transport=tcp;r2=on;lr=on;ftag=694064c4&gt;<br>Content-Length: 324<br>Content-Type: application/sdp<br>Via: SIP/2.0/UDP <a href="http://211.23.176.102">211.23.176.102</a>;branch=z9hG4bK4eec.ecf680e4.0;i=1<br>Via: SIP/2.0/TCP 
<a href="http://192.168.123.5:5060">192.168.123.5:5060</a>;received=<a href="http://220.132.138.7">220.132.138.7</a>;branch=z9hG4bK69486617<br>To: &lt;<a href="mailto:sip:00928117466@211.111.222.102">sip:00928117466@211.111.222.102
</a>&gt;<br>From: &quot;joepass&quot; &lt;<a href="mailto:sip:joepass@211.111.222.102">sip:joepass@211.111.222.102</a>&gt;;tag=694064c4<br>Supported: timer<br>Call-ID: <a href="mailto:95746504-39004973-1533c430-d8319d29@192.168.123.5">
95746504-39004973-1533c430-d8319d29@192.168.123.5</a><br>CSeq: 26589 INVITE<br>User-Agent: IP SIP Phone/2.1.3<br>Max-Forwards: 69<br>Session-Expires: 1800<br>Allow: UPDATE,INFO,MESSAGE,REFER,NOTIFY,INVITE,ACK,OPTIONS,BYE,CANCEL
<br>Authorization: Digest nonce=&quot;456ba868fbd62c72ca16fcdd04678168a8fa0683&quot;, username=&quot;joepass&quot;, realm=&quot;<a href="http://votel-tech.com">votel-tech.com</a>&quot;, uri=&quot;<a href="mailto:sip:00928117466@211.111.222.102">
sip:00928117466@211.111.222.102</a>&quot;, response=&quot;73a8c869c2a42a12f0d920c2a7d6f068&quot;<br>P-IPRAuth: <a href="http://votel-tech.com">votel-tech.com</a><br>Contact: &lt;sip:joepass@220.111.222.7:1070&gt;<br>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
<br>in the example, the real number is 0928117466<br>add prefix 0, so the final number is 00928117466<br>I see the INVITE part the id has strip the prefix 0<br>but <br>To: &lt;<a href="mailto:sip:00928117466@211.111.222.102">
sip:00928117466@211.111.222.102</a>&gt;<br>and the Authorization part(uri) still keep on 00928117466<br><br>My gateway seems to use this information to call out. <br>So it cause some error respond.<br>If i call to the gateway directly(not through openser with number 0928117466), it works.
<br>How can i strip the &quot;To&quot; and &quot;Authorization&quot; part uri.<br>thanks...<br><br>Sam<br>