Hello,
On 5.6.4, i’m trying to perform mwi pua_json, but cannot get it working.
I have a doubt about my json and spent some time to make variations on json without success.
Does one of you played with it and can tell me if something is wrong about this json ? {
"Event-Package":"message-summary", "Event-Name":"update" "expires":3600, "From":sip:ccoca@dff.com, "To":sip:ccoca@dff.com, "Message-Account":sip:ccoca@dff.com, "Messages-Waiting":"yes", "MWI-Voice-Message":"2/8 (0/0)", "Messages-New":"2", "Messages-Saved":"8", "Messages-Urgent":"0", "Messages-Urgent-Saved":"0", "From-Realm":"dff.com", "From-User":"ccoca", "Call-ID":0_845806535@10.22.22.22mailto:0_845806535@10.22.22.22,
}
Regards, David
hmm, from a json pov, I'ld think the strings need to be enclosed with "", so the fields From/To/Message-Account/Call-id... ?
Op vr 21 jul 2023 om 11:34 schreef David VILLAUME david.villaume@sewan.fr:
Hello,
On 5.6.4, i’m trying to perform mwi pua_json, but cannot get it working.
I have a doubt about my json and spent some time to make variations on json without success.
Does one of you played with it and can tell me if something is wrong about this json ?
{
"Event-Package":"message-summary", "Event-Name":"update" "expires":3600, "From":sip:ccoca@dff.com, "To":sip:ccoca@dff.com, "Message-Account":sip:ccoca@dff.com, "Messages-Waiting":"yes", "MWI-Voice-Message":"2/8 (0/0)", "Messages-New":"2", "Messages-Saved":"8", "Messages-Urgent":"0", "Messages-Urgent-Saved":"0", "From-Realm":"dff.com", "From-User":"ccoca", "Call-ID":0_845806535@10.22.22.22,
}
Regards,
David
Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
The json you attached to the email had several mistakes, try using a json linting tool to validate the json. Here is valid json based on your email:
{ "Event-Package": "message-summary", "Event-Name": "update", "Expires": "3600", "From": "sip:ccoca@dff.com", "To": "sip:ccoca@dff.com", "Message-Account": "sip:ccoca@dff.com", "Messages-Waiting": "yes", "MWI-Voice-Message": "2/8 (0/0)", "Messages-New": "2", "Messages-Saved": "8", "Messages-Urgent": "0", "Messages-Urgent-Saved": "0", "From-Realm": "dff.com", "From-User": "ccoca", "Call-ID": "0_845806535@10.22.22.22" }
On Fri, Jul 21, 2023 at 5:34 AM David VILLAUME david.villaume@sewan.fr wrote:
Hello,
On 5.6.4, i’m trying to perform mwi pua_json, but cannot get it working.
I have a doubt about my json and spent some time to make variations on json without success.
Does one of you played with it and can tell me if something is wrong about this json ?
{
"Event-Package":"message-summary", "Event-Name":"update" "expires":3600, "From":sip:ccoca@dff.com, "To":sip:ccoca@dff.com, "Message-Account":sip:ccoca@dff.com, "Messages-Waiting":"yes", "MWI-Voice-Message":"2/8 (0/0)", "Messages-New":"2", "Messages-Saved":"8", "Messages-Urgent":"0", "Messages-Urgent-Saved":"0", "From-Realm":"dff.com", "From-User":"ccoca", "Call-ID":0_845806535@10.22.22.22,
}
Regards,
David
Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
Hi,
Thanks for your answer, and sorry for the validation error on the (my mail client decided some string should be mail address).
My problem is I cannot trigger Notify using pua_json_publish with this json, while I have notify with following SUBSCRIBE.
I’m not sure if my json contains all required fields and if I need to use URI or SIP URI, do you have any idea about it ? { "Event-Package": "message-summary", "Event-Name": "update", "Expires": "3600", "From": "sip:3pm@dff.com", "To": "sip:3pm@dff.com", "Message-Account": "sip:3pm@dff.com", "Messages-Waiting": "yes", "MWI-Voice-Message": "2/8 (0/0)", "Messages-New": "2", "Messages-Saved": "8", "Messages-Urgent": "0", "Messages-Urgent-Saved": "0", "From-Realm": "dff.com", "From-User": "3pm", "Call-ID": "0_733161359@10.22.22.22" }
SUBSCRIBE sip:Y.Y.65.189:5060;transport=udp SIP/2.0 Via: SIP/2.0/UDP X.X.21.202:5070;branch=z9hG4bKop0g4e101gbf13nt6tf0.1 Via: SIP/2.0/TCP 10.244.4.20:12440;received=65.39.65.250;branch=z9hG4bK739933165;rport=12440 From: "3 PM" sip:3pm@dff.com:5060;tag=733149947 To: sip:3pm@dff.com:5060;tag=9a38eaccb72b87fa4b0d10b94343f23d.185c11ef Call-ID: 0_733161359@10.244.4.20mailto:0_733161359@10.244.4.20 CSeq: 34 SUBSCRIBE Contact: sip:3pm@X.X.21.202:5070;gr=6v5t0jj7rmivcpvimtvumhv1vqgfbpjg40omdsbk6s4uvu3hu32c3v31ii2vt2j2vfgrgvag898983khqr70;transport=udp Accept: application/simple-message-summary Max-Forwards: 69 User-Agent: Yealink SIP-T57W 96.86.0.52 Expires: 30 Event: message-summary Content-Length: 0
[https://storage.letsignit.com/6009878cd5039f000742d6a1/generated/effects_bf9...]
David VILLAUME
Ingénieur Voix
Tel :
+33 156377321
david.villaume@sewan.fr
2 cité Paradis - 75010 PARIS
[https://storage.letsignit.com/6009878cd5039f000742d6a1/generated/effects_787...]https://cloud.letsignit.com/collect/bc/649d2ea2264803323682b26f?p=qPDZoXyimHNlOFVhafsRL9hMw8olSLI_rnD0rZQ4EncjTuiVSUqei4Qjzi2I-BN6o5I_h-uIAFtnlJNG2ostbcZgJoSeY6SRq4DADGvENbcmdLEBUwiQ0raYIXK6Jeov3pHi9IcGkZWb8ysQFBzOAA==
[https://storage.letsignit.com/6009878cd5039f000742d6a1/generated/effects_13b...]https://cloud.letsignit.com/collect/bc/649d2ea2264803323682b26f?p=qPDZoXyimHNlOFVhafsRL9hMw8olSLI_rnD0rZQ4EncjTuiVSUqei4Qjzi2I-BN6o5I_h-uIAFtnlJNG2ostbcZgJoSeY6SRq4DADGvENbcrCp3R8bPY3ukqcgnAE1QBFC_Ggxm_XfP9j9VrBfhxH960OqmpXWcxMCrkr5eOttRLRgrpYpr6coqsTtzDwfCE
[https://storage.letsignit.com/6009878cd5039f000742d6a1/generated/effects_246...]https://cloud.letsignit.com/collect/bc/649d2ea2264803323682b26f?p=qPDZoXyimHNlOFVhafsRL9hMw8olSLI_rnD0rZQ4EncjTuiVSUqei4Qjzi2I-BN6o5I_h-uIAFtnlJNG2ostbcZgJoSeY6SRq4DADGvENbeAPZYrnwSu4kJRUjyenYMhsW37e23HuNvbGHkOUG89i9FYkzv58POR31sHlWMy-4sUE05j1IyRmolZ0OhSj4j8
[https://storage.letsignit.com/6009878cd5039f000742d6a1/generated/effects_ea5...]https://cloud.letsignit.com/collect/b/649c2ffb0d10e31568f2b738?p=qPDZoXyimHNlOFVhafsRL9hMw8olSLI_rnD0rZQ4EncjTuiVSUqei4Qjzi2I-BN6o5I_h-uIAFtnlJNG2ostbeJrrvN5W3Kvejw-TmPGjeosZuC8yxQrIIPIbE9CwBipfyRCwvmTg2QZlAN9A96iB61qM15iN85zqfkx_heyxF6QGJneVuS40kWLh3aY8ekvPNMM0aDKEV4fhEqlV7gC1Q==
De : E. Schmidbauer eschmidbauer@gmail.com Envoyé : vendredi 21 juillet 2023 16:57 À : Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Objet : [SR-Users] Re: pua_json mwi minimal json
The json you attached to the email had several mistakes, try using a json linting tool to validate the json. Here is valid json based on your email:
{ "Event-Package": "message-summary", "Event-Name": "update", "Expires": "3600", "From": "sip:ccoca@dff.commailto:sip%3Accoca@dff.com", "To": "sip:ccoca@dff.commailto:sip%3Accoca@dff.com", "Message-Account": "sip:ccoca@dff.commailto:sip%3Accoca@dff.com", "Messages-Waiting": "yes", "MWI-Voice-Message": "2/8 (0/0)", "Messages-New": "2", "Messages-Saved": "8", "Messages-Urgent": "0", "Messages-Urgent-Saved": "0", "From-Realm": "dff.comhttp://dff.com", "From-User": "ccoca", "Call-ID": "0_845806535@10.22.22.22mailto:0_845806535@10.22.22.22" }
On Fri, Jul 21, 2023 at 5:34 AM David VILLAUME <david.villaume@sewan.frmailto:david.villaume@sewan.fr> wrote: Hello,
On 5.6.4, i’m trying to perform mwi pua_json, but cannot get it working.
I have a doubt about my json and spent some time to make variations on json without success.
Does one of you played with it and can tell me if something is wrong about this json ? {
"Event-Package":"message-summary", "Event-Name":"update" "expires":3600, "From":sip:ccoca@dff.com, "To":sip:ccoca@dff.com, "Message-Account":sip:ccoca@dff.com, "Messages-Waiting":"yes", "MWI-Voice-Message":"2/8 (0/0)", "Messages-New":"2", "Messages-Saved":"8", "Messages-Urgent":"0", "Messages-Urgent-Saved":"0", "From-Realm":"dff.comhttp://dff.com", "From-User":"ccoca", "Call-ID":0_845806535@10.22.22.22mailto:0_845806535@10.22.22.22,
}
Regards, David
__________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to sr-users-leave@lists.kamailio.orgmailto:sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: