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@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