Hi Sammy,

What version of OpenSIPS are you using? Also, are there any errors in your logs?

Regards,

Razvan Crainea
OpenSIPS Developer


On 21.07.2011 12:06, sammy wrote:
Hi,guys.

When one call from PSTN call to Opensips, I want to change the From part in INVITE message as below:
change
From: 01088331234 <sip:01088331234@192.168.30.44:35060>;tag=1
to
From: 88888888 <sip:88888888@192.168.30.44:35060>;tag=1

use uac_replace_from("88888888","sip:88888888@192.168.30.44:35060")
but when i capture the sip message, the old from is still there in the INVITE message and new from part has not ??From?? before display name like this:

INVITE sip:4001234567@192.168.30.47:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.30.44:35060;branch=z9hG4bKd5b6.c54a788.0
From: 01088331234 <sip:01088331234@192.168.30.44:35060>;tag=1 -->here, old from not remove by uac_replace_from() 88888888 <sip:88888888@192.168.30.44:35060> -->here, new from has not "From: " before 88888888
To: 4001234567<sip:4001234567@192.168.30.47:5070>
Call-ID: 1-20856@192.168.30.40
CSeq: 1 INVITE
Contact: sip:01088331234@192.168.30.44:35060
Max-Forwards: 68
Expires: 3600

1. How can uac_replace_from function work as I want?
2. How to replace Contact uri name from 01088331234 to 88888888?

Regards,
Sammy




_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to