Re: [SR-Users] Best way to log incoming/outgoing sip messages?

2017-01-21 Thread Gholamreza Sabery
I think one of the best ways is to use Homer + Kamailio's sipcapture module. For more information refer to: http://sipcapture.org/ On Sat, Jan 21, 2017 at 2:34 AM, Sergey Okhapkin wrote: > Use xlog function. See $mb core variable documentation. > > On Friday, January 20, 2017 10:27:03 PM Pranat

Re: [SR-Users] Ansible Kamailio role

2017-01-20 Thread Gholamreza Sabery
There are already a role and a Github repository for Kamailio deployment. The repository can deploy an Active-Passive Kamailio cluster with a cluster of RTPProxy servers; for more info refer to: http://github.com/ghrst On Fri, Jan 20, 2017 at 10:06 PM, Alberto Llamas wrote: > Hello Kamailians,

Re: [SR-Users] RTPProxy benchmark

2016-11-15 Thread Gholamreza Sabery
eout expires. > > Regards, > Dragos > > > On 15/11/2016 09:01, Daniel-Constantin Mierla wrote: > > Are you ending the rtp proxy sessions when the call are ended? What > > rtpproxy functions are you using in the configuration file? > > > > Cheers, > > Da

Re: [SR-Users] RTPProxy benchmark

2016-11-14 Thread Gholamreza Sabery
evious sessions are ended? > Cheers, > Daniel > > > On 14/11/16 11:19, Gholamreza Sabery wrote: > > I already set these parameters: > > rtpproxy -m 5000 -M 65000 > > As well limits for number of open files are set to 100 (ulimit -n). > Wh

Re: [SR-Users] RTPProxy benchmark

2016-11-14 Thread Gholamreza Sabery
> > Cheers, > Daniel > > On 14/11/16 11:14, Gholamreza Sabery wrote: > > Dear Daniel: > > I used a single RTPProxy instance. RTPProxy version = 20040107. And yes > there was traffic for all calls but traffic is one-way. One leg sends the > call and the other just r

Re: [SR-Users] RTPProxy benchmark

2016-11-14 Thread Gholamreza Sabery
ou used a single rtpproxy instance? Was there RTP traffic for all > 1900 calls? Is this with rtpproxy 1.2 or 2.0? > > Cheers, > Daniel > > On 14/11/16 10:44, Gholamreza Sabery wrote: > > I managed to create about 1900 concurrent calls using a single Kamailio > and RTPProxy se

[SR-Users] RTPProxy benchmark

2016-11-14 Thread Gholamreza Sabery
I managed to create about 1900 concurrent calls using a single Kamailio and RTPProxy server. But after this number RTPProxy returns 0 and the following error is shown in the Kamailio log files: incorrect port 0 in reply from rtp proxy What is the problem here? Also number of file descriptors that

Re: [SR-Users] NER and ASR

2016-11-07 Thread Gholamreza Sabery
ke care about Media-Relaying. That setup had an NER of 100% > and an ASR between 50% and 80%, the ASR was higher during the evenings, as > people were at home. > > Thanks, > Carsten > > 2016-11-07 8:43 GMT+01:00 Gholamreza Sabery : > >> Are there any real data about

Re: [SR-Users] NER and ASR

2016-11-07 Thread Gholamreza Sabery
and an ASR between 50% and 80%, the ASR was higher during the evenings, as > people were at home. > > Thanks, > Carsten > > 2016-11-07 8:43 GMT+01:00 Gholamreza Sabery : > >> Are there any real data about number of concurrent calls, number of >> on-line users, NER (Network Eff

[SR-Users] NER and ASR

2016-11-06 Thread Gholamreza Sabery
Are there any real data about number of concurrent calls, number of on-line users, NER (Network Effectiveness Ratio) and ASR (Answer Seizure Ratio) of a real VoIP system? I want this data for making comparisons. Can anyone provide a reference, article, etc..

Re: [SR-Users] diff between location and kamctl ul show

2016-11-01 Thread Gholamreza Sabery
Than is because of your db_mode. If you want everything to be written in the database use db_mode 3. For more information read this: http://kamailio.org/docs/modules/stable/modules/usrloc.html#usrloc.p.db_mode On Wed, Nov 2, 2016 at 6:38 AM, Никитенко Виталий wrote: > Hi all! > I have kamailio

Re: [SR-Users] ACC module and BYE attacks

2016-11-01 Thread Gholamreza Sabery
an onreply_route for the BYE requests and inside it, if the code > is 481, the reset the accounting flag(ie., resetflag(FLT_ACC)). > > If someone tries it, would be good to know the results whether it works > or not. > > Cheers, > Daniel > > On 01/11/16 09:32, Alex Balasho

Re: [SR-Users] ACC module and BYE attacks

2016-10-31 Thread Gholamreza Sabery
Is there an option in the ACC module for this, or I should handle dialog tracking using dialog module? On Tue, Nov 1, 2016 at 10:24 AM, Alex Balashov wrote: > On 11/01/2016 02:43 AM, Gholamreza Sabery wrote: > > If you enable acc module to log CDR data into a database a user can s

[SR-Users] ACC module and BYE attacks

2016-10-31 Thread Gholamreza Sabery
If you enable acc module to log CDR data into a database a user can send an infinite number of BYE requests to the server and all of them will be logged into the database as "481 Call/transaction does not exist"! How can we prevent this? ___ SIP Express R

Re: [SR-Users] Busy return code when a user has an ongoing transaction

2016-10-10 Thread Gholamreza Sabery
Thanks a lot Daniel. On Mon, Oct 10, 2016 at 9:31 PM, Daniel-Constantin Mierla wrote: > > > On 10/10/16 13:21, Gholamreza Sabery wrote: > > I want to be able to return a Busy code foe a user that is talking to > > someone else and receives an INVITE for a new call. How can

[SR-Users] Busy return code when a user has an ongoing transaction

2016-10-10 Thread Gholamreza Sabery
I want to be able to return a Busy code foe a user that is talking to someone else and receives an INVITE for a new call. How can I implement this in Kamailio? Regards ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@

Re: [SR-Users] Kamailio number of concurrent calls

2016-10-02 Thread Gholamreza Sabery
These scenarios are pretty good but they does not include what I want. On Sun, Oct 2, 2016 at 1:55 PM, Alex Balashov wrote: > Are you truly talking about 1000 call setups per second, or are you > talking about 1000 concurrent calls total? > > If the latter, SIPp can handle that, with media. > >

Re: [SR-Users] Kamailio number of concurrent calls

2016-10-02 Thread Gholamreza Sabery
It's problem is that you must have 1000 listening clients to be able to make those calls! How to do this? Do you have any examples? On Sun, Oct 2, 2016 at 1:00 PM, Alex Balashov wrote: > On 10/02/2016 04:26 AM, Gholamreza Sabery wrote: > > SIPp has media sending capabilities but

[SR-Users] Kamailio number of concurrent calls

2016-10-02 Thread Gholamreza Sabery
I used SIPp to stress test different scenarios in Kamailio, but how can I simulate a real call with media? SIPp has media sending capabilities but in not enough for example to simulate 1000 calls persecond! How can I test this? ___ SIP Express Router (SER

Re: [SR-Users] Load balancing traffic with Kamailio

2016-09-29 Thread Gholamreza Sabery
Why do you repost this question again and again? I think this question has been answered and the module that you need is Dispatcher module: http://www.kamailio.org/docs/modules/4.2.x/modules/dispatcher.html Regards On Thu, Sep 29, 2016 at 12:01 PM, Nitesh Bansal wrote: > Hello, > > I'm planning

Re: [SR-Users] Load balancing with Kamailio

2016-09-26 Thread Gholamreza Sabery
Hello, You can use dispatcher module: http://www.kamailio.org/docs/modules/4.2.x/modules/dispatcher.html On Mon, Sep 26, 2016 at 1:37 PM, NITESH BANSAL wrote: > Hello, > > > I'm planning on doing some smart load balancing with Kamailio. > > We have a distributed network, with multiple Kamailio

Re: [SR-Users] Location Table In db_mode 3

2016-09-25 Thread Gholamreza Sabery
ata to disk every second. > > > > > > *From:* sr-users [mailto:sr-users-boun...@lists.sip-router.org] *On > Behalf Of *Gholamreza Sabery > *Sent:* 25 September 2016 09:16 > > *To:* Kamailio (SER) - Users Mailing List > *Subject:* Re: [SR-Users] Location Table In db

Re: [SR-Users] Location Table In db_mode 3

2016-09-25 Thread Gholamreza Sabery
db_flush_log_at_trx_commit>? > > > Also, what value do you have for MySQL parameter innodb_buffer_pool_size > and > > how large is your MySQL data directory at peak? > > > > > > > From: sr-users [mailto:sr-users-boun...@lists.sip-router.org] On Behalf > Of

Re: [SR-Users] Location Table In db_mode 3

2016-09-24 Thread Gholamreza Sabery
; > I’m not entirely convinced that changing it to a memory table will help as > you are presumably doing MySQL replication between your two Kamailio nodes. > Memory tables don’t replicate well. > > > > > > *From:* sr-users [mailto:sr-users-boun...@lists.sip-router.org] *On &

Re: [SR-Users] Location Table In db_mode 3

2016-09-24 Thread Gholamreza Sabery
ave? > > > > > > *From:* sr-users [mailto:sr-users-boun...@lists.sip-router.org] *On > Behalf Of *Gholamreza Sabery > *Sent:* 24 September 2016 19:39 > *To:* Kamailio (SER) - Users Mailing List > *Subject:* [SR-Users] Location Table In db_mode 3 > > > > I have

[SR-Users] Location Table In db_mode 3

2016-09-24 Thread Gholamreza Sabery
I have multiple Kamailio servers in an Active/Active scenario (the database is a MySQL server) using db_mode 3. But when the number of clients goes up writes on the location table become too much and it causes database problems. I even put my location table on a separate SSD disk on the server to s

[SR-Users] Location Table In db_mode 3

2016-09-23 Thread Gholamreza Sabery
I have multiple Kamailio servers in an Active/Active scenario (the database is a MySQL server) using db_mode 3. But when the number of clients goes up writes on the location table become too much and it causes database problems. I even put my location table on a separate SSD disk on the server to s

Re: [SR-Users] Replacing Asterisk with Kamailio

2016-09-13 Thread Gholamreza Sabery
For testing purpose you can use example config file it is a very good place to start. Also if you want automatic installation and deployment you can use this project: https://github.com/ghrst/Kamailio-HA On Tue, Sep 13, 2016 at 8:57 PM, Valter Nogueira wrote: > We won't need transcoding. > > I

Re: [SR-Users] Kamailio - Multiple NAT

2016-09-12 Thread Gholamreza Sabery
The best way to see what is happening is to capture some packets on the Kamailio system on which calls happen and see if any IP address or port number issues exist in body of SIP messages or not. You can simple use Wireshark to see what is going on. Regards On Mon, Sep 12, 2016 at 4:58 PM, Marino

Re: [SR-Users] Equivalent of OpenSIP's binary interface in Kamailio

2016-06-21 Thread Gholamreza Sabery
he things that you want to replicate ? Just call dialog states ? > > Given some more usage clarification, someone might be able to guide > further on what can be used. > > Regards, > Sammy > > > > On Sat, Jun 18, 2016 at 2:15 AM, Gholamreza Sabery > wrot

[SR-Users] Equivalent of OpenSIP's binary interface in Kamailio

2016-06-17 Thread Gholamreza Sabery
In OpenSIPS binary interface ( https://www.opensips.org/Documentation/Interface-Binary-2-2) provides a more efficient way of replicating state between multiple OpenSIPs instances. What is the equivalent feature in Kamailio? Regards ___ SIP Express Route

Re: [SR-Users] High availability

2016-06-06 Thread Gholamreza Sabery
For Kamailio high availability you can refer to the following project: https://github.com/ghrst/Kamailio-HA Regards On Mon, Jun 6, 2016 at 12:02 PM, wrote: > Hi Moacir, > > I use keepalived and MySQL in a similar way to what you have described. > > Keepalived to manage an active/passive Kamail

Re: [SR-Users] no pkg memory left

2016-02-15 Thread Gholamreza Sabery
I am using Kamailio 4.3.4. On Mon, Feb 15, 2016 at 5:10 PM, ycaner wrote: > Hello; > i think there is a memory leak. could you write kamailio Version. > And can you active memlog and mem_summary. You can find it how can you use > it here http://www.kamailio.org/wiki/cookbooks/4.3.x/core >

[SR-Users] no pkg memory left

2016-02-15 Thread Gholamreza Sabery
Hello. I am seeing the following error repeating again and again in the log file: /sbin/kamailio[14510]: ERROR: registrar [reply.c:199]: build_contact(): no pkg memory left I am using 64MB of SHM memory and 8MB of PKG memory. What is the reason for this error? How to solve it? _

Re: [SR-Users] Kamailio strange behaviour

2016-02-05 Thread Gholamreza Sabery
n this case you have to switch > to tls. > > Cheers, > Daniel > > On 05/02/16 07:35, Gholamreza Sabery wrote: > > I am using Kamailio 4.1.x with NAT enabled. When I want to REGISTER using > my desktop client which is Linphone everything is find with any username. > But on

[SR-Users] Kamailio strange behaviour

2016-02-04 Thread Gholamreza Sabery
I am using Kamailio 4.1.x with NAT enabled. When I want to REGISTER using my desktop client which is Linphone everything is find with any username. But on Android some users can REGISTER and someusers can not. I captured SIP packets and the only difference between packets on Android devices and pac

Re: [SR-Users] Kamailio Cluster

2016-02-03 Thread Gholamreza Sabery
Actually I think something is not clear here. Suppose I want to use two Kamailio servers such that a client which is registered on server A is able to call another client registered on server B. In this case I use DB_MODE 3. Both servers have access to location database but sockets are non-local an

Re: [SR-Users] Kamailio Cluster

2016-02-01 Thread Gholamreza Sabery
All right. Thank you so much. On Mon, Feb 1, 2016 at 11:47 AM, Federico Cabiddu < federico.cabi...@gmail.com> wrote: > Hi, > a solution in this case could be making usage of Path header ( > https://tools.ietf.org/html/rfc3327). > > You have to load the path module > > http://www.kamailio.org/docs

Re: [SR-Users] Kamailio Cluster

2016-02-01 Thread Gholamreza Sabery
Yes I want to distribute my users across multiple Kamailio servers. It seems a good idea than you Alex I will try it! On Mon, Feb 1, 2016 at 11:10 AM, Alex Balashov wrote: > Here's a thought, though: > > If your goal is really for users registered on one server to be able to > easily call users

Re: [SR-Users] Kamailio Cluster

2016-01-31 Thread Gholamreza Sabery
Thank you so much Alex. I tried REGISTER replication and DM_MODE 3. But my problem here is that in these scenarios Kamailio will give you a non-local socket error. I want to have multiple Kamailio servers so that a user that is registered on one server can easily call other users on another server.

Re: [SR-Users] Kamailio Cluster

2016-01-31 Thread Gholamreza Sabery
hi Gholamreza Sabery > you should be implement HA on your server.you can use the > pacemaker/corosync or other software for run and configuration HA on > your server. > > > On 1/31/16, Gholamreza Sabery wrote: > > I am trying to create a cluster of Kamailio servers. I want user

[SR-Users] Kamailio Cluster

2016-01-30 Thread Gholamreza Sabery
I am trying to create a cluster of Kamailio servers. I want users that are registered on one server to be able to contact and call users on other servers. How can I implement this in Kamailio? PS: My servers are in a private network and I do not have DNS. __

Re: [SR-Users] RTP Statistics

2016-01-29 Thread Gholamreza Sabery
s been indispensable for me nonetheless. > > https://github.com/sipcapture/homer > > On Jan 28, 2016, at 8:28 AM, Gholamreza Sabery > wrote: > > No idea? > > On Wed, Jan 27, 2016 at 5:57 PM, Gholamreza Sabery > wrote: > >> Hello everyone. I want to store RTCP Statisti

Re: [SR-Users] RTP Statistics

2016-01-28 Thread Gholamreza Sabery
No idea? On Wed, Jan 27, 2016 at 5:57 PM, Gholamreza Sabery wrote: > Hello everyone. I want to store RTCP Statistics for a RTP session. > Currently I am using $rtpstat pseudo-variable which is exported by RTPProxy > module. The value of this variable does not show actual number o

[SR-Users] RTP Statistics

2016-01-27 Thread Gholamreza Sabery
Hello everyone. I want to store RTCP Statistics for a RTP session. Currently I am using $rtpstat pseudo-variable which is exported by RTPProxy module. The value of this variable does not show actual number of packets sent and received; and only contains ttl, npkts_ina, npkts_ino, nrelayed and ndrop

Re: [SR-Users] Kamailio and NAT

2016-01-13 Thread Gholamreza Sabery
ic IP address (to be used for advertising).". For example: listen=udp:10.10.10.10:5060 advertise 11.11.11.11:5060 For more info refer to http://www.kamailio.org/wiki/cookbooks/3.3.x/core#listen Regards Gholamreza Sabery Tabrizy On Wed, Jan 13, 2016 at 2:39 AM, Daniel-Constantin Mie

Re: [SR-Users] Best way to store RTPProxy statistics in database

2015-12-27 Thread Gholamreza Sabery
Thx alot. I think this module can solve my issue. It is great! On Sun, Dec 27, 2015 at 10:29 PM, Alex Balashov wrote: > Hello Gholamreza, > > On 12/27/2015 01:51 PM, Gholamreza Sabery wrote: > >> Is there a better, more efficient way to store arbitrary data like this &

[SR-Users] Best way to store RTPProxy statistics in database

2015-12-27 Thread Gholamreza Sabery
I want to store RTPProxy statistics in $rtpstat variable (exported by RTPProxy module) into database. Currently I use app_python module to run a specific Python script with from_tag, to_tag, callid and $rtpstat as parameters. This module puts this information in a message queue which is red by anot

Re: [SR-Users] ACC module from_tag, to_tag and callid

2015-12-21 Thread Gholamreza Sabery
se to match the values for INVITE -- look at the parameters > for rr and acc modules. > > Cheers, > Daniel > > > On 20/12/15 11:42, Gholamreza Sabery wrote: > > Alright. Thank you. ;) > > On Sun, Dec 20, 2015 at 2:11 PM, Dmitri Savolainen > wrote: > >> BYE

Re: [SR-Users] ACC module from_tag, to_tag and callid

2015-12-20 Thread Gholamreza Sabery
Alright. Thank you. ;) On Sun, Dec 20, 2015 at 2:11 PM, Dmitri Savolainen wrote: > BYE is the request (not response message) > > 2015-12-20 13:32 GMT+03:00 Gholamreza Sabery : > >> Thank you Dmitri. But It seems that it should not work this way. Here: >> https://supportf

Re: [SR-Users] ACC module from_tag, to_tag and callid

2015-12-20 Thread Gholamreza Sabery
wapped. > > 2015-12-20 11:52 GMT+03:00 Gholamreza Sabery : > >> In the ACC modules' database table (acc) in Kamailio sometimes from_tag, >> to_tag and callid of an INVITE and corresponding BYE completely match. But >> sometimes from_tag in INVITE is to_tag of BYE and to_tag of

[SR-Users] ACC module from_tag, to_tag and callid

2015-12-20 Thread Gholamreza Sabery
In the ACC modules' database table (acc) in Kamailio sometimes from_tag, to_tag and callid of an INVITE and corresponding BYE completely match. But sometimes from_tag in INVITE is to_tag of BYE and to_tag of BYE will become from_tag of INVITE. Why this happens? Is this normal? Regards

Re: [SR-Users] State-full failover Kamailio+RTPProxy

2015-12-16 Thread Gholamreza Sabery
If you want to store the state of a Kamailio server you should use db_mode 3. This mode stores everything (even socket information) in the database. In this case using a virtual IP address you can fail over to another server. This can be easily done using Pacemaker and Corosync. I created a simple

Re: [SR-Users] Kamailio Redundancy Models

2015-12-08 Thread Gholamreza Sabery
I created a repository that consists of a set of Ansible playbooks that can automatically deploy an Active-Passive Kamailio cluster with a cluster of RTPProxy servers. These playbooks may help you in automatic deployment of your system. They are also a good starting point for seeing how can you cre

Re: [SR-Users] Correct start up of RTPProxy and Kamailio

2015-11-26 Thread Gholamreza Sabery
I think it is better to start up RTPProxy first and then Kamailio (because after startup Kamailio will try to connect to RTPProxy). A good example for how things should be, can be found at the following github repository which contains Ansible scripts for automatically installing and configuring an

Re: [SR-Users] Kamailio/RTPProxy incorrect port 0

2015-11-24 Thread Gholamreza Sabery
If your system is under heavy loads you can use multiple RTPProxy servers to balance the load between them. You can do this using rtpproxy_sock parameter or read RTPProxy's information from a database. Here I created a GIT repository which you can use to auto-deploy such a configuration: https://g

Re: [SR-Users] Active-Passive Auto deployment of Kamailio

2015-11-11 Thread Gholamreza Sabery
t of it and published on kamailio.org: > > * > http://www.kamailio.org/w/2015/11/kamailio-ha-with-ansible-corosync-and-pacemaker/ > > Cheers, > Daniel > > On 10/11/15 19:48, Gholamreza Sabery wrote: > > Hello. Recently I started a very simple open source project for aut

[SR-Users] Active-Passive Auto deployment of Kamailio

2015-11-10 Thread Gholamreza Sabery
Hello. Recently I started a very simple open source project for auto deploying an Active-Passive Kamailio cluster using Corosync and Pacemaker. For auto deployment I used Ansible. I thought it can be useful for some users. Link of project's repository: https://github.com/ghrst/Kamailio-HA