Re: [SR-Users] Unable to install kamailio-mysql on CentOS 9

2022-12-01 Thread Ankit Jayswal
Hello,

You can go through this book to get started with its most useful use cases.

*https://www.amazon.com/Kamailio-Use-Cases-Integration-infrastructure-ebook/dp/B0B6VR2TVL/ref=sr_1_1?crid=711U445DI24Y=kamailio+use+cases=1669886374=kamailio+use+cases%2Caps%2C310=8-1
*

On Thu, Dec 1, 2022 at 2:38 PM Shailendra Paliwal 
wrote:

> Hello,
>
> I'm trying to set up kamailio on a Cent OS 9 server but I'm unable to
> install the kamailio-mysql module. Can someone suggest any possible
> solutions here,
>
> Tried to setup kamdbctl after changing the configuration to use mysql,
> ➜  ~ kamdbctl create
> ERROR: could not load the script in
> /usr/lib64/kamailio//kamctl/kamdbctl.mysql for database engine MYSQL
> ERROR: database engine not loaded - tried 'MYSQL'
>
> Contents of /usr/lib64/kamailio/kamctl/, I'm not sure why there's a double
> slash in the message above
> ➜  ~ ls /usr/lib64/kamailio/kamctl/
> dbtextdb  kamctl.base  kamctl.ctlbase  kamctl.dbtext  kamctl.rpcfifo
>  kamctl.ser  kamctl.sqlbase  kamdbctl.base  kamdbctl.dbtext
>
> I'm unable to install kamailio-mysql
> ➜  ~ dnf install kamailio-mysql
> Last metadata expiration check: 0:00:23 ago on Thursday 01 December 2022
> 03:53:45 AM.
> Error:
>  Problem: conflicting requests
>   - nothing provides libmysqlclient.so.21()(64bit) needed by
> kamailio-mysql-5.6.2-0.el9.centos.x86_64
>   - nothing provides libmysqlclient.so.21(libmysqlclient_21.0)(64bit)
> needed by kamailio-mysql-5.6.2-0.el9.centos.x86_64
>   - nothing provides mysql-libs needed by
> kamailio-mysql-5.6.2-0.el9.centos.x86_64
> (try to add '--skip-broken' to skip uninstallable packages or '--nobest'
> to use not only best candidate packages)
>
> I've checked that I do have the following repolists,
> ➜  kamctl dnf repolist
> repo id  repo name
> appstreamCentOS Stream 9 -
> AppStream
> baseos   CentOS Stream 9 -
> BaseOS
> epel Extra Packages
> for Enterprise Linux 9 - x86_64
> epel-nextExtra Packages
> for Enterprise Linux 9 - Next - x86_64
> extras-commonCentOS Stream 9 -
> Extras packages
> kamailio Kamailio - latest
> - Packages for the Kamailio latest release
> mariadb-main MariaDB Server
> mariadb-maxscale MariaDB MaxScale
> mariadb-toolsMariaDB Tools
> tailscale-stable Tailscale stable
>
> This is after a fresh installation of CentOS 9. I believe that I might
> have a missing repolist or probably have something incorrect in the
> configuration.
> __
> 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] TLS issue

2022-08-21 Thread Ankit Jayswal
Hello,
For adding the CA list below is the article that can help you.

*https://telecom.altanai.com/2018/09/04/kamailio-webrtc-sip-server/
*

Search the line, *find / -name cacert.pem* there you will find the steps to
get it.
But in my case it works without *ca_list* also.


On Sat, Aug 20, 2022 at 2:45 AM M Arqum CH  wrote:

> Hi Henning,
> Thank you for your reply.
> yes there is ca_list parameter .. but no idea from where i can get that
> list.
> can you please guide me on how to get ca_list, how would I generate
> ca_list.
>
> thanks
>
> On Fri, Aug 19, 2022 at 2:40 PM Henning Westerholt  wrote:
>
>> Hello,
>>
>>
>>
>> try to add the „ca_list” parameter to your ca file, it seems an error
>> related to that.
>>
>>
>>
>> Cheers,
>>
>>
>>
>> Henning
>>
>>
>>
>> --
>>
>> Henning Westerholt – https://skalatan.de/blog/
>>
>> Kamailio services – https://gilawa.com
>>
>>
>>
>> *From:* sr-users  *On Behalf Of *M
>> Arqum CH
>> *Sent:* Thursday, August 18, 2022 10:49 PM
>> *To:* Kamailio (SER) - Users Mailing List 
>> *Subject:* [SR-Users] TLS issue
>>
>>
>>
>> Dear All,
>>
>> Thank you in advance .
>>
>>
>>
>> Facing issue is setting up tls with kamailio 5.5.4 on ec2 Amazon
>> linux server.
>>
>>
>>
>> Getting this error.
>>
>>
>>
>> Aug 18 20:36:33 abc.domain /usr/local/mykamailio/sbin/kamailio[10772]:
>> ERROR: tls [tls_server.c:1329]: tls_h_read_f(): protocol level error
>> Aug 18 20:36:33 abc.domain /usr/local/mykamailio/sbin/kamailio[10772]:
>> ERROR: tls [tls_util.h:42]: tls_err_ret(): TLS accept:error:14094418:SSL
>> routines:ssl3_read_bytes:tlsv1 alert unknown ca
>> Aug 18 20:36:33 abc.domain /usr/local/mykamailio/sbin/kamailio[10772]:
>> ERROR: tls [tls_server.c:1333]: tls_h_read_f(): src addr:
>> 143.198.11.1:62033  ///client ip
>> Aug 18 20:36:33 abc.domain /usr/local/mykamailio/sbin/kamailio[10772]:
>> ERROR: tls [tls_server.c:1336]: tls_h_read_f(): dst addr:
>> 172.36.53.1:5061 ///ec2 local ip
>> Aug 18 20:36:33 abc.domain /usr/local/mykamailio/sbin/kamailio[10772]:
>> ERROR:  [core/tcp_read.c:1481]: tcp_read_req(): ERROR: tcp_read_req:
>> error reading - c: 0x80d78a10 r: 0x80d78b38 (-1)
>>
>>
>>
>> TLS Config
>>
>> [server:default]
>> method = TLSv1+
>> verify_certificate = no
>> require_certificate = nocertificate=/usr/local/ssl/certs/cert.pem
>> private_key=/usr/local/ssl/certs/fullkey.pem
>> server_name = abc.domain
>>
>>
>>
>>
>>
>> Also tried this conf
>>
>> [server:default]
>> method =  TLSv1+ ///tries all version options
>>
>>
>> verify_certificate = no
>> require_certificate = no
>> certificate=/usr/local/ssl/certs/ abc.domain.crt
>> private_key=/usr/local/ssl/certs/ abc.domain.key
>> server_name = abc.domain.link
>>
>>
>>
>> openssl version
>> OpenSSL 1.0.2k-fips  26 Jan 2017
>>
>>
>>
>>
>>
>>
>>
>> please guide.
>>
>>
>>
>>
>>
>> --
>>
>> Regards
>>
>> Arqum
>>
>
>
> --
> Regards
> M Arqum
> __
> 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-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-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 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


[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


[SR-Users] Kamailio WebRTC Call Not Working

2022-03-20 Thread Ankit Jayswal
Hi,
I have configured Kamailio to register a SIP user over websocket. SIP users
are getting registered over webphone like JSSIP fine but not able to
establish the call scenario below.

>From Twilio Trunk - INVITE - KAMAILIO - ASTERISK - play hello world - Dial
SIP user 101@Kamailio_IP - Rings 101 and Answer - Hangup.

Here,
101 is registered with Kamailio IP, and I am sending a call from Twilio SIP
trunk to Kamailio server IP.
Asterisk is on port 5080 and Kamailio is on port 5090 both are on the same
host 45.118.163.244.

This above call scenario is NOT working with Webphones registered via
JSSIP. I think the second call leg from Asterisk -> Kamailio is not getting
set up properly and ACK is not getting confirmed here, call connects for
some time and no voice transmits and then disconnects.

The same call scenario is working with users registered at Softphone like
Zoiper perfectly fine. No idea why it is not working with a webphone.

I have attached kamailio.cfg, Kamailio log and Asterisk's pjsip logs here.
So, please guide me on this as soon as possible.

-- 
Thanks & Regards,
*Ankit Jayswal* | Specialist - Software Development
Mar 21 10:12:57 appserver /usr/sbin/kamailio[4162347]: ALERT: {1 1 INVITE c05d5e269be508cb10799b8be02d202a@0.0.0.0}