Re: [SR-Users] Contact header modification - Kamailio

2022-08-03 Thread Alex Balashov
How did you conclude that it doesn’t work?

> On Aug 3, 2022, at 8:06 AM, Ankit Jayswal  wrote:
> 
> Hello,
> 
> Can you suggest directly replacing the value of the Contact header ? As 
> remove_hf("Contact") does not work for me.
> 
> I need just Contact:  instead of,
> Contact: 
> 
> 
> On Tue, Aug 2, 2022 at 12:56 PM Alex Balashov  
> wrote:
> The suggestion given by Henning was to remove the existing Contact header, 
> and replace it with whatever value you like.
> 
> > On Aug 2, 2022, at 1:12 AM, Ankit Jayswal  wrote:
> > 
> > Hello,
> > Whenever I try the remove_hf("Contact") function the call leg is divided 
> > into the two parts and the call is not getting set up properly and not 
> > progressing.
> > I am just looking for a function that can modify the Contact header value 
> > of an existing Contact header.
> > 
> > On Mon, Aug 1, 2022 at 8:31 PM Henning Westerholt  wrote:
> > Hello,
> > 
> >  
> > 
> > you need to do a “remove_hf(“Contact”)” before.
> > 
> >  
> > 
> > Cheers,
> > 
> >  
> > 
> > Henning
> > 
> >  
> > 
> > --
> > 
> > Henning Westerholt – https://skalatan.de/blog/
> > 
> > Kamailio services – https://gilawa.com
> > 
> >  
> > 
> > From: Ankit Jayswal  
> > Sent: Monday, August 1, 2022 4:26 PM
> > To: Henning Westerholt 
> > Cc: Kamailio (SER) - Users Mailing List ; Amey 
> > Naik ; Devanand Jalla 
> > Subject: Re: [SR-Users] Contact header modification - Kamailio
> > 
> >  
> > 
> > Hello,
> > Thanks for your reply, but I am looking to replace the value in the Contact 
> > header. Which function can help me to do this ?
> > I tried, 
> > assign_hf_value("Contact", "");
> > 
> > 
> > But that is not working properly, it assigns value but previous value also 
> > remains in it.
> > 
> >  
> > 
> > On Mon, Aug 1, 2022 at 6:11 PM Henning Westerholt  wrote:
> > 
> > Hello,
> > 
> >  
> > 
> > the topos module can do that, among other things. Alternatively there is 
> > also the topoh module, which do not need any backend storage.
> > 
> >  
> > 
> > Cheers,
> > 
> >  
> > 
> > Henning
> > 
> >  
> > 
> > --
> > 
> > Henning Westerholt – https://skalatan.de/blog/
> > 
> > Kamailio services – https://gilawa.com
> > 
> >  
> > 
> > From: sr-users  On Behalf Of Ankit 
> > Jayswal
> > Sent: Monday, August 1, 2022 2:37 PM
> > To: sr-users@lists.kamailio.org
> > Cc: Amey Naik ; Devanand Jalla 
> > 
> > Subject: [SR-Users] Contact header modification - Kamailio
> > 
> >  
> > 
> > Hello Team,
> > 
> > I am in need to modify the contact header in Kamailio before sending an 
> > INVITE request to the SIP trunk provider. Basically the IP address I need 
> > to modify in the contact header. Please suggest a better way to do this. 
> > Below is an example.
> > 
> > OLD (Existing):
> > 
> > Contact: 
> > 
> >  
> > 
> > NEW (Needed):
> > 
> > Contact: 
> > 
> > I tried various functions from the textops module but no hope.
> > I am looking for a function that can replace the contact header's value. 
> > Please help me with this.
> > 
> >  
> > 
> > --
> > 
> > Thanks & Regards,
> > Ankit Jayswal | Specialist - Software Development
> > 
> > __
> > Kamailio - Users Mailing List - Non Commercial Discussions
> >  * sr-users@lists.kamailio.org
> > Important: keep the mailing list in the recipients, do not reply only to 
> > the sender!
> > Edit mailing list options or unsubscribe:
> >  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
> 
> -- 
> Alex Balashov | Principal | Evariste Systems LLC
> 
> Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
> Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
> 
> 
> __
> Kamailio - Users Mailing List - Non Commercial Discussions
>   * sr-users@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the 
> sender!
> Edit mailing list options or unsubscribe:
>   * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
> __
> Kamailio - Users Mailing List - Non Commercial Discussions
>  * sr-users@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the 
> sender!
> Edit mailing list options or unsubscribe:
>  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Alex Balashov | Principal | Evariste Systems LLC

Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/


__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Contact header modification - Kamailio

2022-08-03 Thread Ankit Jayswal
Hello,

Can you suggest directly replacing the value of the Contact header ? As
remove_hf("Contact") does not work for me.

I need just *Contact: http://sip:009122692405xx@10.52.26.98:5060>> *instead of,
*Contact: *


On Tue, Aug 2, 2022 at 12:56 PM Alex Balashov 
wrote:

> The suggestion given by Henning was to remove the existing Contact header,
> and replace it with whatever value you like.
>
> > On Aug 2, 2022, at 1:12 AM, Ankit Jayswal 
> wrote:
> >
> > Hello,
> > Whenever I try the remove_hf("Contact") function the call leg is divided
> into the two parts and the call is not getting set up properly and not
> progressing.
> > I am just looking for a function that can modify the Contact header
> value of an existing Contact header.
> >
> > On Mon, Aug 1, 2022 at 8:31 PM Henning Westerholt  wrote:
> > Hello,
> >
> >
> >
> > you need to do a “remove_hf(“Contact”)” before.
> >
> >
> >
> > Cheers,
> >
> >
> >
> > Henning
> >
> >
> >
> > --
> >
> > Henning Westerholt – https://skalatan.de/blog/
> >
> > Kamailio services – https://gilawa.com
> >
> >
> >
> > From: Ankit Jayswal 
> > Sent: Monday, August 1, 2022 4:26 PM
> > To: Henning Westerholt 
> > Cc: Kamailio (SER) - Users Mailing List ;
> Amey Naik ; Devanand Jalla <
> devanand.ja...@engagely.ai>
> > Subject: Re: [SR-Users] Contact header modification - Kamailio
> >
> >
> >
> > Hello,
> > Thanks for your reply, but I am looking to replace the value in the
> Contact header. Which function can help me to do this ?
> > I tried,
> > assign_hf_value("Contact", "");
> >
> >
> > But that is not working properly, it assigns value but previous value
> also remains in it.
> >
> >
> >
> > On Mon, Aug 1, 2022 at 6:11 PM Henning Westerholt  wrote:
> >
> > Hello,
> >
> >
> >
> > the topos module can do that, among other things. Alternatively there is
> also the topoh module, which do not need any backend storage.
> >
> >
> >
> > Cheers,
> >
> >
> >
> > Henning
> >
> >
> >
> > --
> >
> > Henning Westerholt – https://skalatan.de/blog/
> >
> > Kamailio services – https://gilawa.com
> >
> >
> >
> > From: sr-users  On Behalf Of Ankit
> Jayswal
> > Sent: Monday, August 1, 2022 2:37 PM
> > To: sr-users@lists.kamailio.org
> > Cc: Amey Naik ; Devanand Jalla <
> devanand.ja...@engagely.ai>
> > Subject: [SR-Users] Contact header modification - Kamailio
> >
> >
> >
> > Hello Team,
> >
> > I am in need to modify the contact header in Kamailio before sending an
> INVITE request to the SIP trunk provider. Basically the IP address I need
> to modify in the contact header. Please suggest a better way to do this.
> Below is an example.
> >
> > OLD (Existing):
> >
> > Contact: 
> >
> >
> >
> > NEW (Needed):
> >
> > Contact: 
> >
> > I tried various functions from the textops module but no hope.
> > I am looking for a function that can replace the contact header's value.
> Please help me with this.
> >
> >
> >
> > --
> >
> > Thanks & Regards,
> > Ankit Jayswal | Specialist - Software Development
> >
> > __
> > Kamailio - Users Mailing List - Non Commercial Discussions
> >  * sr-users@lists.kamailio.org
> > Important: keep the mailing list in the recipients, do not reply only to
> the sender!
> > Edit mailing list options or unsubscribe:
> >  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
> --
> Alex Balashov | Principal | Evariste Systems LLC
>
> Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
> Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
>
>
> __
> Kamailio - Users Mailing List - Non Commercial Discussions
>   * sr-users@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to
> the sender!
> Edit mailing list options or unsubscribe:
>   * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Contact header modification - Kamailio

2022-08-02 Thread Alex Balashov
The suggestion given by Henning was to remove the existing Contact header, and 
replace it with whatever value you like.

> On Aug 2, 2022, at 1:12 AM, Ankit Jayswal  wrote:
> 
> Hello,
> Whenever I try the remove_hf("Contact") function the call leg is divided into 
> the two parts and the call is not getting set up properly and not progressing.
> I am just looking for a function that can modify the Contact header value of 
> an existing Contact header.
> 
> On Mon, Aug 1, 2022 at 8:31 PM Henning Westerholt  wrote:
> Hello,
> 
>  
> 
> you need to do a “remove_hf(“Contact”)” before.
> 
>  
> 
> Cheers,
> 
>  
> 
> Henning
> 
>  
> 
> --
> 
> Henning Westerholt – https://skalatan.de/blog/
> 
> Kamailio services – https://gilawa.com
> 
>  
> 
> From: Ankit Jayswal  
> Sent: Monday, August 1, 2022 4:26 PM
> To: Henning Westerholt 
> Cc: Kamailio (SER) - Users Mailing List ; Amey 
> Naik ; Devanand Jalla 
> Subject: Re: [SR-Users] Contact header modification - Kamailio
> 
>  
> 
> Hello,
> Thanks for your reply, but I am looking to replace the value in the Contact 
> header. Which function can help me to do this ?
> I tried, 
> assign_hf_value("Contact", "");
> 
> 
> But that is not working properly, it assigns value but previous value also 
> remains in it.
> 
>  
> 
> On Mon, Aug 1, 2022 at 6:11 PM Henning Westerholt  wrote:
> 
> Hello,
> 
>  
> 
> the topos module can do that, among other things. Alternatively there is also 
> the topoh module, which do not need any backend storage.
> 
>  
> 
> Cheers,
> 
>  
> 
> Henning
> 
>  
> 
> --
> 
> Henning Westerholt – https://skalatan.de/blog/
> 
> Kamailio services – https://gilawa.com
> 
>  
> 
> From: sr-users  On Behalf Of Ankit 
> Jayswal
> Sent: Monday, August 1, 2022 2:37 PM
> To: sr-users@lists.kamailio.org
> Cc: Amey Naik ; Devanand Jalla 
> 
> Subject: [SR-Users] Contact header modification - Kamailio
> 
>  
> 
> Hello Team,
> 
> I am in need to modify the contact header in Kamailio before sending an 
> INVITE request to the SIP trunk provider. Basically the IP address I need to 
> modify in the contact header. Please suggest a better way to do this. Below 
> is an example.
> 
> OLD (Existing):
> 
> Contact: 
> 
>  
> 
> NEW (Needed):
> 
> Contact: 
> 
> I tried various functions from the textops module but no hope.
> I am looking for a function that can replace the contact header's value. 
> Please help me with this.
> 
>  
> 
> --
> 
> Thanks & Regards,
> Ankit Jayswal | Specialist - Software Development
> 
> __
> Kamailio - Users Mailing List - Non Commercial Discussions
>  * sr-users@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the 
> sender!
> Edit mailing list options or unsubscribe:
>  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Alex Balashov | Principal | Evariste Systems LLC

Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/


__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Contact header modification - Kamailio

2022-08-01 Thread Ankit Jayswal
Hello,
Whenever I try the *remove_hf("Contact")* function the call leg is divided
into the two parts and the call is not getting set up properly and not
progressing.
I am just looking for a function that can modify the Contact header value
of an existing Contact header.

On Mon, Aug 1, 2022 at 8:31 PM Henning Westerholt  wrote:

> Hello,
>
>
>
> you need to do a “remove_hf(“Contact”)” before.
>
>
>
> Cheers,
>
>
>
> Henning
>
>
>
> --
>
> Henning Westerholt – https://skalatan.de/blog/
>
> Kamailio services – https://gilawa.com
>
>
>
> *From:* Ankit Jayswal 
> *Sent:* Monday, August 1, 2022 4:26 PM
> *To:* Henning Westerholt 
> *Cc:* Kamailio (SER) - Users Mailing List ;
> Amey Naik ; Devanand Jalla <
> devanand.ja...@engagely.ai>
> *Subject:* Re: [SR-Users] Contact header modification - Kamailio
>
>
>
> Hello,
> Thanks for your reply, but I am looking to replace the value in the
> Contact header. Which function can help me to do this ?
> I tried,
> *assign_hf_value("Contact", " <http://sip:00912269240xxx@10.52.26.98:5060>>");*
>
>
> But that is not working properly, it assigns value but previous value also
> remains in it.
>
>
>
> On Mon, Aug 1, 2022 at 6:11 PM Henning Westerholt  wrote:
>
> Hello,
>
>
>
> the topos module can do that, among other things. Alternatively there is
> also the topoh module, which do not need any backend storage.
>
>
>
> Cheers,
>
>
>
> Henning
>
>
>
> --
>
> Henning Westerholt – https://skalatan.de/blog/
>
> Kamailio services – https://gilawa.com
>
>
>
> *From:* sr-users  *On Behalf Of *Ankit
> Jayswal
> *Sent:* Monday, August 1, 2022 2:37 PM
> *To:* sr-users@lists.kamailio.org
> *Cc:* Amey Naik ; Devanand Jalla <
> devanand.ja...@engagely.ai>
> *Subject:* [SR-Users] Contact header modification - Kamailio
>
>
>
> Hello Team,
>
> I am in need to modify the contact header in Kamailio before sending an
> INVITE request to the SIP trunk provider. Basically the IP address I need
> to modify in the contact header. Please suggest a better way to do this.
> Below is an example.
>
> *OLD (Existing):*
>
> Contact: 
>
>
>
> *NEW (Needed):*
>
> Contact: http://10.52.26.98:5060>*>
>
> I tried various functions from the textops module but no hope.
> I am looking for a function that can replace the contact header's value.
> Please help me with this.
>
>
>
> --
>
> Thanks & Regards,
> *Ankit Jayswal* | Specialist - Software Development
>
>
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Contact header modification - Kamailio

2022-08-01 Thread Ankit Jayswal
Hello,
Yes, actually my call flow for outbound calls is, Kamailio => Asterisk =>
Kamailio (route(PSTN)). SIP trunk is available at Kamailio server.
So, when final outbound INVITE goes to the SIP trunk provider it expects a
particular Contact header IP, instead of Asterisk server IP.

On Mon, Aug 1, 2022 at 10:20 PM Alex Balashov 
wrote:

> Before you do this, I would ask yourself why you’re doing this, and
> whether it’s a good idea from a technical point of view.
>
> > On Aug 1, 2022, at 8:36 AM, Ankit Jayswal 
> wrote:
> >
> > Hello Team,
> >
> > I am in need to modify the contact header in Kamailio before sending an
> INVITE request to the SIP trunk provider. Basically the IP address I need
> to modify in the contact header. Please suggest a better way to do this.
> Below is an example.
> >
> > OLD (Existing):
> > Contact: 
> >
> > NEW (Needed):
> > Contact: 
> >
> > I tried various functions from the textops module but no hope.
> > I am looking for a function that can replace the contact header's value.
> Please help me with this.
> >
> > --
> > Thanks & Regards,
> > Ankit Jayswal | Specialist - Software Development
> > __
> > Kamailio - Users Mailing List - Non Commercial Discussions
> >  * sr-users@lists.kamailio.org
> > Important: keep the mailing list in the recipients, do not reply only to
> the sender!
> > Edit mailing list options or unsubscribe:
> >  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
> --
> Alex Balashov | Principal | Evariste Systems LLC
>
> Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
> Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
>
>
> __
> Kamailio - Users Mailing List - Non Commercial Discussions
>   * sr-users@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to
> the sender!
> Edit mailing list options or unsubscribe:
>   * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Contact header modification - Kamailio

2022-08-01 Thread Alex Balashov
Before you do this, I would ask yourself why you’re doing this, and whether 
it’s a good idea from a technical point of view.

> On Aug 1, 2022, at 8:36 AM, Ankit Jayswal  wrote:
> 
> Hello Team,
> 
> I am in need to modify the contact header in Kamailio before sending an 
> INVITE request to the SIP trunk provider. Basically the IP address I need to 
> modify in the contact header. Please suggest a better way to do this. Below 
> is an example.
> 
> OLD (Existing):
> Contact: 
> 
> NEW (Needed):
> Contact: 
> 
> I tried various functions from the textops module but no hope.
> I am looking for a function that can replace the contact header's value. 
> Please help me with this.
> 
> -- 
> Thanks & Regards,
> Ankit Jayswal | Specialist - Software Development
> __
> Kamailio - Users Mailing List - Non Commercial Discussions
>  * sr-users@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the 
> sender!
> Edit mailing list options or unsubscribe:
>  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Alex Balashov | Principal | Evariste Systems LLC

Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/


__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Contact header modification - Kamailio

2022-08-01 Thread Henning Westerholt
Hello,

you need to do a “remove_hf(“Contact”)” before.

Cheers,

Henning

--
Henning Westerholt – https://skalatan.de/blog/
Kamailio services – https://gilawa.com<https://gilawa.com/>

From: Ankit Jayswal 
Sent: Monday, August 1, 2022 4:26 PM
To: Henning Westerholt 
Cc: Kamailio (SER) - Users Mailing List ; Amey 
Naik ; Devanand Jalla 
Subject: Re: [SR-Users] Contact header modification - Kamailio

Hello,
Thanks for your reply, but I am looking to replace the value in the Contact 
header. Which function can help me to do this ?
I tried,
assign_hf_value("Contact", 
"http://sip:00912269240xxx@10.52.26.98:5060>>");

But that is not working properly, it assigns value but previous value also 
remains in it.

On Mon, Aug 1, 2022 at 6:11 PM Henning Westerholt 
mailto:h...@gilawa.com>> wrote:
Hello,

the topos module can do that, among other things. Alternatively there is also 
the topoh module, which do not need any backend storage.

Cheers,

Henning

--
Henning Westerholt – https://skalatan.de/blog/
Kamailio services – https://gilawa.com<https://gilawa.com/>

From: sr-users 
mailto:sr-users-boun...@lists.kamailio.org>>
 On Behalf Of Ankit Jayswal
Sent: Monday, August 1, 2022 2:37 PM
To: sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>
Cc: Amey Naik mailto:amey.n...@engagely.ai>>; Devanand 
Jalla mailto:devanand.ja...@engagely.ai>>
Subject: [SR-Users] Contact header modification - Kamailio

Hello Team,

I am in need to modify the contact header in Kamailio before sending an INVITE 
request to the SIP trunk provider. Basically the IP address I need to modify in 
the contact header. Please suggest a better way to do this. Below is an example.
OLD (Existing):
Contact: 

NEW (Needed):
Contact: http://10.52.26.98:5060>>

I tried various functions from the textops module but no hope.
I am looking for a function that can replace the contact header's value. Please 
help me with this.

--
Thanks & Regards,
Ankit Jayswal | Specialist - Software Development
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Contact header modification - Kamailio

2022-08-01 Thread Ankit Jayswal
Hello,
Thanks for your reply, but I am looking to replace the value in the Contact
header. Which function can help me to do this ?
I tried,
*assign_hf_value("Contact", "http://sip:00912269240xxx@10.52.26.98:5060>>");*

But that is not working properly, it assigns value but previous value also
remains in it.

On Mon, Aug 1, 2022 at 6:11 PM Henning Westerholt  wrote:

> Hello,
>
>
>
> the topos module can do that, among other things. Alternatively there is
> also the topoh module, which do not need any backend storage.
>
>
>
> Cheers,
>
>
>
> Henning
>
>
>
> --
>
> Henning Westerholt – https://skalatan.de/blog/
>
> Kamailio services – https://gilawa.com
>
>
>
> *From:* sr-users  *On Behalf Of *Ankit
> Jayswal
> *Sent:* Monday, August 1, 2022 2:37 PM
> *To:* sr-users@lists.kamailio.org
> *Cc:* Amey Naik ; Devanand Jalla <
> devanand.ja...@engagely.ai>
> *Subject:* [SR-Users] Contact header modification - Kamailio
>
>
>
> Hello Team,
>
> I am in need to modify the contact header in Kamailio before sending an
> INVITE request to the SIP trunk provider. Basically the IP address I need
> to modify in the contact header. Please suggest a better way to do this.
> Below is an example.
>
> *OLD (Existing):*
>
> Contact: 
>
>
>
> *NEW (Needed):*
>
> Contact: http://10.52.26.98:5060>*>
>
> I tried various functions from the textops module but no hope.
> I am looking for a function that can replace the contact header's value.
> Please help me with this.
>
>
>
> --
>
> Thanks & Regards,
> *Ankit Jayswal* | Specialist - Software Development
>
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Contact header modification - Kamailio

2022-08-01 Thread Henning Westerholt
Hello,

the topos module can do that, among other things. Alternatively there is also 
the topoh module, which do not need any backend storage.

Cheers,

Henning

--
Henning Westerholt – https://skalatan.de/blog/
Kamailio services – https://gilawa.com<https://gilawa.com/>

From: sr-users  On Behalf Of Ankit Jayswal
Sent: Monday, August 1, 2022 2:37 PM
To: sr-users@lists.kamailio.org
Cc: Amey Naik ; Devanand Jalla 

Subject: [SR-Users] Contact header modification - Kamailio

Hello Team,

I am in need to modify the contact header in Kamailio before sending an INVITE 
request to the SIP trunk provider. Basically the IP address I need to modify in 
the contact header. Please suggest a better way to do this. Below is an example.
OLD (Existing):
Contact: 

NEW (Needed):
Contact: http://10.52.26.98:5060>>

I tried various functions from the textops module but no hope.
I am looking for a function that can replace the contact header's value. Please 
help me with this.

--
Thanks & Regards,
Ankit Jayswal | Specialist - Software Development
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Contact header modification - Kamailio

2022-08-01 Thread Ankit Jayswal
Hello Team,

I am in need to modify the contact header in Kamailio before sending an
INVITE request to the SIP trunk provider. Basically the IP address I need
to modify in the contact header. Please suggest a better way to do this.
Below is an example.

*OLD (Existing):*
Contact: 

*NEW (Needed):*
Contact: http://10.52.26.98:5060>*>

I tried various functions from the textops module but no hope.
I am looking for a function that can replace the contact header's value.
Please help me with this.

-- 
Thanks & Regards,
*Ankit Jayswal* | Specialist - Software Development
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Contact header not removed properly Getting some junks

2021-01-06 Thread Daniel-Constantin Mierla
I replied about headers script operations and why content might be
different than expected in previous email.

Here I want to add that $uac_req(...) is building a completely different
sip message, some remove_hf() and append_hf() do not operate over the
message to be built by $uac_req().

Cheers,
Daniel

On 06.01.21 17:12, Devang Dhandhalya wrote:
> in my scenario call coming from sbc to kamailio proxy and we route to
> pbx server in that when 
> kamailio proxy get the call at that time i am removing Contact header
> using remove_hf("Contact") and adding contact Header using
> append_hf("$uac_req(hdrs)") for route to PBX server . in that
> signaling i am getting modified Contact header but old contact header
> not removed properly some junks are remain in the signaling 
>
> scenario : 
>
> SBC -> Kamailio proxy --> PBX
>
> before using remove_hf("Contact") 
>
> INVITE sip:user2@ domain.org
> ;transport=UDP SIP/2.0
> Via: SIP/2.0/UDP
> 10.212.xxx.xxx:port;branch=z9hG4bK-524287-1---8c5ac8642f321a9e
> Max-Forwards: 70
> Contact: 
> To: mailto:sip%3a5...@opensips.org>domain.org
> ;transport=UDP>
> From: mailto:sip%3a1...@opensips.org>domain.org
> ;transport=UDP>;tag=891fd646
> Call-ID: t9Ff-fCrin_VN1IO9Xf1mA..
> CSeq: 2 INVITE
> Content-Type: application/sdp
> Proxy-Authorization: Digest username="user1",realm="domain.org
> ",nonce="5ff5a660afc72502212b4a611bb0d689efadafab",uri="sip:us...@domain.org
> ;transport=UDP",response="f926e3742cbdcb8c68ea9b5
> 82ac2dc",cnonce="9b3276d6d37aaa6107a835df8e5b3a87",nc=0001,qop=auth,algorithm=MD5
> User-Agent: Z 3.15.40006 rv2.8.20
> Allow-Events: presence, kpml, talk
> Content-Length: 243
>
> v=0
> o=Z 0 0 IN IP4 10.212.xxx.xxx
> s=Z
> c=IN IP4 10.212.xxx.xxx
> t=0 0
> m=audio 8000 RTP/AVP 3 110 8 0 97 101
> a=rtpmap:110 speex/8000
> a=rtpmap:97 iLBC/8000
> a=fmtp:97 mode=30
> a=rtpmap:101 telephone-event/8000
> a=fmtp:101 0-16
> a=sendrecv
>
>
> after using remove-hf("Contact") function removing contact header but
> some junks are left and that eats next To header line and breaks
> Invite packet 
>
> INVITE sip:us...@domain.org:;transport=UDP SIP/2.0
> Record-Route:
> 
> Via: SIP/2.0/UDP
> 172.xx.xx.xxx;branch=z9hG4bKbe4c.9743b885ad3452287530994a2cad6e50.0
> Via: SIP/2.0/UDP
> 10.212.xxx.xxx:39931;rport=39931;received=172.xx.xx.x;branch=z9hG4bK-524287-1---8c5ac8642f321a9e
> Max-Forwards: 69
> sip:us...@172.xx.xx.x:39931;transport=UDPTo:  >
> From:  >;tag=891fd646
> Call-ID: t9Ff-fCrin_VN1IO9Xf1mA..
> CSeq: 2 INVITE
> Content-Type: application/sdp
> User-Agent: Z 3.15.40006 rv2.8.20
> Allow-Events: presence, kpml, talk
> Content-Length: 534
> Contact:  >
>
> v=0
> o=Z 0 0 IN IP4 10.212.xxx.xxx
> s=Z
> c=IN IP4 172.xx.xx.xxx
> t=0 0
> m=audio 11210 RTP/AVP 3 110 8 0 97 101
> a=rtpmap:3 GSM/8000
> a=rtpmap:110 speex/8000
> a=rtpmap:8 PCMA/8000
> a=rtpmap:0 PCMU/8000
> a=rtpmap:97 iLBC/8000
> a=rtpmap:101 telephone-event/8000
> a=fmtp:97 mode=30
> a=fmtp:101 0-16
> a=sendrecv
> a=rtcp:11211
> a=ice-ufrag:lzjregPe
> a=ice-pwd:RtA9x3jUWk4yNpJlzPL60nsRck
> a=candidate:LhtmUSbPt9BJs4ZC 1 UDP 2130706431 172.xx.xx.xxx 11210 typ host
> a=candidate:LhtmUSbPt9BJs4ZC 2 UDP 2130706430 172.xx.xx.xxx 11211 typ host
>
>
> As you can see Contact header is gone but
> sip:1...@172.xx.xx.x:39931;transport=UDP part left before To header .
> and its breake invite packet .
>
>
> Any suggestion will be highly appreciated.
>
>
> *Disclaimer*
> In addition to generic Disclaimer which you have agreed on our
> website, any views or opinions presented in this email are solely
> those of the originator and do not necessarily represent those of the
> Company or its sister concerns. Any liability (in negligence, contract
> or otherwise) arising from any third party taking any action, or
> refraining from taking any action on the basis of any of the
> information contained in this email is hereby excluded.
>
> *Confidentiality*
> This communication (including any attachment/s) is intended only for
> the use of the addressee(s) and contains information that is
> PRIVILEGED AND CONFIDENTIAL. Unauthorized reading, dissemination,
> distribution, or copying of this communication is prohibited. Please
> inform originator if you have received it in error.
>
> *Caution for viruses, malware etc.*
> This communication, including any attachments, may not be free of
> viruses, trojans, similar or new contaminants/malware, interceptions
> or interference, and may not be compatible with your systems. You
> shall carry out virus/malware scanning on your own before opening any
> attachment to this e-mail. The sender of this e-mail and Company
> including its sister concerns shall not be liable for any damage that
> may incur to you as a result of 

[SR-Users] Contact header not removed properly Getting some junks

2021-01-06 Thread Devang Dhandhalya
in my scenario call coming from sbc to kamailio proxy and we route to pbx
server in that when
kamailio proxy get the call at that time i am removing Contact header using
remove_hf("Contact") and adding contact Header using
append_hf("$uac_req(hdrs)") for route to PBX server . in that signaling i
am getting modified Contact header but old contact header not removed
properly some junks are remain in the signaling

scenario :

SBC -> Kamailio proxy --> PBX

before using remove_hf("Contact")

