Digital Developer Conference: a FREE half-day online conference focused on AI & Cloud – North America: Nov 2 – India: Nov 9 – Europe: Nov 14 – Asia Nov 23 Register now

Close outline
  • United States
IBM?
  • Site map
IBM?
  • Marketplace

  • Close
    Search
  • Sign in
    • Sign in
    • Register
  • IBM Navigation
IBM Developer Answers
  • Spaces
    • Blockchain
    • IBM Cloud platform
    • Internet of Things
    • Predictive Analytics
    • Watson
    • See all spaces
  • Tags
  • Users
  • Badges
  • FAQ
  • Help
Close

Name

Community

  • Learn
  • Develop
  • Connect

Discover IBM

  • ConnectMarketplace
  • Products
  • Services
  • Industries
  • Careers
  • Partners
  • Support
10.190.13.195

Refine your search by using the following advanced search options.

Criteria Usage
Questions with keyword1 or keyword2 keyword1 keyword2
Questions with a mandatory word, e.g. keyword2 keyword1 +keyword2
Questions excluding a word, e.g. keyword2 keyword1 -keyword2
Questions with keyword(s) and a specific tag keyword1 [tag1]
Questions with keyword(s) and either of two or more specific tags keyword1 [tag1] [tag2]
To search for all posts by a user or all posts with a specific tag, start typing and choose from the suggestion list. Do not use a plus or minus sign with a tag, e.g., +[tag1].
  • Ask a question

Call forwarding through Watson Assistant using Twilio terminating SIP and JSON

31000107WA gravatar image
Question by brians7772  (30) | May 13, 2018 at 02:10 AM ibm-cloudwatson-assistantvoicegatewayvoice-agent

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?

People who like this

  0
Comment
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster

1 reply

  • Sort: 
0600015YGA gravatar image
Accepted answer

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.

Comment

People who like this

  0   Show 2   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
31000107WA gravatar image brians7772 (30)   May 14, 2018 at 11:58 AM 0
Share

Perfect all good now and the transfer was successful.

0600015YGA gravatar image bpulito (880)   May 14, 2018 at 02:33 PM 0
Share

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

Follow this question

142 people are following this question.

Answers

Answers & comments

Related questions

getting information from SIP invite using headers 15 Answers

SOE for voice gateway using the node-red starter kit 1 Answer

Trigger call with voice agent and customize the dialog by setting context variables 2 Answers

How can I use tls when sip using vgwActTransfer? 2 Answers

Voice Agent PHP SOE problem 1 Answer

  • Contact
  • Privacy
  • IBM Developer Terms of use
  • Accessibility
  • Report Abuse
  • Cookie Preferences

Powered by AnswerHub

Authentication check. Please ignore.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • API Connect
  • Analytic Hybrid Cloud Core
  • Application Performance Management
  • Appsecdev
  • BPM
  • Blockchain
  • Business Transaction Intelligence
  • CAPI
  • CAPI SNAP
  • CICS
  • Cloud Analytics
  • Cloud Automation
  • Cloud Object Storage
  • Cloud marketplace
  • Collaboration
  • Content Services (ECM)
  • Continuous Testing
  • Courses
  • Customer Experience Analytics
  • DB2 LUW
  • Data and AI
  • DataPower
  • Decision Optimization
  • DevOps Build
  • DevOps Services
  • Developers IBM MX
  • Digital Commerce
  • Digital Experience
  • Finance
  • Global Entrepreneur Program
  • Hadoop
  • Hybrid Cloud Core
  • Hyper Protect
  • IBM Cloud platform
  • IBM Design
  • IBM Forms Experience Builder
  • IBM Maximo Developer
  • IBM StoredIQ
  • IBM StoredIQ-Cartridges
  • IIDR
  • ITOA
  • InformationServer
  • Integration Bus
  • Internet of Things
  • Kenexa
  • Linux on Power
  • LinuxONE
  • MDM
  • Mainframe
  • Messaging
  • Node.js
  • ODM
  • Open
  • PartnerWorld Developer Support
  • PowerAI
  • PowerVC
  • Predictive Analytics
  • Product Insights
  • PureData for Analytics
  • Push
  • QRadar App Development
  • Run Book Automation
  • Search Insights
  • Security Core
  • Storage
  • Storage Core
  • Streamsdev
  • Supply Chain Business Network
  • Supply Chain Insights
  • Swift
  • UBX Capture
  • Universal Behavior Exchange
  • UrbanCode
  • WASdev
  • WSRR
  • Watson
  • Watson Campaign Automation
  • Watson Content Hub
  • Watson Marketing Insights
  • dW Answers Help
  • dW Premium
  • developerWorks Sandbox
  • developerWorks Team
  • Watson Health
  • More
  • Tags
  • Questions
  • Users
  • Badges