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.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

 

 

 

 

David VILLAUME

Ingénieur Voix

Tel :

 

+33 156377321

david.villaume@sewan.fr

2 cité Paradis - 75010 PARIS

www.sewan.fr

 

 

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.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: