Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.4.1

Request #10397 Addition: query_sm / query_sm_resp support
Submitted: 2007-03-16 01:44 UTC
From: tiemen Assigned:
Status: Open Package: Net_SMPP_Client (version 0.3.2)
PHP Version: Irrelevant OS: Any
Roadmaps: (Not assigned)    
Subscription  


 [2007-03-16 01:44 UTC] tiemen (Tiemen Meerman)
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' => $id, 'source_addr_ton' => $source_addr_ton, 'source_addr' => $source_addr, 'source_addr_npi' => $source_addr_npi )); $smsc->sendPDU($query_sm); $resp = $smsc->readPDU(); printf( "Message status:\n". "ID: %s\n". "Date: %s\n". "Status: %s\n". "Error: %s\n". $resp->message_id, $resp->final_date, $resp->message_status, $resp->error_code, );

Comments

 [2011-10-28 02:26 UTC] dzin (Alex Alex)
Trying download patch. Have error :( The requested URL /Net_SMPP_Client_query_sm_patch.tar.gz was not found on this server.