[OpenSIPS-Users] Rewrite all uri user part in sip messages

Mickael Hubert m.hubert at hexanet.fr
Thu Apr 17 15:05:42 CEST 2014


Hi Razvan,
thanks a lot for your response.

I suspected that there was no way ;)

Best regards


2014-04-17 14:35 GMT+02:00 Răzvan Crainea <razvan at opensips.org>:

> Hi, Michael!
>
> There is no function that allows you to change the whole SIP message. In
> order to change the From/To header, you have to use uac_replace_from/to()
> functions from the uac module.
>
> Best regards,
>
> Razvan Crainea
> OpenSIPS Core Developer
> http://www.opensips-solutions.com
>
>
> On 04/17/2014 12:59 PM, Mickael Hubert wrote:
>
>> Hi list,
>>
>> I want rewrite user part in all uris.
>>
>> Ex:
>>
>> INVITE -- <sip:*+33*XXXXXXXXX at ....> --> OpenSIPS --
>> <sip:*0*XXXXXXXXX at ....> --> Client X
>>
>>
>>
>> I already use this command in textops module:
>> /subst_user('/\+33/0/g');/
>>
>>
>> It's work fine, but it's just r-ruri is changed, no From header or To
>> header uri.
>>
>> Have you any idea please to change all uris ?
>>
>> thanks in advance
>>
>>
>> --
>> Cordialement
>>
>> HUBERT Mickaël
>> Ingénieur VOIP - Hexanet
>>
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>



-- 
Cordialement

HUBERT Mickaël
Ingénieur VOIP - Hexanet

-- 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20140417/90de11d4/attachment.htm>


More information about the Users mailing list