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

2015-11-10 Thread Shane Harrison
header) to reach the client. Cheers Shane From: sr-users [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Rizwan Khan Sent: Tuesday, 10 November 2015 6:29 p.m. To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Removing transport=TLS from the contact header Guys, Is this a

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

2015-11-10 Thread Rizwan Khan
thanks a million. It works :) Rizwan Khan On Tue, Nov 10, 2015 at 5:49 PM, Daniel-Constantin Mierla wrote: > It is about textopsx module -- note the x at the end. > > Daniel > > > On 10/11/15 13:37, Rizwan Khan wrote: > > Yes. > > loadmodule "textops.so" > > > Rizwan Khan > > > > On Tue, Nov

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

2015-11-10 Thread Daniel-Constantin Mierla
It is about textopsx module -- note the x at the end. Daniel On 10/11/15 13:37, Rizwan Khan wrote: > Yes. > > loadmodule "textops.so" > > > Rizwan Khan > > > > On Tue, Nov 10, 2015 at 5:32 PM, Daniel-Constantin Mierla > mailto:mico...@gmail.com>> wrote: > > Do you have the textopsx module loa

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

2015-11-10 Thread Rizwan Khan
Yes. loadmodule "textops.so" Rizwan Khan On Tue, Nov 10, 2015 at 5:32 PM, Daniel-Constantin Mierla wrote: > Do you have the textopsx module loaded in your config? > > Daniel > > > On 10/11/15 13:14, Rizwan Khan wrote: > > if( msg_apply_changes()) > { >

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

2015-11-10 Thread Daniel-Constantin Mierla
Do you have the textopsx module loaded in your config? Daniel On 10/11/15 13:14, Rizwan Khan wrote: > if( msg_apply_changes()) > { > xlog("L_INFO:", "INVITE::: [$ct]\n"); > } > > subst("/^Contact:(.*);transpor

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

2015-11-10 Thread Rizwan Khan
if( msg_apply_changes()) { xlog("L_INFO:", "INVITE::: [$ct]\n"); } subst("/^Contact:(.*);transport=tls(.*)/Contact:\1;transport=udp\2/i"); if( msg_apply_changes()) { xlo

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

2015-11-10 Thread Daniel-Constantin Mierla
Look inside syslog file to see the line where the errors are and description of the errors. Daniel On 10/11/15 12:38, Rizwan Khan wrote: > Doesn't work. Still give the bad config errors. > > Rizwan Khan > > > > On Tue, Nov 10, 2015 at 4:13 PM, Daniel-Constantin Mierla > mailto:mico...@gmail.com>>

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

2015-11-10 Thread Rizwan Khan
Doesn't work. Still give the bad config errors. Rizwan Khan On Tue, Nov 10, 2015 at 4:13 PM, Daniel-Constantin Mierla wrote: > That is conflicting with other changes to the contact header. > > Try to use msg_apply_changes() before (and after) your subst operation for > changing contact. > > D

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

2015-11-10 Thread Daniel-Constantin Mierla
That is conflicting with other changes to the contact header. Try to use msg_apply_changes() before (and after) your subst operation for changing contact. Daniel On 10/11/15 12:00, Rizwan Khan wrote: > I have fix_nated_contact() at multiple places :( > > Rizwan Khan > > > > On Tue, Nov 10, 2015

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

2015-11-10 Thread Rizwan Khan
I have fix_nated_contact() at multiple places :( Rizwan Khan On Tue, Nov 10, 2015 at 3:59 PM, Rizwan Khan wrote: > Oh, Yes I do. > > Rizwan Khan > > > > On Tue, Nov 10, 2015 at 3:58 PM, Daniel-Constantin Mierla < > mico...@gmail.com> wrote: > >> Do you have set_contact_alias() or fix_nated_co

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

2015-11-10 Thread Rizwan Khan
Oh, Yes I do. Rizwan Khan On Tue, Nov 10, 2015 at 3:58 PM, Daniel-Constantin Mierla wrote: > Do you have set_contact_alias() or fix_nated_contact() in your config file? > > Cheers, > Daniel > > > On 10/11/15 11:54, Rizwan Khan wrote: > > i am trying it but it doesn't change the string. Do I n

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

2015-11-10 Thread Daniel-Constantin Mierla
Do you have set_contact_alias() or fix_nated_contact() in your config file? Cheers, Daniel On 10/11/15 11:54, Rizwan Khan wrote: > i am trying it but it doesn't change the string. Do I need to use > msg_apply_changes() ?? > > I am trying that but it gives syntax error in the file. > > log("L_INFO

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

2015-11-10 Thread Rizwan Khan
i am trying it but it doesn't change the string. Do I need to use msg_apply_changes() ?? I am trying that but it gives syntax error in the file. log("L_INFO:", "INVITE::: [$ct]\n"); subst("/^Contact:(.*);transport=tls(.*)/Contact:\1;transport=udp\2/i"); if(msg_apply_changes()) { xlog("L_INFO

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

2015-11-09 Thread Koray Vatansever
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 wrote: >

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

2015-11-09 Thread Rizwan Khan
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 wrote: > I want to remove the transport=TLS from the contact header. > > How can I do that inside Kamailio? The flow is an unde

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

2015-11-09 Thread Rizwan Khan
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