Page 1 of 1

Adding Headers to smpp client before bind

Posted: Wed Feb 08, 2023 11:22 am
by jeremih.ose
Hello, I am looking for a way to add headers to smpp client before bind.
I have this code snippet to show what I am trying to achieve

using Inetlab.SMPP;
using Inetlab.SMPP.Common;
using System.Collections.Generic;

// Connect to the SMPP server
var client = new SmppClient();
client.Connect("serverAddress", portNumber);

// Create a dictionary of headers
var headers = new Dictionary<string, string>
{
{ "headerKey", "headerValue" }
};

// Create a Bind request
var request = new Bind();

// Set the OptionalParams property to the headers dictionary
request.OptionalParams = headers;

// Set the systemId and password
request.SystemId = "systemId";
request.Password = "password";

// Bind to the SMPP server
var response = client.Bind(request);

This is currently not possible, please advise

Re: Adding Headers to smpp client before bind

Posted: Wed Feb 08, 2023 7:00 pm
by alt
Hi jeremih

You cannot add optional TLV parameters to the Bind request, the SMPP protocol doesn't support this.

Why do you want to add the headers ?

Re: Adding Headers to smpp client before bind

Posted: Fri Feb 10, 2023 7:23 am
by jeremih.ose
Hello kind sir, I am looking to do a CUAP connection using the Smpp client library. where before the bind some header parameters are added. CUAP meaning China mobile Ussd application protocol.

Re: Adding Headers to smpp client before bind

Posted: Fri Feb 10, 2023 8:56 am
by jeremih.ose
please, find attached screenshot

Re: Adding Headers to smpp client before bind

Posted: Fri Feb 10, 2023 4:21 pm
by alt
Is CUAP based on SMPP protocol?

Re: Adding Headers to smpp client before bind

Posted: Mon Feb 13, 2023 10:55 am
by jeremih.ose
The protocol is UAP

Re: Adding Headers to smpp client before bind

Posted: Mon Feb 13, 2023 1:23 pm
by alt
CUAP ( China Mobile USSD Application Protocol ) is HTTP-based protocol.
Inetlab.SMPP doesn't support this.