Skip to content

Commit 346921f

Browse files
author
Craig Dennis
authored
Merge pull request TwilioDevEd#864 from TwilioDevEd/update-dial
Updated and formatted referUrl
2 parents b6ed22a + 5dfcfd3 commit 346921f

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

twiml/voice/dial/dial-8/dial-8.3.x.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
const VoiceResponse = require('twilio').twiml.VoiceResponse;
1+
const VoiceResponse = require("twilio").twiml.VoiceResponse;
22

33
const response = new VoiceResponse();
44
const 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

911
console.log(response.toString());

twiml/voice/dial/dial-8/meta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"title": "SIP Inbound to Twilio using referUrl",
2+
"title": "SIP REFER Inbound to Twilio using referUrl",
33
"type": "server"
44
}
55

0 commit comments

Comments
 (0)