INVITE sip:user2@ domain.org;transport=UDP SIP/2.0
Via: SIP/2.0/UDP
10.212.xxx.xxx:port;branch=z9hG4bK-524287-1---8c5ac8642f321a9e
Max-Forwards: 70
Contact: 
To: domain.org;transport=UDP>
From: domain.org
;transport=UDP>;tag=891fd646
Call-ID: t9Ff-fCrin_VN1IO9Xf1mA..
CSeq: 2 INVITE
Content-Type: application/sdp
Proxy-Authorization: Digest username="user1",realm="domain.org

",nonce="5ff5a660afc72502212b4a611bb0d689efadafab",uri="sip:us...@domain.org
;transport=UDP",response="f926e3742cbdcb8c68ea9b5
82ac2dc",cnonce="9b3276d6d37aaa6107a835df8e5b3a87",nc=0001,qop=auth,algorithm=MD5
User-Agent: Z 3.15.40006 rv2.8.20
Allow-Events: presence, kpml, talk
Content-Length: 243

v=0
o=Z 0 0 IN IP4 10.212.xxx.xxx
s=Z
c=IN IP4 10.212.xxx.xxx
t=0 0
m=audio 8000 RTP/AVP 3 110 8 0 97 101
a=rtpmap:110 speex/8000
a=rtpmap:97 iLBC/8000
a=fmtp:97 mode=30
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=sendrecv


after using remove-hf("Contact") function removing contact header but some
junks are left and that eats next To header line and breaks Invite packet

INVITE sip:us...@domain.org:;transport=UDP SIP/2.0
Record-Route:

Via: SIP/2.0/UDP
172.xx.xx.xxx;branch=z9hG4bKbe4c.9743b885ad3452287530994a2cad6e50.0
Via: SIP/2.0/UDP
10.212.xxx.xxx:39931;rport=39931;received=172.xx.xx.x;branch=z9hG4bK-524287-1---8c5ac8642f321a9e
Max-Forwards: 69
sip:us...@172.xx.xx.x:39931;transport=UDPTo: >
From: >;tag=891fd646
Call-ID: t9Ff-fCrin_VN1IO9Xf1mA..
CSeq: 2 INVITE
Content-Type: application/sdp
User-Agent: Z 3.15.40006 rv2.8.20
Allow-Events: presence, kpml, talk
Content-Length: 534
Contact: http://sip:dppatel@172.16.16.163:5060/>>

v=0
o=Z 0 0 IN IP4 10.212.xxx.xxx
s=Z
c=IN IP4 172.xx.xx.xxx
t=0 0
m=audio 11210 RTP/AVP 3 110 8 0 97 101
a=rtpmap:3 GSM/8000
a=rtpmap:110 speex/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:97 iLBC/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:97 mode=30
a=fmtp:101 0-16
a=sendrecv
a=rtcp:11211
a=ice-ufrag:lzjregPe
a=ice-pwd:RtA9x3jUWk4yNpJlzPL60nsRck
a=candidate:LhtmUSbPt9BJs4ZC 1 UDP 2130706431 172.xx.xx.xxx 11210 typ host
a=candidate:LhtmUSbPt9BJs4ZC 2 UDP 2130706430 172.xx.xx.xxx 11211 typ host


As you can see Contact header is gone but
sip:1...@172.xx.xx.x:39931;transport=UDP
part left before To header . and its breake invite packet .


Any suggestion will be highly appreciated.

-- 
*Disclaimer*
In addition to generic Disclaimer which you have agreed on our 
website, any views or opinions presented in this email are solely those of 
the originator and do not necessarily represent those of the Company or its 
sister concerns. Any liability (in negligence, contract or otherwise) 
arising from any third party taking any action, or refraining from taking 
any action on the basis of any of the information contained in this email 
is hereby excluded.



*Confidentiality*
This communication (including any 
attachment/s) is intended only for the use of the addressee(s) and contains 
information that is PRIVILEGED AND CONFIDENTIAL. Unauthorized reading, 
dissemination, distribution, or copying of this communication is 
prohibited. Please inform originator if you have received it in error.


*Caution for viruses, malware etc.*
This communication, including any 
attachments, may not be free of viruses, trojans, similar or new 
contaminants/malware, interceptions or interference, and may not be 
compatible with your systems. You shall carry out virus/malware scanning on 
your own before opening any attachment to this e-mail. The sender of this 
e-mail and Company including its sister concerns shall not be liable for 
any damage that may incur to you as a result of viruses, incompleteness of 
this message, a delay in receipt of this message or any other computer 
problems. 
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Contact header requirement

2019-12-02 Thread David Villasmil
Hello Fred,

Yeah that's what I did, just to see if they'd accept the INVITE, but no
joy... I don't think they're very clear as to what exactly I should be
sending.. So i have a call with them tomorrow, let's see what they say.
And thanks for the suggestion!

Regards,

David Villasmil
email: david.villasmil.w...@gmail.com
phone: +34669448337


On Mon, Dec 2, 2019 at 10:51 PM Fred Posner  wrote:

> You could do a really ugly hack...
>
> remove_hf("Contact");
>
> and then insert the Contact with something like...
>
> insert_hf("Contact: \r\n");
>
> And then on the client leg...
>
> if ($(ru{uri.param,hack}) == "ugly")
>
> replace it with the original
>
> But this is very, very ugly and Alex's approach is better. =)
>
> Fred Posner
> f...@qxork.com
> https://qxork.com
> Direct/SMS: +1 (336) 439-3733
>
> Need Fred? Call Fred. 336-HEY-FRED
> Matrix: @fred:matrix.lod.com
>
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Contact header requirement

2019-12-02 Thread Fred Posner
You could do a really ugly hack...

remove_hf("Contact");

and then insert the Contact with something like...

insert_hf("Contact: \r\n");

And then on the client leg...

if ($(ru{uri.param,hack}) == "ugly")

replace it with the original

But this is very, very ugly and Alex's approach is better. =)

Fred Posner
f...@qxork.com
https://qxork.com
Direct/SMS: +1 (336) 439-3733

Need Fred? Call Fred. 336-HEY-FRED
Matrix: @fred:matrix.lod.com


___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Contact header requirement

2019-12-02 Thread David Villasmil
So that’s probably not it.. just for the heck of it I removed the header
completely and added an artificial one exactly like they say they need
it... still not working...
What does one do in these cases? LOL!
Anyway, thanks everyone

On Mon, 2 Dec 2019 at 22:39, David Villasmil 
wrote:

> Yeah...
> ugh... here I go...
> Thanks man
>
> On Mon, 2 Dec 2019 at 22:24, Alex Balashov 
> wrote:
>
>> I think this is a case where you should.
>>
>> —
>> Sent from mobile, with due apologies for brevity and errors.
>>
>> On Dec 2, 2019, at 2:12 PM, David Villasmil <
>> david.villasmil.w...@gmail.com> wrote:
>>
>> 
>>
>> Agreed
>>
>> Just not feeling like getting into  it with them unless I really have
>> to...
>>
>> On Mon, 2 Dec 2019 at 22:04, Alex Balashov 
>> wrote:
>>
>>> Well, they can’t just “not like” things. It’s grammatically valid.
>>>
>>> —
>>> Sent from mobile, with due apologies for brevity and errors.
>>>
>>> On Dec 2, 2019, at 1:49 PM, David Villasmil <
>>> david.villasmil.w...@gmail.com> wrote:
>>>
>>> 
>>>
>>> Hello guys,
>>>
>>> I'm connecting to a provider who requires the contact contains the
>>> proxy's IP... I know this is weird and totally off-rfc...
>>>
>>> I setup the topoh module and used
>>>
>>> modparam("topoh", "mask_ip", "[PROXY_IP]:5060")
>>>
>>> but this makes the contact:
>>>
>>> Contact: >> y8PWype.SRy0nRo3nCT*>
>>>
>>> I know this is how it works, but they don't like the additional
>>>
>>> ";line="
>>>
>>> Has anyone faced this kind of thing? is there any other way to set this
>>> to something like:
>>>
>>> Contact: 
>>>
>>> that won't mess everything?
>>>
>>> Thanks all,
>>>
>>> David Villasmil
>>> email: david.villasmil.w...@gmail.com
>>> phone: +34669448337
>>>
>>> ___
>>> Kamailio (SER) - Users Mailing List
>>> sr-users@lists.kamailio.org
>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>
>>> ___
>>> Kamailio (SER) - Users Mailing List
>>> sr-users@lists.kamailio.org
>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>
>> --
>> Regards,
>>
>> David Villasmil
>> email: david.villasmil.w...@gmail.com
>> phone: +34669448337
>> ___
>> Kamailio (SER) - Users Mailing List
>> sr-users@lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>> ___
>> Kamailio (SER) - Users Mailing List
>> sr-users@lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
> --
> Regards,
>
> David Villasmil
> email: david.villasmil.w...@gmail.com
> phone: +34669448337
>
-- 
Regards,

David Villasmil
email: david.villasmil.w...@gmail.com
phone: +34669448337
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Contact header requirement

2019-12-02 Thread David Villasmil
Yeah...
ugh... here I go...
Thanks man

On Mon, 2 Dec 2019 at 22:24, Alex Balashov 
wrote:

> I think this is a case where you should.
>
> —
> Sent from mobile, with due apologies for brevity and errors.
>
> On Dec 2, 2019, at 2:12 PM, David Villasmil <
> david.villasmil.w...@gmail.com> wrote:
>
> 
>
> Agreed
>
> Just not feeling like getting into  it with them unless I really have to...
>
> On Mon, 2 Dec 2019 at 22:04, Alex Balashov 
> wrote:
>
>> Well, they can’t just “not like” things. It’s grammatically valid.
>>
>> —
>> Sent from mobile, with due apologies for brevity and errors.
>>
>> On Dec 2, 2019, at 1:49 PM, David Villasmil <
>> david.villasmil.w...@gmail.com> wrote:
>>
>> 
>>
>> Hello guys,
>>
>> I'm connecting to a provider who requires the contact contains the
>> proxy's IP... I know this is weird and totally off-rfc...
>>
>> I setup the topoh module and used
>>
>> modparam("topoh", "mask_ip", "[PROXY_IP]:5060")
>>
>> but this makes the contact:
>>
>> Contact: > y8PWype.SRy0nRo3nCT*>
>>
>> I know this is how it works, but they don't like the additional
>>
>> ";line="
>>
>> Has anyone faced this kind of thing? is there any other way to set this
>> to something like:
>>
>> Contact: 
>>
>> that won't mess everything?
>>
>> Thanks all,
>>
>> David Villasmil
>> email: david.villasmil.w...@gmail.com
>> phone: +34669448337
>>
>> ___
>> Kamailio (SER) - Users Mailing List
>> sr-users@lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>> ___
>> Kamailio (SER) - Users Mailing List
>> sr-users@lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
> --
> Regards,
>
> David Villasmil
> email: david.villasmil.w...@gmail.com
> phone: +34669448337
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-- 
Regards,

David Villasmil
email: david.villasmil.w...@gmail.com
phone: +34669448337
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Contact header requirement

2019-12-02 Thread Alex Balashov
I think this is a case where you should.

—
Sent from mobile, with due apologies for brevity and errors.

> On Dec 2, 2019, at 2:12 PM, David Villasmil  
> wrote:
> 
> 
> Agreed
> 
> Just not feeling like getting into  it with them unless I really have to...
> 
>> On Mon, 2 Dec 2019 at 22:04, Alex Balashov  wrote:
>> Well, they can’t just “not like” things. It’s grammatically valid.
>> 
>> —
>> Sent from mobile, with due apologies for brevity and errors.
>> 
 On Dec 2, 2019, at 1:49 PM, David Villasmil 
  wrote:
 
>>> 
>> 
>>> Hello guys,
>>> 
>>> I'm connecting to a provider who requires the contact contains the proxy's 
>>> IP... I know this is weird and totally off-rfc... 
>>> 
>>> I setup the topoh module and used 
>>> 
>>> modparam("topoh", "mask_ip", "[PROXY_IP]:5060")
>>> 
>>> but this makes the contact:
>>> 
>>> Contact: 
>>> 
>>> 
>>> I know this is how it works, but they don't like the additional 
>>> 
>>> ";line="
>>> 
>>> Has anyone faced this kind of thing? is there any other way to set this to 
>>> something like:
>>> 
>>> Contact: 
>>> 
>>> that won't mess everything?
>>> 
>>> Thanks all,
>>> 
>>> David Villasmil
>>> email: david.villasmil.w...@gmail.com
>>> phone: +34669448337
>> 
>>> ___
>>> Kamailio (SER) - Users Mailing List
>>> sr-users@lists.kamailio.org
>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>> ___
>> Kamailio (SER) - Users Mailing List
>> sr-users@lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
> -- 
> Regards,
> 
> David Villasmil
> email: david.villasmil.w...@gmail.com
> phone: +34669448337
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Contact header requirement

2019-12-02 Thread David Villasmil
Agreed

Just not feeling like getting into  it with them unless I really have to...

On Mon, 2 Dec 2019 at 22:04, Alex Balashov 
wrote:

> Well, they can’t just “not like” things. It’s grammatically valid.
>
> —
> Sent from mobile, with due apologies for brevity and errors.
>
> On Dec 2, 2019, at 1:49 PM, David Villasmil <
> david.villasmil.w...@gmail.com> wrote:
>
> 
>
> Hello guys,
>
> I'm connecting to a provider who requires the contact contains the proxy's
> IP... I know this is weird and totally off-rfc...
>
> I setup the topoh module and used
>
> modparam("topoh", "mask_ip", "[PROXY_IP]:5060")
>
> but this makes the contact:
>
> Contact:  y8PWype.SRy0nRo3nCT*>
>
> I know this is how it works, but they don't like the additional
>
> ";line="
>
> Has anyone faced this kind of thing? is there any other way to set this to
> something like:
>
> Contact: 
>
> that won't mess everything?
>
> Thanks all,
>
> David Villasmil
> email: david.villasmil.w...@gmail.com
> phone: +34669448337
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-- 
Regards,

David Villasmil
email: david.villasmil.w...@gmail.com
phone: +34669448337
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Contact header requirement

2019-12-02 Thread Alex Balashov
Well, they can’t just “not like” things. It’s grammatically valid.

—
Sent from mobile, with due apologies for brevity and errors.

> On Dec 2, 2019, at 1:49 PM, David Villasmil  
> wrote:
> 
> 
> Hello guys,
> 
> I'm connecting to a provider who requires the contact contains the proxy's 
> IP... I know this is weird and totally off-rfc... 
> 
> I setup the topoh module and used 
> 
> modparam("topoh", "mask_ip", "[PROXY_IP]:5060")
> 
> but this makes the contact:
> 
> Contact: 
> 
> 
> I know this is how it works, but they don't like the additional 
> 
> ";line="
> 
> Has anyone faced this kind of thing? is there any other way to set this to 
> something like:
> 
> Contact: 
> 
> that won't mess everything?
> 
> Thanks all,
> 
> David Villasmil
> email: david.villasmil.w...@gmail.com
> phone: +34669448337
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Contact Header

2018-05-16 Thread KamDev Essa
 Thanks. That worked.
H
On Tuesday, May 15, 2018, 1:08:47 PM EDT, Alex Balashov 
 wrote:  
 
 You just need to use Record-Route and all will work as intended.

On Tue, May 15, 2018 at 05:06:02PM +, KamDev Essa wrote:

> My scenario is 
> UA <> Kamailio <> Freeswitch 
> UA calls a number. Kam delivers to FS and FS plays a wav file. 
> My problem is that Kam relays the 200 OK from FS back to UA without change 
> and UA ACKs back to FS because the FS IP is in the Contact Header.   
>    - Why does Kam not change the contact header since the ACK should come 
>back to Kam
>    - If this is normal what do I need to do to change the contact header for 
>the 200K to the UA to make this work.
> KD 

> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


-- 
Alex Balashov | Principal | Evariste Systems LLC

Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) 
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
  ___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Contact Header

2018-05-15 Thread Alex Balashov
You just need to use Record-Route and all will work as intended.

On Tue, May 15, 2018 at 05:06:02PM +, KamDev Essa wrote:

> My scenario is 
> UA <> Kamailio <> Freeswitch 
> UA calls a number. Kam delivers to FS and FS plays a wav file. 
> My problem is that Kam relays the 200 OK from FS back to UA without change 
> and UA ACKs back to FS because the FS IP is in the Contact Header.    
>- Why does Kam not change the contact header since the ACK should come 
> back to Kam
>- If this is normal what do I need to do to change the contact header for 
> the 200K to the UA to make this work.
> KD 

> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


-- 
Alex Balashov | Principal | Evariste Systems LLC

Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) 
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Contact Header

2018-05-15 Thread KamDev Essa
My scenario is 
UA <> Kamailio <> Freeswitch 
UA calls a number. Kam delivers to FS and FS plays a wav file. 
My problem is that Kam relays the 200 OK from FS back to UA without change and 
UA ACKs back to FS because the FS IP is in the Contact Header.    
   - Why does Kam not change the contact header since the ACK should come back 
to Kam
   - If this is normal what do I need to do to change the contact header for 
the 200K to the UA to make this work.
KD 
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Contact Header need update?

2018-02-02 Thread Duarte Rocha
Greetings,

My proxy does some number normalization in order to guarantee E164
numeration. It also verifies for valid Calling Numbers and replaces them if
needed.

In order to this, i'm updating the $fU pseudo-variable. Should i update the
"Contact" Header too? I've made some testing and i can get calls to work
with keeping the Contact intact and changing it to the new number. What is
the most correct approach?

Cheers,

Duarte Rocha
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users