Re: [SR-Users] Kamailio 5.0.X RPM packages/repo broken

2018-07-24 Thread Patrick Wakano
Hello Sergey!
Thanks for your attention!

I have just tried and it is still not working Same error...
I noticed the files in here
http://download.opensuse.org/repositories/home:/kamailio:/v5.0.x-rpms/CentOS_7/x86_64/
didn't get the modified date changed maybe the rebuild didn't work...

Kind regards,
Patrick Wakano



On 25 July 2018 at 01:23, Sergey Safarov  wrote:

> Hello Patrick
> Rebuild is trigered.
>
>
> вт, 24 июл. 2018 г. в 7:56, Patrick Wakano :
>
>> Hello Sergey!
>> Hope you are doing fine!
>>
>> I am having this same issue again today
>> Would you be able to check that?
>>
>> Thanks very much!
>> Kind regards,
>> Patrick Wakano
>>
>> # yum install kamailio
>> Loaded plugins: fastestmirror
>> Loading mirror speeds from cached hostfile
>>  * base: centos.mirror.serversaustralia.com.au
>>  * epel: mirror.intergrid.com.au
>>  * extras: centos.melbourneitmirror.net
>>  * remi: remi.conetix.com.au
>>  * remi-safe: remi.conetix.com.au
>>  * updates: mirror.intergrid.com.au
>> Resolving Dependencies
>> --> Running transaction check
>> ---> Package kamailio.x86_64 0:5.0.7-3.el7.centos will be installed
>> --> Processing Dependency: libkamailio_ims.so.0()(64bit) for package:
>> kamailio-5.0.7-3.el7.centos.x86_64
>> --> Running transaction check
>> ---> Package kamailio-ims.x86_64 0:5.0.7-3.el7.centos will be installed
>> --> Finished Dependency Resolution
>>
>> Dependencies Resolved
>>
>> 
>> 
>> =
>>  Package  Arch
>> Version Repository
>> Size
>> 
>> 
>> =
>> Installing:
>>  kamailio x86_64
>> 5.0.7-3.el7.centos  home_kamailio_v5.0.x-rpms
>> 5.1 M
>> Installing for dependencies:
>>  kamailio-ims x86_64
>> 5.0.7-3.el7.centos  home_kamailio_v5.0.x-rpms
>> 1.2 M
>>
>> Transaction Summary
>> 
>> 
>> =
>> Install  1 Package (+1 Dependent package)
>>
>> Total download size: 6.4 M
>> Installed size: 29 M
>> Is this ok [y/d/N]: y
>>
>> Downloading packages:
>> Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
>> kamailio-5.0.7-3.el7.centos.x8 FAILED
>>
>> http://download.opensuse.org/repositories/home%3A/kamailio%
>> 3A/v5.0.x-rpms/CentOS_7/x86_64/kamailio-5.0.7-3.el7.centos.x86_64.rpm:
>> [Errno 14] HTTP Error 416 - Requested Range Not Satisfiable
>> Trying other mirror.
>> kamailio-ims-5.0.7-3.el7.cento FAILED
>>   ] 218 kB/s | 710 kB  00:00:26
>> ETA
>> http://download.opensuse.org/repositories/home%3A/kamailio%
>> 3A/v5.0.x-rpms/CentOS_7/x86_64/kamailio-ims-5.0.7-3.el7.centos.x86_64.rpm:
>> [Errno -1] Package does not match intended download. Suggestion: run yum
>> --enablerepo=home_kamailio_v5.0.x-rpms clean metadata
>> Trying other mirror.
>>
>>
>> Error downloading packages:
>>   kamailio-5.0.7-3.el7.centos.x86_64: [Errno 256] No more mirrors to try.
>>   kamailio-ims-5.0.7-3.el7.centos.x86_64: [Errno 256] No more mirrors to
>> try.
>>
>>
>> On 10 July 2018 at 14:49, Patrick Wakano  wrote:
>>
>>> Thank you Sergey!!
>>> Installation was successful now!!
>>>
>>> Cheers!
>>> Patrick Wakano
>>>
>>> On 10 July 2018 at 14:24, Sergey Safarov  wrote:
>>>
 I was trigered rpm rebuild.
 Please check after 40 min.

 вт, 10 июля 2018 г., 6:57 Patrick Wakano :

> Hello list,
> Hope you all doing fine!
>
> I've been trying to install Kamailio packages from the opensuse repo
> (as per https://www.kamailio.org/wiki/packages/rpms) but the
> installation is failing with this message:
> Downloading packages:
> Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
> kamailio-ims-5.0.7-1.el7.cento FAILED
>
> http://download.opensuse.org/repositories/home%3A/kamailio%
> 3A/v5.0.x-rpms/CentOS_7/x86_64/kamailio-ims-5.0.7-1.el7.
> centos.x86_64.rpm: [Errno 14] HTTP Error 416 - Requested Range Not
> Satisfiable  --:--:-- ETA
> Trying other mirror.
> kamailio-5.0.7-1.el7.centos.x8 FAILED
> 77% [-
> ] 1.0 MB/s | 4.9 MB  00:00:01 ETA
> http://download.opensuse.org/repositories/home%3A/kamailio%
> 3A/v5.0.x-rpms/CentOS_7/x86_64/kamailio-5.0.7-1.el7.centos.x86_64.rpm:
> [Errno -1] Package does not match intended download. Suggestion: run yum
> --enablerepo=home_kamailio_v5.0.x-rpms clean metadata
> Trying other mirror.
>
> I've successfully installed the 5.0.7 version on Friday (06/07) but
> I've noticed the packages have changed last Saturday (07/07/2018) 

Re: [SR-Users] sipdump excluding dmq exchanges

2018-07-24 Thread John Petrini
One of the great features of dmq is that it can be run on a different port.
I'd suggest reconfiguring DMQ to use something other than 5060.
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] sipdump excluding dmq exchanges

2018-07-24 Thread Patrick Murphy
Hi


Can we have sipdump only log SIP messages and not KDMQ?


Thanks,

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


Re: [SR-Users] DMQ with dialog: KDMQ messages being looped back to the source

2018-07-24 Thread Patrick Murphy
Hi Charles,


Yes I exit after the handle_dmq function in the request route.


I couldn't spot the looping this time (as it is intermittent), but here is the 
trace of messages that may indicate something weird or unexpected happening 
with DMQ:

The following message came from Node B to A (which should never have originated 
because only A is receiving calls). I am assuming KDMQ will only flow from A 
--> B followed by their acks from B.

KDMQ sip:dia...@no.de.a.ip:5060 SIP/2.0
Via: SIP/2.0/UDP xx.xx.xx.xx:5060;branch=z9hG4bK22af.6d4559b500.0
To: 
From: ;tag=4d8de1338e3b915c083406d1267d5e7bg-1424
CSeq: 10 KDMQ
Call-ID: 7db853960276b4a4-20...@no.de.a.ip
Content-Length: 50
User-Agent: kamailio (5.1.1 (x86_64/linux))
Max-Forwards: 1
Content-Type: application/json

{"action":3,"h_entry":3521,"h_id":23807,"state":5}


And Node A correctly responded with a 500 because it was not expecting this

SIP/2.0 500 Server Internal Error
Via: SIP/2.0/UDP 
xx.xx.xx.xx:5060;branch=z9hG4bK22af.6d4559b500.0;received=no.de.b.ip
To: ;tag=7bf3c29789337c2087fcbd4083b8683d.147f
From: ;tag=4d8de1338e3b915c083406d1267d5e7bg-1424
CSeq: 10 KDMQ
Call-ID: 7db853960276b4a4-20...@no.de.b.ip
User-Agent: kamailio (5.1.1 (x86_64/linux))
Content-Length: 0




Regards,

Owais



From: sr-users  on behalf of Charles 
Chance 
Sent: Tuesday, July 24, 2018 3:46 PM
To: Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] DMQ with dialog: KDMQ messages being looped back to the 
source

Hi Pat,

In your config, do you exit immediately after handle_dmq_message()?

Are you able to share with us one of the looped messages, both as it is 
received by B and then as it is sent back to A?

Cheers,

Charles


On 24 July 2018 at 16:05, Patrick Murphy 
mailto:patmur...@outlook.com>> wrote:
Hi,

I am using Kamailio 5.1.1 with DMQ with the following config (relevant parts) 
on 2 nodes.

Node A:
modparam("dialog", "enable_dmq", 1)
modparam("dmq", "server_address", "sip:no.de.a.ip:5060")
modparam("dmq", "notification_address", "sip:myvoip.local")
modparam("dmq", "multi_notify", 1)


Node B:
modparam("dialog", "enable_dmq", 1)
modparam("dmq", "server_address", "sip:no.de.b.ip:5060")
modparam("dmq", "notification_address", "sip:myvoip.local")
modparam("dmq", "multi_notify", 1)

"myvoip.local" is a DNS A record that resolves to both the IPs of A and B.

I have the dmq_handle_message(); called if method is of type "KDMQ" in the 
request_route.

Now, in order to test it, I only sent a few calls only on node A.
KDMQ messages flowed to node B and dialog state replicated. But I noticed, node 
B was randomly sending one of the KDMQ dialog messages back to A and receiving 
a 500 "Server Internal Error" back from node A... (for a subset of those calls, 
not all).

Why would this be the case when the nodes correctly recognize their local 
status by the "local: 1" set as seen from dmq.list_nodes

Anyone else experienced this? What could I be doing wrong?


Thanks,
Pat.


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




Sipcentric Ltd. Company registered in England & Wales no. 7365592. Registered 
office: Faraday Wharf, Innovation Birmingham Campus, Holt Street, Birmingham 
Science Park, Birmingham B7 4BB.
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] DMQ with dialog: KDMQ messages being looped back to the source

2018-07-24 Thread Charles Chance
Hi Pat,

In your config, do you exit immediately after handle_dmq_message()?

Are you able to share with us one of the looped messages, both as it is
received by B and then as it is sent back to A?

Cheers,

Charles


On 24 July 2018 at 16:05, Patrick Murphy  wrote:

> Hi,
>
> I am using Kamailio 5.1.1 with DMQ with the following config (relevant
> parts) on 2 nodes.
>
> Node A:
> modparam("dialog", "enable_dmq", 1)
> modparam("dmq", "server_address", "sip:no.de.a.ip:5060")
> modparam("dmq", "notification_address", "sip:myvoip.local")
> modparam("dmq", "multi_notify", 1)
>
>
> Node B:
> modparam("dialog", "enable_dmq", 1)
> modparam("dmq", "server_address", "sip:no.de.b.ip:5060")
> modparam("dmq", "notification_address", "sip:myvoip.local")
> modparam("dmq", "multi_notify", 1)
>
> "myvoip.local" is a DNS A record that resolves to both the IPs of A and B.
>
> I have the dmq_handle_message(); called if method is of type "KDMQ" in the
> request_route.
>
> Now, in order to test it, I only sent a few calls only on node A.
> KDMQ messages flowed to node B and dialog state replicated. But I noticed,
> node B was randomly sending one of the KDMQ dialog messages back to A and
> receiving a 500 "Server Internal Error" back from node A... (for a subset
> of those calls, not all).
>
> Why would this be the case when the nodes correctly recognize their local
> status by the "local: 1" set as seen from dmq.list_nodes
>
> Anyone else experienced this? What could I be doing wrong?
>
>
> Thanks,
> Pat.
>
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>

-- 
Sipcentric Ltd.
Company registered in England & Wales no. 
7365592. Registered
office: Faraday Wharf, Innovation 
Birmingham Campus, Holt Street, Birmingham Science Park, Birmingham B7 4BB.
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Kamailio 5.0.X RPM packages/repo broken

2018-07-24 Thread Sergey Safarov
Hello Patrick
Rebuild is trigered.


вт, 24 июл. 2018 г. в 7:56, Patrick Wakano :

> Hello Sergey!
> Hope you are doing fine!
>
> I am having this same issue again today
> Would you be able to check that?
>
> Thanks very much!
> Kind regards,
> Patrick Wakano
>
> # yum install kamailio
> Loaded plugins: fastestmirror
> Loading mirror speeds from cached hostfile
>  * base: centos.mirror.serversaustralia.com.au
>  * epel: mirror.intergrid.com.au
>  * extras: centos.melbourneitmirror.net
>  * remi: remi.conetix.com.au
>  * remi-safe: remi.conetix.com.au
>  * updates: mirror.intergrid.com.au
> Resolving Dependencies
> --> Running transaction check
> ---> Package kamailio.x86_64 0:5.0.7-3.el7.centos will be installed
> --> Processing Dependency: libkamailio_ims.so.0()(64bit) for package:
> kamailio-5.0.7-3.el7.centos.x86_64
> --> Running transaction check
> ---> Package kamailio-ims.x86_64 0:5.0.7-3.el7.centos will be installed
> --> Finished Dependency Resolution
>
> Dependencies Resolved
>
>
> =
>  Package  Arch
> Version
> Repository Size
>
> =
> Installing:
>  kamailio x86_64
> 5.0.7-3.el7.centos
> home_kamailio_v5.0.x-rpms 5.1 M
> Installing for dependencies:
>  kamailio-ims x86_64
> 5.0.7-3.el7.centos
> home_kamailio_v5.0.x-rpms 1.2 M
>
> Transaction Summary
>
> =
> Install  1 Package (+1 Dependent package)
>
> Total download size: 6.4 M
> Installed size: 29 M
> Is this ok [y/d/N]: y
>
> Downloading packages:
> Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
> kamailio-5.0.7-3.el7.centos.x8
> FAILED
>
> http://download.opensuse.org/repositories/home%3A/kamailio%3A/v5.0.x-rpms/CentOS_7/x86_64/kamailio-5.0.7-3.el7.centos.x86_64.rpm:
> [Errno 14] HTTP Error 416 - Requested Range Not Satisfiable
> Trying other mirror.
> kamailio-ims-5.0.7-3.el7.cento
> FAILED  ]
> 218 kB/s | 710 kB  00:00:26 ETA
>
> http://download.opensuse.org/repositories/home%3A/kamailio%3A/v5.0.x-rpms/CentOS_7/x86_64/kamailio-ims-5.0.7-3.el7.centos.x86_64.rpm:
> [Errno -1] Package does not match intended download. Suggestion: run yum
> --enablerepo=home_kamailio_v5.0.x-rpms clean metadata
> Trying other mirror.
>
>
> Error downloading packages:
>   kamailio-5.0.7-3.el7.centos.x86_64: [Errno 256] No more mirrors to try.
>   kamailio-ims-5.0.7-3.el7.centos.x86_64: [Errno 256] No more mirrors to
> try.
>
>
> On 10 July 2018 at 14:49, Patrick Wakano  wrote:
>
>> Thank you Sergey!!
>> Installation was successful now!!
>>
>> Cheers!
>> Patrick Wakano
>>
>> On 10 July 2018 at 14:24, Sergey Safarov  wrote:
>>
>>> I was trigered rpm rebuild.
>>> Please check after 40 min.
>>>
>>> вт, 10 июля 2018 г., 6:57 Patrick Wakano :
>>>
 Hello list,
 Hope you all doing fine!

 I've been trying to install Kamailio packages from the opensuse repo
 (as per https://www.kamailio.org/wiki/packages/rpms) but the
 installation is failing with this message:
 Downloading packages:
 Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
 kamailio-ims-5.0.7-1.el7.cento
 FAILED

 http://download.opensuse.org/repositories/home%3A/kamailio%3A/v5.0.x-rpms/CentOS_7/x86_64/kamailio-ims-5.0.7-1.el7.centos.x86_64.rpm:
 [Errno 14] HTTP Error 416 - Requested Range Not Satisfiable  --:--:-- ETA
 Trying other mirror.
 kamailio-5.0.7-1.el7.centos.x8
 FAILED 77%
 [-
 ] 1.0 MB/s | 4.9 MB  00:00:01 ETA

 http://download.opensuse.org/repositories/home%3A/kamailio%3A/v5.0.x-rpms/CentOS_7/x86_64/kamailio-5.0.7-1.el7.centos.x86_64.rpm:
 [Errno -1] Package does not match intended download. Suggestion: run yum
 --enablerepo=home_kamailio_v5.0.x-rpms clean metadata
 Trying other mirror.

 I've successfully installed the 5.0.7 version on Friday (06/07) but
 I've noticed the packages have changed last Saturday (07/07/2018) Given
 this error message looks like the repository is broken somehow
 Is anyone aware of such issue? I haven't tried the 5.1.X repo because
 my script was not migrated to 5.1.X yet

 Thanks,
 Kind regards,
 Patrick Wakano
 ___
 Kamailio (SER) - Users Mailing List
 sr-users@lists.kamailio.org
 

[SR-Users] kamcmd htable.reload propertiesHash problem

2018-07-24 Thread Ginhoux, Patrick
Hi,

 

I run Kamailio 5.0.1 with MariaDB database.

 

There is no issue at the initialization, meaning the db is opened by
kamailio and the hash tables loaded from the db tables.

Example:

# kamcmd htable.dump propertiesHash

{

entry: 1

size: 1

slot: {

item: {

name: cfg.env

 

But the htable.reload command fails:

error: 500 - Failed to open htable db connection

 

The Kamailio log reports that it can't connect the db :

DEBUG: ctl [../../core/io_wait.h:380]: io_watch_add(): DBG:
io_watch_add(0x7f68c74ab300, 10, 3, 0xdc9410), fd_no=1

DEBUG: ctl [io_listener.c:442]: handle_new_connect(): handle_stream read:
new connection (1) on /var/run/kamailio//kamailio_ctl

DEBUG:  [core/sr_module.c:694]: find_mod_export_record():
find_export_record: found  in module db_mysql
[/usr/lib64/kamailio/modules/db_mysql.so]

DEBUG:  [db.c:209]: db_bind_mod(): using db bind api for db_mysql

DEBUG:  [db.c:314]: db_do_init2(): connection 0x7f68cc354c10 not found
in pool

DEBUG: db_mysql [km_my_con.c:98]: db_mysql_new_connection(): opening
connection: mysql://:@/siprouter

ERROR: db_mysql [km_my_con.c:124]: db_mysql_new_connection(): driver error:
Can't connect to local MySQL server through socket
'/var/lib/mysql/mysql.sock' (2 "No such file or directory")

ERROR:  [db.c:318]: db_do_init2(): could not add connection to the
pool

ERROR: htable [ht_db.c:92]: ht_db_open_con(): failed to connect to the
database

 

My local db is located at /myqdata/mysiprdb/data where is the mysiprdb.sock
file. But the log shows that Kamailio is looking for
/var/lib/mysql/mysql.sock.

 

Does this error make sense to you ?

Is it possible to fix this problem by configuration in Kamailio ?

 

My kamailio.cfg script contains :

 

# - htable

modparam("htable", "db_url", "mysql://[kamailio]/siprouter")

 

modparam("htable", "fetch_rows", 1000)

modparam("htable", "htable", "mbxrangeHash=>size=4;dbtable=mbxrange;")

modparam("htable", "htable", "abpqHash=>size=12;dbtable=abpq;")

modparam("htable", "htable", "zabpqHash=>size=12;dbtable=zabpq;")

modparam("htable", "htable", "propertiesHash=>size=4;dbtable=properties;") 

 

In the /myqdata/mysiprdb/data/my.cnf, I added the following entries for
Kamailio:

[kamailio]

socket = /myqdata/mysiprdb/data/mysiprdb.sock

user = siprouter

password = ##

default-character-set = utf8

 

Thanks all for help.

 

Cordialement.

Patrick GINHOUX

 



smime.p7s
Description: S/MIME cryptographic signature
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Kamailio Calls Concurrency

2018-07-24 Thread Henning Westerholt
Am Montag, 23. Juli 2018, 09:07:16 CEST schrieb Abtin Mir:
> I understand the IO operations affects to overall performance. That proxy
> server is actually a dispatcher (Load Balancer)  to different Asterisk pbx
> endpoints and is only going to log INVITEs and BYEs. Since I'm new to SER ,
> Not really sure If should have RTP-Proxy as well, or not.(Your advice on
> this is appreciated).
> 
>  So how you think the concurrency would be now? (Considering 16GB of RAM
> and 4 cores of Xeon-Silver 4114) I just need a estimated number by an
> expert like you.

Hello Abtin,

again - this is hard to say. I know from a past setup in an carrier grade 
environment that we sized it to have 3000-6000 concurrent calls per proxy. The 
server were not much under load. They handled also more concurrent calls 
without any issues in certain fail-over situations. And this was several years 
ago, which slower hardware.

So the bottom line is - in a reasonable optimized setup on standard hardware 
you should probably not run into CPU or RAM issues with Kamailio. The limiting 
factor is in most cases the I/O.

Best regards,

Henning

> On Sun, Jul 22, 2018 at 12:23 PM, Henning Westerholt 
> 
> wrote:
> > Am Freitag, 6. Juli 2018, 09:52:16 CEST schrieb Abtin Mir:
> > > As a proxy server , How many concurrent calls can be processed by a
> > > Kamailio which is installed on a VM with 4 cores and 16GB of RAM?
> > > 
> > > Your answer is much appreciated.
> > 
> > Hello Abtin,
> > 
> > this depends a lot on your configuration, if you use a lot of database
> > requests, if the database is local or remote, the database performance,
> > the
> > amount of logging you are doing locally, do you handle RTP as well and so
> > on.
> > 
> > If your server is not exceedingly using a lot of this mentioned IO
> > operations,
> > you should be able to handle many thousands concurrent calls with one
> > server.
> > 
> > But to have a proper answer for your certain scenario, you need to test
> > it.
> > 
> > Best regards,
> > 
> > Henning
> > 
> > 
> > --
> > If you like my work in the Kamailio project, it would be great if you
> > could
> > consider supporting me on Patreon: https://www.patreon.com/henningw


-- 
If you like my work in the Kamailio project, it would be great if you could 
consider supporting me on Patreon: https://www.patreon.com/henningw

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