Skip to content

Commit 684ebe0

Browse files
committed
EDGE-630 Format the string to send to voice
1 parent 6646232 commit 684ebe0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/WebRtc/Utils/WebRtcTransfer.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ public static function generateBxml($deviceToken, $voiceCallId, $sipUri = "sip:s
1515
}
1616

1717
public static function generateTransferBxmlVerb($deviceToken, $voiceCallId, $sipUri = "sip:sipx.webrtc.bandwidth.com:5060") {
18-
return '<Transfer><SipUri uui="' . $voiceCallId . ';encoding=base64' . $deviceToken . ';encoding=jwt">' . $sipUri . '</SipUri></Transfer>';
18+
$formattedCallId = substr(str_replace("-", "", $voiceCallId), 1);
19+
return '<Transfer><SipUri uui="' . $formattedCallId . ';encoding=base64' . $deviceToken . ';encoding=jwt">' . $sipUri . '</SipUri></Transfer>';
1920
}
2021
}

0 commit comments

Comments
 (0)