get_voicemail

A get_voicemail request will return data concerning voicemail messages currently on the system. You might make such a request to identify the name of a particular message you would like to retrieve.


Parameter Purpose
username The user's login name
password The user's login password
sms_line telephone line used for SMS sessions (??)
start Specified Unix Time starting point (or blank to get all messages)
direction The direction traveled by the messages (s). Possible values: "in" and "out". Blank signifies both directions



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:get_voicemailRequest soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
         <username xsi:type="xsd:string">usernamehere</username>
         <password xsi:type="xsd:string">passwordhere</password>
         <start xsi:type="xsd:int">123456789</start>
         <end xsi:type="xsd:int">123456789</end>
         <descending xsi:type="xsd:int">123456789</descending>
         <mailbox xsi:type="xsd:int">123456789</mailbox>
      </urn:get_voicemailRequest>
</soapenv:Body>



Sample Response - Sample includes data from three messages
<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:get_voicemailResponse xmlns:ns1="urn:TelebroadWebServices">
         <return xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:voicemail_item[3]">
            <item xsi:type="tns:voicemail_item">
               <time xsi:type="xsd:int">1386577156</time>
               <duration xsi:type="xsd:int">14</duration>
               <mailbox xsi:type="xsd:int"/>
               <caller xsi:type="xsd:string">Cell Phone NY</caller>
               <callerid xsi:type="xsd:string">13477822428</callerid>
               <name xsi:type="xsd:string">msg0002</name>
            </item>
            <item xsi:type="tns:voicemail_item">
               <time xsi:type="xsd:int">1386577087</time>
               <duration xsi:type="xsd:int">11</duration>
               <mailbox xsi:type="xsd:int"/>
               <caller xsi:type="xsd:string"/>
               <callerid xsi:type="xsd:string">"Private" &lt;Private></callerid>
               <name xsi:type="xsd:string">msg0001</name>
            </item>
            <item xsi:type="tns:voicemail_item">
               <time xsi:type="xsd:int">1386576077</time>
               <duration xsi:type="xsd:int">9</duration>
               <mailbox xsi:type="xsd:int"/>
               <caller xsi:type="xsd:string"/>
               <callerid xsi:type="xsd:string">"Private" &lt;Private></callerid>
               <name xsi:type="xsd:string">msg0000</name>
            </item>
         </return>
      </ns1:get_voicemailResponse>
   </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.