diff --git a/src/WebRtc/Utils/WebRtcTransfer.php b/src/WebRtc/Utils/WebRtcTransfer.php
index 86debd0..afe6229 100644
--- a/src/WebRtc/Utils/WebRtcTransfer.php
+++ b/src/WebRtc/Utils/WebRtcTransfer.php
@@ -11,6 +11,10 @@
class WebRtcTransfer {
public static function generateBxml($deviceToken, $sipUri = "sip:sipx.webrtc.bandwidth.com:5060") {
- return '' . $sipUri . '';
+ return '' . WebRtcTransfer::generateTransferBxmlVerb($deviceToken, $sipUri) . '';
+ }
+
+ public static function generateTransferBxmlVerb($deviceToken, $sipUri = "sip:sipx.webrtc.bandwidth.com:5060") {
+ return '' . $sipUri . '';
}
}
diff --git a/tests/WebRtcBxmlTest.php b/tests/WebRtcBxmlTest.php
new file mode 100644
index 0000000..f8cc7ad
--- /dev/null
+++ b/tests/WebRtcBxmlTest.php
@@ -0,0 +1,26 @@
+sip:sipx.webrtc.bandwidth.com:5060';
+ $actual = BandwidthLib\WebRtc\Utils\WebRtcTransfer::generateBxml('asdf');
+ $this->assertEquals($expected, $actual);
+ }
+
+ public function testGenerateTransferBxmlVerb() {
+ $expected = 'sip:sipx.webrtc.bandwidth.com:5060';
+ $actual = BandwidthLib\WebRtc\Utils\WebRtcTransfer::generateTransferBxmlVerb('asdf');
+ $this->assertEquals($expected, $actual);
+ }
+}