Hello,

On 1/3/11 6:42 PM, Klaus Darilion wrote:


Am 03.01.2011 16:51, schrieb Bernhard Suttner:
Hi,

what is the best way to replace the userpart of the SIP-To URI with the content of a pseudo variable?

textops module:

e.g. use http://www.kamailio.org/docs/modules/3.1.x/modules_k/textops.html#id2910302

you could also remove_hf("to") and add a new header
append_hf("To: ...");
starting with 3.1.0, you can do simply:

$tU = "12345";

But be aware you have to do it only once, or call msg_apply_changes() before doing another one.

Since 3.1.0, From and To header attributes: display name, username and domain are writable via PVs, with the constraint stated above.

Cheers,
Daniel


some devices do not like if the To gets changed. In this case you have to reverse the change in the responses and keep track of cahnges for in-dialog messages.

Anyway - at the least the totag must not be changed (if present)

regards
klaus

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

--
Daniel-Constantin Mierla
Kamailio (OpenSER) Advanced Training
Jan 24-26, 2011, Irvine, CA, USA
http://www.asipto.com


_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to