onlinecity / php-smpp

PHP 5 based SMPP client library
232 stars 160 forks source link

sending custom parameters to smpp #101

Open voicecomms opened 3 years ago

voicecomms commented 3 years ago

Hello,

Is there any way to send additional customer parameters to smpp via the php-smpp library for example

$smpp->debug = true; $transport->debug = true;

// Open the connection $transport->open(); $smpp->bindTransmitter("USERNAME","PASSWORD"); $smpp->optionalParameter('Value')

any insight would be of great help

Jagdish-J-P commented 3 years ago

You can use TAGs for this.

$tags = array( new SmppTag(0x1400, $PEID), new SmppTag(0x1401, $TEMPLATE_ID), new SmppTag(0x1402, $TELEMARKETER_ID) );

$smpp->sendSMS($from,$to,$encodedMessage,$tags);