File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1- const VoiceResponse = require ( ' twilio' ) . twiml . VoiceResponse ;
1+ const VoiceResponse = require ( " twilio" ) . twiml . VoiceResponse ;
22
33const response = new VoiceResponse ( ) ;
44const dial = response . dial ( {
5- referUrl : ' https://example.com/handler'
5+ referUrl : " https://example.com/handler" ,
66} ) ;
7- dial . sip ( 'sip:AgentA@xyz.sip.us1.twilio.com?User-to-User=123456789%3Bencoding%3Dhex&X-Name=Agent%2C+A' ) ;
7+ dial . sip (
8+ "sip:AgentA@xyz.sip.us1.twilio.com?User-to-User=123456789%3Bencoding%3Dhex&X-Name=Agent%2C+A"
9+ ) ;
810
911console . log ( response . toString ( ) ) ;
Original file line number Diff line number Diff line change 11{
2- "title" : " SIP Inbound to Twilio using referUrl" ,
2+ "title" : " SIP REFER Inbound to Twilio using referUrl" ,
33 "type" : " server"
44 }
55
You can’t perform that action at this time.
0 commit comments