From hw@kamailio.org Mon Jan 21 22:16:34 2019 From: Henning Westerholt To: sr-users@lists.kamailio.org Subject: Re: [SR-Users] MWI notification through pua.publish Date: Mon, 21 Jan 2019 22:16:31 +0100 Message-ID: <2796980.A8IzDhDs9M@linux-rdlu> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0646479459==" --===============0646479459== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Am Montag, 21. Januar 2019, 19:10:11 CET schrieb =D0=92=D0=BE=D0=BB=D0=BE=D0= =B4=D0=B8=D0=BC=D0=B8=D1=80 =D0=86=D0=B2=D0=B0=D0=BD=D0=B5=D1=86=D1=8C: > Are you able to generate PUBLISH message with jsonrpcs? I can only do it > with xmlrpc. Kamailio version is 5.2.1. >=20 > When I use jsonrpc: Hello, not looked that deep into it, but have you tried to set an id (as reported=20 from this error message? Jan 21 19:37:58 test kamailio: 13(25583) ERROR: jsonrpcs [jsonrpcs_mod.c: 1010]: jsonrpc_delayed_ctx_new(): id attribute is missing Best regards, Henning =20 > *# 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": ".", "ETag": ".", "outbound > proxy": "sip:127.0.0.1:5060;transport=3Dudp", "extra_headers": "P-Flags: 0", > "body": "."}}' http://172.16.30.151:5060/JSON_RPC > * >=20 > I get: >=20 > *{* > * "jsonrpc": "2.0",* > * "error": {* > * "code": 500,* > * "message": "Internal error: failed to create context"* > * }* >=20 >=20 > Debug output: >=20 > *Jan 21 19:37:58 test kamailio: 13(25583) DEBUG: