Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions smppclient.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ public function sendSMS(SmppAddress $from, SmppAddress $to, $message, $tags=null
$seqnum = 1;
foreach ($parts as $part) {
$udh = pack('cccccc',5,0,3,substr($csmsReference,1,1),count($parts),$seqnum);
$res = $this->submit_sm($from, $to, $udh.$part, $tags, $dataCoding, $priority, $scheduleDeliveryTime, $validityPeriod, (SmppClient::$sms_esm_class|0x40));
$res = $this->submit_sm($from, $to, $udh.$part, $tags, $dataCoding, $priority, $scheduleDeliveryTime, $validityPeriod, (SmppClient::$sms_esm_class|SMPP::ESM_UDHI));
$seqnum++;
}
return $res;
Expand Down Expand Up @@ -908,7 +908,7 @@ class SMPP
const ESM_DELIVER_CONV_ABORT = 0x18;
const ESM_DELIVER_IDN = 0x20; // Intermediate delivery notification
// ESM bits 7-6
const ESM_UHDI = 0x40;
const ESM_UDHI = 0x40;
const ESM_REPLYPATH = 0x80;

// SMPP v3.4 - 5.2.17 page 124
Expand Down