Hi Sergio
As discussed separately offline, try this in your play audio:
ToString(GetJsonObjectProperty(ToJson(Task.UserCode), "X-UserCode"))
There's probably another way but the "issue" here is that the response from the Get SIP Headers goes into a collection. So we first need to turn that into a "regular" JSON format (ToJson). If X-UserCode has other items in it's array you'll need to add the index position there like:
ToString(GetJsonObjectProperty(ToJson(Task.UserCode), "X-UserCode")[0])
------------------------------
Vaun McCarthy
------------------------------
Original Message:
Sent: 02-19-2024 03:24
From: Sergio Serrano
Subject: Working with incoming SIP Headers from outside
Thanks Vaun,
but this didn't work.
Any other Idea. I suppose it must be any way to process this, but I can found in documentation resources or in the community threads.
Best Regards,
------------------------------
Sergio Serrano
Other
Verbio Technologies SL
------------------------------
Original Message:
Sent: 02-15-2024 18:28
From: Vaun McCarthy
Subject: Working with incoming SIP Headers from outside
You maybe able to do something like:
ToString(GetJsonObjectProperty(Task.Usercode, "X-Usercode"))
------------------------------
Vaun McCarthy