it works, thanks so much. Your explanation was very clear and I did easily.
Original Message:
Sent: 02-20-2024 14:41
From: Vaun McCarthy
Subject: Working with incoming SIP Headers from outside
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
Original Message:
Sent: 02-15-2024 11:36
From: Sergio Serrano
Subject: Working with incoming SIP Headers from outside
Hi All again,
I'm working with SIP Headers in incomnig call from external application and I create this flow
I want to get UserCode in a SIP Header, in this case X-Usercode. I use "Get SIP headers" to get this headers and after that I want to PLay the user Code to the caller, but I can play only the User Code. It's mean. I use this:
But I always listen Your User code is: "X-Usercode 111111"
Are there any way to reproduce only the code 111111. I just try another nodes to extract de code but I don't have success.
Any can help me with this?
Best regards,
#Integrations
#SIP/VolP
#Telephony
------------------------------
Sergio Serrano
Other
Verbio Technologies SL
------------------------------