From volodyaivanets@gmail.com Tue Jan 22 17:58:22 2019 From: =?utf-8?b?0JLQvtC70L7QtNC40LzQuNGAINCG0LLQsNC90LXRhtGM?= To: sr-users@lists.kamailio.org Subject: Re: [SR-Users] MWI notification through pua.publish Date: Tue, 22 Jan 2019 18:58:00 +0200 Message-ID: In-Reply-To: <51a2fdf7-c6de-c8a1-a778-4808ec9bec3d@nevian.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1712618729==" --===============1712618729== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello Serge, Thank you for clarifying this for me. But there is different issue when I change format. It appears that Kamailio indeed expects *body* under parameters https://www.kamailio.org/docs/modules/5.2.x/modules/pua_rpc.html#pua_rpc.r.pu= a.publish . I run: *# curl -H "Content-Type: application/json" -X POST -d '{"jsonrpc": "2.0", "method": "pua.publish", "params": {"presentity_uri": "sip:jh(a)test.tutpro.com ", "expires": "600", "event package": "message-summary", "content type": "application/simple-message-summary", "id": "4ce8c647a7b947c(a)172.16.30.151 <4ce8c647a7b947c(a)172.16.30.151>", "ETag": ".", "outbound proxy": "sip:127.0.0.1:5060;transport=3Dudp", "extra_headers": "P-Flags: 0"}, "body": 1}' http://172.16.30.151:5060/JSON_RPC * Result: *{* * "jsonrpc": "2.0",* * "error": {* * "code": 400,* * "message": "Body is missing"* * }* *}* Debug: *Jan 22 18:41:36 test kamailio: 14(27146) DEBUG: