[SR-Users] Removing transport=TLS from the contact header

Koray Vatansever koray.vatansever at gmail.com
Tue Nov 10 07:45:07 CET 2015


Hi Rizwan,

You can try the following:

subst("/^Contact:(.*);transport=tls(.*)/Contact:\1;transport=udp\2/i");

On the other hand, there should not be any other contact header
modification in your script; for example set_contact_alias().




On Tue, Nov 10, 2015 at 7:28 AM, Rizwan Khan <rizkhan at gmail.com> wrote:

> Guys,
>
> Is this a stupid question or this just cannot be done?
>
> Any help will be highly appreciated.
>
> Thanks,
>
> Rizwan Khan
>
>
>
> On Mon, Nov 9, 2015 at 6:53 PM, Rizwan Khan <rizkhan at gmail.com> wrote:
>
>> I want to remove the transport=TLS from the contact header.
>>
>> How can I do that inside Kamailio?  The flow is an under:
>>
>>
>> Client --------> Kamailio -------------> FS
>>            TLS                       UDP
>>
>>
>> Client <-------- Kamailio <------------- FS
>>            TLS                       UDP
>>
>>
>>
>>
>> FS gets a request on udp but it complains about TLS profile as the
>> contact header has the transport=TLS. Since its receing traffic on UDP, if
>> I only get rid of the value from the Contact Header, it would be great.
>>
>>
>> Thanks,
>>
>>
>> Rizwan Khan
>>
>>
>>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20151110/3f5cbcc0/attachment.html>


More information about the sr-users mailing list