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

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

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

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 From: Ankit Jayswal Sent: Monday, August 1, 2022 4:26 PM To: Henning Westerholt Cc: Kamailio (SER) - 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

Re: [SR-Users] Sharing Database between three kamailios

2022-08-01 Thread Henning Westerholt
Hello, you can share a database between different Kamailio server. Especially if they access only read-only, this is pretty much a standard scenario. Regarding keeping a table for the active calls, the dialog module allows you to easily track current calls. It can also save the information in

Re: [SR-Users] Newbie - Installation Issue - ERROR: could not load the script in /usr/lib/kamailio//kamctl/kamdbctl.mysql for database engine MYSQL

2022-08-01 Thread Henning Westerholt
Hello, indeed the package seems not to contain anything related to db_mysql or other SQL databases. Maybe somebody that knows more details can comment, it could be just not included there. https://pkgs.alpinelinux.org/contents?repo=main=1=x86_64=edge=kamailio Maybe you can just try the

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 From: sr-users On

[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):*

Re: [SR-Users] Limit cps per destination gw

2022-08-01 Thread Ihor Olkhovskyi
Jon, You can check one of my old blog posts related to this https://blog.provoip.org/2017/02/kamailio-limit-cpscpmconcurrent-calls.html It's based on htable and quite easy to implement Le 28/07/2022 à 20:19, Jon Bonilla (Manwe) a écrit : El Thu, 28 Jul 2022 18:08:33 + Henning Westerholt