From me@nevian.org Tue Jan 22 16:03:48 2019 From: "Serge S. Yuriev" To: sr-users@lists.kamailio.org Subject: Re: [SR-Users] MWI notification through pua.publish Date: Tue, 22 Jan 2019 18:03:37 +0300 Message-ID: <51a2fdf7-c6de-c8a1-a778-4808ec9bec3d@nevian.org> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1337872497==" --===============1337872497== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi id is not inside params but must to be at top-level. You have to read JSONRPC specs %) https://www.jsonrpc.org/specification On 22/01/2019 13:47, =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 wrote: > Hello Henning, >=20 > Thank you for your message. I tried setting *id*=C2=A0too but got same resu= lt. >=20 > /# curl -H "Content-Type: application/json" -X POST -d '{"jsonrpc": > "2.0", "method": "pua.publish", "params": {"presentity_uri": > "sip:h(a)test.tutpro.com ", "expires": > "600", "event package": "message-summary", "content type": > "application/simple-message-summary", "id": > "NmU0MjI0NWM4ZjI3MWI3NTNlMTJhOWNlZWJlMWE0Yzg.", "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/ > /{/ > /=C2=A0 =C2=A0 =C2=A0 =C2=A0 "jsonrpc":=C2=A0 =C2=A0 =C2=A0 "2.0",/ > /=C2=A0 =C2=A0 =C2=A0 =C2=A0 "error":=C2=A0 =C2=A0 =C2=A0 =C2=A0 {/ > /=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "code": 500,/ > /=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "message":=C2= =A0 =C2=A0 =C2=A0 "Internal error: failed to create > context"/ > /=C2=A0 =C2=A0 =C2=A0 =C2=A0 }/ > /}/ >=20 >=20 >=20 > /Jan 22 12:40:54 test kamailio: 16(26145) DEBUG: