[SR-Users] subst + insert_hf issue
Igor Potjevlesch
igor.potjevlesch at gmail.com
Wed Jul 1 17:34:04 CEST 2015
Hello,
I'm doing a subst on the From header for some particular cases, like this
one: subst('/^(From|f):(.*)<sip:(.*)@/\1: "Anonymous" <sip:\3@/g');
In the same route (REQUEST_ROUTE called "INVITE"), I do the following:
insert_hf("X-CarrierName: $avp(s:carrier_id)\r\n");
For many User-Agent, the X-CarrierName header is inserted after the @ into
the user part of the From. So the From: looks like this:
From:"Anonymous" <sip:0123456789 at X-CarrierName: ABCDE\r\n
The domain name part of the From is on the next line:
<domain>:5060>;tag=3fdce0-a658bfa-13c4-50029-55941ccd-5eab9369-55941ccd\r\n
I can't reproduce.
The only potential explanation is that this impact the User-Agent that have
the From at the top of the headers.
If someone know what could going wrong here.
Regards,
Igor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150701/4bd3f450/attachment.html>
More information about the sr-users
mailing list