Hi all,
If you are blogging about open source and SIP, I'll be happy to
syndicate it on http://planet.sip5060.net - this is good for everybody
doing open source SIP, because it helps things go up in Google and it
makes it easy for people to follow the whole community in one place.
All syndication links back to your blog
Please just send me an email with the config for me to cut and paste,
the RSS feed URL in brackets and then the name to appear next to your
blogs, here are some examples:
[http://danielpocock.com/rss.xml]
name = Daniel Pocock
[http://www.kamailio.org/w/feed/]
name = Kamailio
I already added a few people, they are listed at the bottom of the
planet page.
If only some of your blogs are about SIP, please consider tagging the
SIP blogs and giving me a feed URL for the tag.
Regards,
Daniel
Hey Guys,
I have been playing with jsonrpc-s module and it appears that for some reason it does not properly encapsulate replies containing more than one item.
Sample return via kamcmd:
```
root@iPBXDev1:~# kamcmd -s tcp:127.0.0.1:2046 uac.reg_dump
{
l_uuid: rsua2
l_username: rsua2
l_domain: 172.16.254.101
r_username: cust_sua2
r_domain: 172.16.254.102
realm:
auth_username: cust_sua2
auth_password: check123
auth_proxy: sip:172.16.254.102
expires: 3600
flags: 12
diff_expires: 3558
timer_expires: 1444499546
}
{
l_uuid: rsua1
l_username: rsua1
l_domain: 172.16.254.101
r_username: cust_sua1
r_domain: 172.16.254.102
realm:
auth_username: cust_sua1
auth_password: check123
auth_proxy: sip:172.16.254.102
expires: 3600
flags: 4
diff_expires: 3558
timer_expires: 1444499546
}
```
Sample return via jsonrpc:
```
T 2015/10/10 18:49:49.250401 172.16.254.102:35371 -> 172.16.254.101:5090 [AP]
POST /jsonrpc HTTP/1.1.
Host: 172.16.254.101:5090.
User-Agent: Go-http-client/1.1.
Content-Length: 60.
Content-Type: application/json.
Accept-Encoding: gzip.
.
{"jsonrpc":"2.0","method":"uac.reg_dump","params":[],"id":0}
##
T 2015/10/10 18:49:49.251097 172.16.254.101:5090 -> 172.16.254.102:35371 [AP]
HTTP/1.1 200 OK.
Sia: SIP/2.0/TCP 172.16.254.102:35371.
Content-Type: application/json.
Server: Sipean-RP 4.3.2.
Content-Length: 325.
.
{"jsonrpc":"2.0","result":{"l_uuid":"rsua1","l_username":"rsua1","l_domain":"172.16.254.101","r_username":"cust_sua1","r_domain":"172.16.254.102","realm":"","auth_username":"cust_sua1","auth_password":"check123","auth_proxy":"sip:172.16.254.102","expires":3600,"flags":0,"diff_expires":217,"timer_expires":1444496006},"id":0}
```
It appears that in second case there is only one item returned (so items overwrite each other).
DanB
---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/368