Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sending custom parameters to smpp #101

Open
voicecomms opened this issue Mar 4, 2021 · 1 comment
Open

sending custom parameters to smpp #101

voicecomms opened this issue Mar 4, 2021 · 1 comment

Comments

@voicecomms
Copy link

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
Copy link

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);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants