[sr-dev] [kamailio/kamailio] core: build reply of core.sockets_list as an array (#1187)

Federico Cabiddu notifications at github.com
Sat Jul 15 09:09:58 CEST 2017


I realized with more tests that my previous commit for core.sockets_list 38f514064a326f759e0e88adeffd03b32b35d6c0 is not working. The result is returned yes as an array but inside there is still the sockets list as an object (so with multiple "socket" keys). Digging more in kamailio json lib I understood that to be considered an array the rpc result must be enclosed in "[]". 
I was misled by a wrong test result, sorry for the noise. 
You can view, comment on, or merge this pull request online at:

  https://github.com/kamailio/kamailio/pull/1187

-- Commit Summary --

  * core: build reply of core.sockets_list as an array

-- File Changes --

    M src/core/core_cmd.c (4)

-- Patch Links --

https://github.com/kamailio/kamailio/pull/1187.patch
https://github.com/kamailio/kamailio/pull/1187.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/1187
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20170715/fb9d88da/attachment.html>


More information about the sr-dev mailing list