Hey all, I'm attempting to use the Json editior to transfer a call to the SIP trunk I've created. I'm using voice agent and have already successfully tested my conversation with the originating SIP. I just want to add the mechanism which allows someone the option to talk to a live person. I have set up my terminating SIP on Twilio. Here is the JSON for the dialog node I'm referring to below.
{
"output": {
"text": {
"values": [
"One moment please"
],
"selection_policy": "sequential"
},
"vgwAction": {
"command": "vgwActTransfer",
"parameters": {
"transferTarget": "<sip:phone-number/@termination-uri>"
}
}
}
}
This is the error I'm receiving:
Error when updating output with output of dialog node id [node_3_1526190491412]. Node output is [{"text":{"values":["One moment please"],"selection_policy":"sequential"},"vgwAction":{"command":"vgwActTransfer","parameters":{"transferTarget":""}}}] SpEL evaluation error: Expression [ @xxxx.pstn.us1.twilio.com ] converted to [ entities['xxxx']?.metadata?.pstn.us1.twilio.com ] at position 34: EL1007E: Property or field 'us1' cannot be found on null
This is the template code given that I'm going off of:
{ "output": { "text": { "values": [ "Please hold on while I connect you with a live agent." ], "selection_policy": "sequential" }, "vgwAction": { "command": "vgwActTransfer", "parameters": { "transferTarget": "sip:phone-number/@termination-uri" } } } }
Any ideas for what I need to change?
Answer by bpulito (880) | May 14, 2018 at 08:39 AM
The transfer target should include two back slashes to escape the @ sign like this \\@? Here is an example of a working transfer target from one of my demos:
{ "output": { "text": { "values": [ "Please hold on while I connect you with a live agent." ], "selection_policy": "sequential" }, "vgwAction": { "command": "vgwActTransfer", "parameters": { "transferTarget": "sip:1xxxyyyzzzz\\@my-termination.pstn.us1.twilio.com" } } } }
It looks like our documentation here is wrong: https://console.bluemix.net/docs/services/voice-agent/call-transfer.html#call-transfer
I'll follow up with the doc team to get it straightened out.
Perfect all good now and the transfer was successful.
Doc link is now updated with the correct format here:
https://console.bluemix.net/docs/services/voice-agent/call-transfer.html#call-transfer
Thanks, -Brian
getting information from SIP invite using headers 15 Answers
SOE for voice gateway using the node-red starter kit 1 Answer
Retrieve intents from Watson Assistant turn events 2 Answers
Do IBM Voice agent require's SBC for transferring calls to asterisk server? 1 Answer
Trigger call with voice agent and customize the dialog by setting context variables 2 Answers