summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.markdown7
-rw-r--r--gateway/workers/smssender.class.php4
2 files changed, 4 insertions, 7 deletions
diff --git a/README.markdown b/README.markdown
index 9cd3f89..21fb820 100644
--- a/README.markdown
+++ b/README.markdown
@@ -1,9 +1,9 @@
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.
@@ -116,6 +116,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);
}