[SR-Users] Missing pipelimit values in data returned by JSONRPC-S

Brooks Bridges bbridges at o1.com
Mon Mar 21 16:42:16 CET 2016


Ergh... never mind, stupid typo on my part.  It appears to be working.

[root at dev-server ~]# curl -s --header 'Content-Type: application/json' --data-binary '{"jsonrpc": "2.0", "method": "pl.stats"}' http://1.2.3.4:5060/jsonrpc
{"jsonrpc":"2.0","result":["PIPE: id=user_1 load=0 counter=0","PIPE: id=user_2 load=0 counter=0"]}

Thanks!

Brooks Bridges | Sr. Voice Services Engineer
O1 Communications
5190 Golden Foothill Pkwy 
El Dorado Hills, CA 95762
office: 916.235.2097 | main: 888.444.1111, Option 2
email: bbridges at o1.com | web: www.o1.com


-----Original Message-----
From: sr-users [mailto:sr-users-bounces at lists.sip-router.org] On Behalf Of Brooks Bridges
Sent: Monday, March 21, 2016 7:59 AM
To: Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] Missing pipelimit values in data returned by JSONRPC-S

Seems to have broken something.  The CLI is returning as expected, but jsonrpc-s is throwing an error now.

[root at dev-server pipelimit]# kamcmd pl.stats            
PIPE: id=user_1 load=0 counter=0
PIPE: id=user_2 load=0 counter=0

[root at dev-server pipelimit]# curl -s --header 'Content-Type: application/json' --data-binary '{"jsonrpc": "2.0", "method": "pl.stats"}' http://1.2.3.4:5060/jsonrpc {"jsonrpc":"2.0","error":{"code":-32000,"message":"Execution Error"}}


Brooks Bridges | Sr. Voice Services Engineer
O1 Communications
5190 Golden Foothill Pkwy
El Dorado Hills, CA 95762
office: 916.235.2097 | main: 888.444.1111, Option 2
email: bbridges at o1.com | web: www.o1.com

-----Original Message-----
From: sr-users [mailto:sr-users-bounces at lists.sip-router.org] On Behalf Of Brooks Bridges
Sent: Saturday, March 19, 2016 11:21 AM
To: miconda at gmail.com; Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] Missing pipelimit values in data returned by JSONRPC-S

Thanks Daniel, I'll give this patch a try as soon as I'm back in the office Monday.  I suspect it will sort out the issue as expected.

Brooks Bridges | Sr. Voice Services Engineer
O1 Communications
5190 Golden Foothill Pkwy
El Dorado Hills, CA 95762
office: 916.235.2097 | main: 888.444.1111, Option 2
email: bbridges at o1.com | web: www.o1.com

________________________________________
From: sr-users [sr-users-bounces at lists.sip-router.org] on behalf of Daniel-Constantin Mierla [miconda at gmail.com]
Sent: Thursday, March 17, 2016 2:49 PM
To: Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] Missing pipelimit values in data returned by    JSONRPC-S

I pushed a patch in master branch for now -- commit id 1c22f395df81dab09288ff945e97b0040894daaf

Can anyone test and see if solves it? Then, if all ok, I will backport.

Cheers,
Daniel

On 17/03/16 22:14, Alex Balashov wrote:
> Indeed, I can confirm that this happens even with two entries, running
> 4.3:9506574:
>
> [root at allegro-4 ~]# kamcmd -s /tmp/kamailio_ctl pl.stats
> PIPE: id=bg350_ingress load=0 counter=0
> PIPE: id=bg208_ingress load=0 counter=0
>
> [root at allegro-4 kamailio]# curl --digest --user:pass 
> http://10.150.20.6:5060/csrp_rpc/ --data '{"jsonrpc": "2.0", 
> "method":"pl.stats", "result": "0xd"}'; echo {
>     "jsonrpc":    "2.0",
>     "result":    "PIPE: id=bg208_ingress load=0 counter=0"
> }
>
> -- Alex
>

--
Daniel-Constantin Mierla
http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio World Conference, Berlin, May 18-20, 2016 - http://www.kamailioworld.com


_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users at lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users at lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users at lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users



More information about the sr-users mailing list