Hello everyone;
I would like to rewrite the "To" field of all the SIP messages OpenSER receives in order to make some tests. Such a function exists for the originating part using rewriteuri or rewritehost, but I could not find anything for the destination part. Is it possible ? If yes, does somebody have a clue ? It would be very helpful.
Thank you very much in advances.
Best Regards, Skander
Hi Skender,
See the textops module for the subst() / replace() functions. http://www.openser.org/docs/modules/1.3.x/textops.html
Regards, Bogdan
Skender Benattia wrote:
Hello everyone;
I would like to rewrite the "To" field of all the SIP messages OpenSER receives in order to make some tests. Such a function exists for the originating part using rewriteuri or rewritehost, but I could not find anything for the destination part. Is it possible ? If yes, does somebody have a clue ? It would be very helpful.
Thank you very much in advances.
Best Regards, Skander
Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users
On Tuesday 05 February 2008 16:49:50 Bogdan-Andrei Iancu wrote:
Hi Skender,
See the textops module for the subst() / replace() functions. http://www.openser.org/docs/modules/1.3.x/textops.html
Hi, why not just using the following?
remove_hf("To"); append_hf("To: <sip:XXXXXXXX@XXXXXXXX\r\n");
AFAIK it should work.
Sure it would work - possibilities are many. But depends of how much of the header you want to change.
Regards, Bogdan
Iñaki Baz Castillo wrote:
On Tuesday 05 February 2008 16:49:50 Bogdan-Andrei Iancu wrote:
Hi Skender,
See the textops module for the subst() / replace() functions. http://www.openser.org/docs/modules/1.3.x/textops.html
Hi, why not just using the following?
remove_hf("To"); append_hf("To: <sip:XXXXXXXX@XXXXXXXX\r\n");
AFAIK it should work.