summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Duedal <hd@onlinecity.dk>2011-03-25 22:56:02 +0100
committerHans Duedal <hd@onlinecity.dk>2011-03-25 22:56:02 +0100
commit208b8fa87bf0f511ff2a308bc0a8dd9b8a6ef2b9 (patch)
tree5cc215c535c2d952f9d083bb105e59e2bc6422f2
parentd0cac115585935105b4616a09d2c7b7dff217570 (diff)
parent0b819b907d7d969129a9bc4ed003940a87f748cb (diff)
downloadphp-smpp-208b8fa87bf0f511ff2a308bc0a8dd9b8a6ef2b9.zip
php-smpp-208b8fa87bf0f511ff2a308bc0a8dd9b8a6ef2b9.tar.gz
php-smpp-208b8fa87bf0f511ff2a308bc0a8dd9b8a6ef2b9.tar.bz2
Merge branch 'develop'
-rw-r--r--README.markdown14
-rw-r--r--gateway/workers/smssender.class.php4
2 files changed, 8 insertions, 10 deletions
diff --git a/README.markdown b/README.markdown
index 9cd3f89..ccb3b13 100644
--- a/README.markdown
+++ b/README.markdown
@@ -1,16 +1,17 @@
PHP-based SMPP client lib
=============
-This is a simplified SMPP client lib for sending or receiving smses through SMPP v3.4[2].
+This is a simplified SMPP client lib for sending or receiving smses through [SMPP v3.4](http://www.smsforum.net/SMPP_v3_4_Issue1_2.zip).
-The socket implementation from Apache's Thrift[1] is used for the transport layer components.
+The socket implementation from [Apache's Thrift](http://thrift.apache.org/) is used for the transport layer components.
This library is targeted towards PHP 5.3, and as such uses namespaces.
The library is divided into three parts with their own sub-namespace:
- * gateway\protocol - containing everything related to SMPP
- * gateway\transport - the transport components from Apache's Thrift[1]
- * gateway\workers - a multi-process example and basic components
+
+ - gateway\protocol - containing everything related to SMPP
+ - gateway\transport - the transport components from Apache's Thrift
+ - gateway\workers - a multi-process example and basic components
Basic usage example
-----
@@ -116,6 +117,3 @@ Then another script injects a SMS into the queue:
$smsrequest = new SmsRequest('H€llo world', array(4512345678), 'SMPP Test', 1337);
msg_send($queue, SmsRequest::TYPE, $smsrequest, true);
-
-[1]: http://thrift.apache.org/
-[2]: http://www.smsforum.net/SMPP_v3_4_Issue1_2.zip \ No newline at end of file
diff --git a/gateway/workers/smssender.class.php b/gateway/workers/smssender.class.php
index 03102d1..ca0638d 100644
--- a/gateway/workers/smssender.class.php
+++ b/gateway/workers/smssender.class.php
@@ -149,8 +149,8 @@ class SmsSender
// Contruct SMPP Address objects
if (!ctype_digit($sms->sender)) {
$sender = new \SMPP\Address($sms->sender,\SMPP\TON_ALPHANUMERIC);
- } else if ($sender < 10000) {
- $sender = new \SMPP\Address($sms->sender,SMPP\TON_NATIONAL,SMPP\NPI_E164);
+ } else if ($sms->sender < 10000) {
+ $sender = new \SMPP\Address($sms->sender,\SMPP\TON_NATIONAL,\SMPP\NPI_E164);
} else {
$sender = new \SMPP\Address($sms->sender,\SMPP\TON_INTERNATIONAL,\SMPP\NPI_E164);
}