set_feature_block

A set_feature_block request allows the user to add a new entry to the blocklist of incoming phone numbers currently blocked by the system. The information returned using a get_feature_blocklist method request can be used to help with a set_feature_block request.


Parameter
Purpose
username The user's login name
password The user's login password
id the id number of an entry on the blocklist (use "0" if this is a new entry)
snumber caller number (source number) to be blocked
description comment to be associated with this blocklist (optional)



Sample Request
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:TelebroadWebServices">
   <soapenv:Header/>
   <soapenv:Body>
      <urn:set_feature_blockRequest soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
         <username xsi:type="xsd:string">xxxxxxxxxx</username>
         <password xsi:type="xsd:string">xxxxxxxxxxx</password>
         <id xsi:type="xsd:int">003</id>
         <snumber xsi:type="xsd:string">xxxxxxxxxx</snumber>
         <description xsi:type="xsd:string">xxxxxxxxxx</description>
 </urn:set_feature_blockRequest>
   </soapenv:Body>
</soapenv:Envelope>



Sample Response

<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="urn:TelebroadWebServices">
   <SOAP-ENV:Body>
      <ns1:set_feature_blockResponse xmlns:ns1="urn:TelebroadWebServices">
         <return xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:sms_item[4]">
            <item xsi:type="tns:sms_item">
               <blocklist_item[] xsi:type="xsd:int">xxxxxxxxxxx</blocklist_item[]>
            </item>
         </return>
      </ns1:set_feature_blockResponse>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>


Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.