Hi Sam,

According to SIP RFC the TO header is not used at all for routing - most probably you have an old gateway which is not SIP compliant anymore. There is no mechanism in openser to change the TO header. The strip() function affects only the RURI.

the authentication name *must* not be changed as the auth will failed - the auth response is computed based on the auth name known by the UAC.

regards,
bogdan

Sam Hsu wrote:

i use the strip() function to strip the prefix when call out
for example, prefix 0 to call out
there are my sip invite message
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
INVITE sip:[EMAIL PROTECTED]:5060 SIP/2.0
Record-Route: <sip:211.111.222.102 <http://211.111.222.102>;r2=on;lr=on;ftag=694064c4> Record-Route: <sip:211.111.222.102 <http://211.111.222.102>;transport=tcp;r2=on;lr=on;ftag=694064c4>
Content-Length: 324
Content-Type: application/sdp
Via: SIP/2.0/UDP 211.23.176.102 <http://211.23.176.102>;branch=z9hG4bK4eec.ecf680e4.0;i=1 Via: SIP/2.0/TCP 192.168.123.5:5060 <http://192.168.123.5:5060>;received=220.132.138.7 <http://220.132.138.7>;branch=z9hG4bK69486617 To: <sip:[EMAIL PROTECTED] <mailto:sip:[EMAIL PROTECTED]>> From: "joepass" <sip:[EMAIL PROTECTED] <mailto:sip:[EMAIL PROTECTED]>>;tag=694064c4
Supported: timer
Call-ID: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
CSeq: 26589 INVITE
User-Agent: IP SIP Phone/2.1.3
Max-Forwards: 69
Session-Expires: 1800
Allow: UPDATE,INFO,MESSAGE,REFER,NOTIFY,INVITE,ACK,OPTIONS,BYE,CANCEL
Authorization: Digest nonce="456ba868fbd62c72ca16fcdd04678168a8fa0683", username="joepass", realm="votel-tech.com <http://votel-tech.com>", uri=" sip:[EMAIL PROTECTED] <mailto:sip:[EMAIL PROTECTED]>", response="73a8c869c2a42a12f0d920c2a7d6f068"
P-IPRAuth: votel-tech.com <http://votel-tech.com>
Contact: <sip:[EMAIL PROTECTED]:1070>
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
in the example, the real number is 0928117466
add prefix 0, so the final number is 00928117466
I see the INVITE part the id has strip the prefix 0
but
To: < sip:[EMAIL PROTECTED] <mailto:sip:[EMAIL PROTECTED]>>
and the Authorization part(uri) still keep on 00928117466

My gateway seems to use this information to call out.
So it cause some error respond.
If i call to the gateway directly(not through openser with number 0928117466), it works.
How can i strip the "To" and "Authorization" part uri.
thanks...

Sam

------------------------------------------------------------------------

_______________________________________________
Users mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users

Reply via email to