<?xml version="1.0"?>
<?xml-stylesheet
href="http://www.w3.org/2000/08/w3c-synd/style.css" type="text/css"
?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel rdf:about="http://pear.php.net/bugs/search.php">
    <title>PEAR Bug Search Results</title>
    <link>http://pear.php.net/bugs/search.php?cmd=display&amp;package_name%5B0%5D=Net_SMPP_Client</link>
    <description>Search Results</description>
    <dc:language>en-us</dc:language>
    <dc:creator>pear-webmaster@lists.php.net</dc:creator>
    <dc:publisher>pear-webmaster@lists.php.net</dc:publisher>
    <admin:generatorAgent rdf:resource="http://pear.php.net/bugs"/>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
    <items>
     <rdf:Seq>
      <rdf:li rdf:resource="http://pear.php.net/bug/10397" />

     </rdf:Seq>
    </items>
  </channel>

  <image rdf:about="http://pear.php.net/gifs/pearsmall.gif">
    <title>PEAR Bugs</title>
    <url>http://pear.php.net/gifs/pearsmall.gif</url>
    <link>http://pear.php.net/bugs</link>
  </image>

    <item rdf:about="http://pear.php.net/bug/10397">
      <title>Net_SMPP_Client: Feature/Change Request 10397 [Open] Addition: query_sm / query_sm_resp support</title>
      <link>http://pear.php.net/bugs/10397</link>
      <content:encoded><![CDATA[<pre>Net_SMPP_Client Feature/Change Request
Reported by tiemen
2007-03-16T01:44:14+00:00
PHP: Irrelevant OS: Any Package Version: 0.3.2

Description:
------------
Since there is no support for the query_sm and query_sm_resp PDUs (providing message tracking of individual SMs) I have added the functionality.

The patch consists of two new files in the Command directory:

* query_sm.php
* query_sm_resp.php

and a small change to Client.php to fix permitted states for the query_sm PDU.

A tarball containing the two class files and the patch can be downloaded from:
http://www.tiemen.org/Net_SMPP_Client_query_sm_patch.tar.gz

TODO: 
I haven't checked whether the status codes have corresponding constants defined in Client.php or Command.php so they might need to be added.
For an overview of the status codes see: http://www.activexperts.com/activsms/sms/smppdeliveryreports/




Test script:
---------------
Using the query_sm PDU would look roughly like the following:

        $query_sm = Net_SMPP::PDU('query_sm', array(
                'message_id' =&gt; $id,
                'source_addr_ton' =&gt; $source_addr_ton,
                'source_addr' =&gt; $source_addr,
                'source_addr_npi' =&gt; $source_addr_npi
        ));
        $smsc-&gt;sendPDU($query_sm);
        $resp = $smsc-&gt;readPDU();
        printf(
                &quot;Message status:\n&quot;.
                &quot;ID:            %s\n&quot;.
                &quot;Date:          %s\n&quot;.
                &quot;Status:        %s\n&quot;.
                &quot;Error:         %s\n&quot;.
                $resp-&gt;message_id,
                $resp-&gt;final_date,
                $resp-&gt;message_status,
                $resp-&gt;error_code,
        );</pre>]]></content:encoded>
      <description><![CDATA[<pre>Net_SMPP_Client Feature/Change Request
Reported by tiemen
2007-03-16T01:44:14+00:00
PHP: Irrelevant OS: Any Package Version: 0.3.2

Description:
------------
Since there is no support for the query_sm and query_sm_resp PDUs (providing message tracking of individual SMs) I have added the functionality.

The patch consists of two new files in the Command directory:

* query_sm.php
* query_sm_resp.php

and a small change to Client.php to fix permitted states for the query_sm PDU.

A tarball containing the two class files and the patch can be downloaded from:
http://www.tiemen.org/Net_SMPP_Client_query_sm_patch.tar.gz

TODO: 
I haven't checked whether the status codes have corresponding constants defined in Client.php or Command.php so they might need to be added.
For an overview of the status codes see: http://www.activexperts.com/activsms/sms/smppdeliveryreports/




Test script:
---------------
Using the query_sm PDU would look roughly like the following:

        $query_sm = Net_SMPP::PDU('query_sm', array(
                'message_id' =&gt; $id,
                'source_addr_ton' =&gt; $source_addr_ton,
                'source_addr' =&gt; $source_addr,
                'source_addr_npi' =&gt; $source_addr_npi
        ));
        $smsc-&gt;sendPDU($query_sm);
        $resp = $smsc-&gt;readPDU();
        printf(
                &quot;Message status:\n&quot;.
                &quot;ID:            %s\n&quot;.
                &quot;Date:          %s\n&quot;.
                &quot;Status:        %s\n&quot;.
                &quot;Error:         %s\n&quot;.
                $resp-&gt;message_id,
                $resp-&gt;final_date,
                $resp-&gt;message_status,
                $resp-&gt;error_code,
        );</pre>]]></description>
      <dc:date>2007-03-16T01:44:14+00:00</dc:date>
      <dc:creator>tiemen &amp;#x64;&amp;#111;&amp;#x74; meerman &amp;#x61;&amp;#116; gmail &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>Net_SMPP_Client Feature/Change Request</dc:subject>
    </item>
</rdf:RDF>
