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 ;
2
2
3
3
const response = new VoiceResponse ( ) ;
4
4
const dial = response . dial ( {
5
- referUrl : ' https://example.com/handler'
5
+ referUrl : " https://example.com/handler" ,
6
6
} ) ;
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
+ ) ;
8
10
9
11
console . log ( response . toString ( ) ) ;
Original file line number Diff line number Diff line change 1
1
{
2
- "title" : " SIP Inbound to Twilio using referUrl" ,
2
+ "title" : " SIP REFER Inbound to Twilio using referUrl" ,
3
3
"type" : " server"
4
4
}
5
5
You can’t perform that action at this time.
0 commit comments