Skip to content

Commit 6fbcf44

Browse files
authored
Update SipPeerTelephoneNumber to enable/disabe SMS (#70)
Enable SMS on a TN is ignored due to missing MessageSettings attribute in SipPeerTelephoneNumber. The class defined in simpleModels/SipPeerTelephoneNumber.php is missing the MessageSettings attribute, so when attempting to set $data["MessagingSettings"]["SmsEnabled"]= "true", this is ignored. Adding the field and type to the SipPeerTelephoneNumber class allows for enabling/disabling SMS.
1 parent a990bcb commit 6fbcf44

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/simpleModels/SipPeerTelephoneNumber.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ class SipPeerTelephoneNumber {
1010
"CallForward" => array("type" => "string"),
1111
"NumberFormat" => array("type" => "string"),
1212
"RPIDFormat" => array("type" => "string"),
13-
"RewriteUser" => array("type" => "string")
13+
"RewriteUser" => array("type" => "string"),
14+
"MessagingSettings" => array("type" => "\Iris\MessageSettings")
1415
);
1516

1617
public function __construct($data) {

0 commit comments

Comments
 (0)