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: