[SR-Users] Delay in 100 Trying response for INVITE when the load is 70 INVITE's per sec

2018-07-09 Thread vi...@advaitamtech.com

 
Hi All,
 
 
 
When we are using the kamailio to handle around 70 INVITE's per second, 
kamailio is sending 100 Trying with the delay of around 3-4sec for few INVITE's.
 
 
 
How can I reduce the delay in 100 Trying?
 
 
 
Also, I tried increasing the number of threads for SIP routing processes. This 
doesnt seem to help.
 
 
 
Also tried "modparam("tm", "auto_inv_100", 0)" . This is not working.
 
 
 
Please help.
 
 
 
Thank you,
 
Vivek.
 ___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] How to check 4XX/5XX response in general.

2017-10-24 Thread vi...@advaitamtech.com

This is working. Thanks you.
 
Regards,
Vivek
 
-Original Message-
From: "Sebastian Damm" <d...@sipgate.de>
Sent: Monday, 23 October, 2017 4:04pm
To: "Kamailio (SER) - Users Mailing List" <sr-users@lists.kamailio.org>
Subject: Re: [SR-Users] How to check 4XX/5XX response in general.



Hi,

you can use a regex match for that as well.

if ($rs =~ "^[45].*") {
 # do something
}

HTH
Sebastian

On Mon, Oct 23, 2017 at 11:34 AM, vi...@advaitamtech.com
<vi...@advaitamtech.com> wrote:
> Hi,
>
>
>
> Is there any way to catch all 4XX and 5XX SIP error codes rather then
> specifying individually ie. 404, 500, 400 etc in kamailio.
>
>
>
> Thanks,
>
> Vivek.
>
>
> ___
> 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___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] How to check 4XX/5XX response in general.

2017-10-23 Thread vi...@advaitamtech.com

Hi,
 
Is there any way to catch all 4XX and 5XX SIP error codes rather then 
specifying individually ie. 404, 500, 400 etc in kamailio.
 
Thanks,
Vivek.___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Replacing the From header user part.

2017-09-15 Thread vi...@advaitamtech.com

I got the solution for this. Should have used $fn.
 
Thanks,
Vivek
 
 
-Original Message-
From: "vi...@advaitamtech.com" <vi...@advaitamtech.com>
Sent: Thursday, 14 September, 2017 8:07pm
To: sr-users@lists.kamailio.org
Subject: Replacing the From header user part.



Hi All,
 
Am trying to replace the user part of From header with own user name in 
kamailio.cfg
 
I tried to assign directly,
 
Eg: $fU = "abcd"
 
Sometime when I receive From header as  ' "12345" <12345@1.1.1.1>;tag= '. 
In this case it works as ' "12345" <abcd@1.1.1.1>;tag= ' .
 
So i tried using replace_all() function. But this ended up adding extra 
characters(in my case "abcd") infront of content_type header. I dont know why.
Can someone please help me out in replacing the from header in this case?
 
 
Thanks,
Vivek___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] How to get the count of active calls handled in kamailio.

2017-06-23 Thread vi...@advaitamtech.com

Hi,
 
I would like to know how many active calls are handled in kamailio server at a 
given point of time(concurrent calls).
 
In the few older post it was mentioned to use "dialog" module for these 
statistics.
 
In dialog module , there is a function called "active_dialogs" , which solves 
my requirement. But it is not clear how to use it. Can anybody help me out in 
this?
 
Thanks,
Vivek.___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] JANSSON module not working for multiple JSON objects

2017-04-27 Thread vi...@advaitamtech.com

Thank you for the suggestion. It worked with array and i could parse 
successfully. 
 
Thanks,
Vivek.
 
-Original Message-
From: "Daniel-Constantin Mierla" <mico...@gmail.com>
Sent: Wednesday, 26 April, 2017 11:30am
To: "vi...@advaitamtech.com" <vi...@advaitamtech.com>
Cc: "Kamailio (SER) - Users Mailing List" <sr-users@lists.kamailio.org>
Subject: Re: [SR-Users] JANSSON module not working for multiple JSON objects



I haven't developed the module, will have to look at the code, but I would 
expect to work for the array object, given it relies on libjansson external 
library.
Maybe you can try 
with:$avp(result1)="{\"a\":[{\"origin\":\"125.16.231.74\",\"Dest\":\"725.76.731.77\"}]}";

 just to see if it works and there is no problem parsing that array, but the 
problem is having an array as root object.

 Cheers,
 Daniel



On 26.04.17 07:51, [ vi...@advaitamtech.com ]( mailto:vi...@advaitamtech.com ) 
wrote:
There are no error messages for the below test JSON object. Let me give you a 
clear picture,
 
$avp(result1)="{\"origin\":\"125.16.231.74\",\"Dest\":\"725.76.731.77\"}" --> 
Successfully parsed and result is recevied.
 
$avp(result1)="[{\"origin\":\"125.16.231.74\",\"Dest\":\"725.76.731.77\"}]"; 
--> No Error and no parsed result either.
 
$avp(result1)="{\"origin\":\"125.16.231.74\",\"Dest\":\"725.76.731.77\"},{\"origin\":\"225.26.231.24\",\"Dest\":\"225.26.231.27\"}";
 --> Results in error.
   ERROR: jansson [jansson_funcs.c:59]: janssonmod_get(): failed to parse:  
{"origin":"125.16.231.74","Dest":"725.76.731.77"},{"origin":"225.26.231.24","Dest":"225.26.231.27"}
 ERROR: jansson [jansson_funcs.c:61]: janssonmod_get(): json error at line 1: 
end of file expected near ','
$avp(result1)="[{\"origin\":\"125.16.231.74\",\"Dest\":\"725.76.731.77\"},{\"origin\":\"225.26.231.24\",\"Dest\":\"225.26.231.27\"}]"
 --> No error. But no result either. GIves result as zero.
 
I understand that with "[ ]" , its the right JSON object. But api doesnt give 
the parsed result.
 
Thanks,
Vivek.
 
-Original Message-
 From: "Daniel-Constantin Mierla" [ <mico...@gmail.com> ]( 
mailto:mico...@gmail.com )
 Sent: Tuesday, 25 April, 2017 7:47pm
 To: "Kamailio (SER) - Users Mailing List" [ <sr-users@lists.kamailio.org> ]( 
mailto:sr-users@lists.kamailio.org ), [ sr-us...@lists.sip-router.org ]( 
mailto:sr-us...@lists.sip-router.org )
 Subject: Re: [SR-Users] JANSSON module not working for multiple JSON objects



Hello,

On 25.04.17 15:57, [ vi...@advaitamtech.com ]( mailto:vi...@advaitamtech.com ) 
wrote:
Hi All,
 
Am using JANSSON module to parse the JSON object I receive.
 
I tried using JSON module of kamailio. Since its giving error in loading the 
module due to  error"libjson-c.so.3: cannot open shared object file: No such 
file or directory", I went ahead to use JANSSON module.
 
JANSSON module is parsing the single JSON object perfectly. But not parsing the 
multiple JSON objects.
 
JSON object am trying to parse:
$avp(result1)= 
"[{"origin":"125.16.231.74","Dest":"725.76.731.77"},{"origin":"225.26.231.24","Dest":"225.26.231.27"}]"
 
JANSSON API used: jansson_get("origin", "$avp(result1)", "$var(origin)");
 
Any suggestions will be really helpful.are there any error messages?

 Cheers,
 Daniel

-- Daniel-Constantin Mierla [ www.twitter.com/miconda ]( 
http://www.twitter.com/miconda ) -- [ www.linkedin.com/in/miconda ]( 
http://www.linkedin.com/in/miconda ) Kamailio Advanced Training - May 22-24 
(USA) - [ www.asipto.com ]( http://www.asipto.com ) Kamailio World Conference - 
May 8-10, 2017 - [ www.kamailioworld.com ]( http://www.kamailioworld.com )

-- Daniel-Constantin Mierla[ www.twitter.com/miconda ]( 
http://www.twitter.com/miconda ) -- [ www.linkedin.com/in/miconda ]( 
http://www.linkedin.com/in/miconda )Kamailio Advanced Training - May 22-24 
(USA) - [ www.asipto.com ]( http://www.asipto.com )Kamailio World Conference - 
May 8-10, 2017 - [ www.kamailioworld.com ]( http://www.kamailioworld.com )___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users