Issue in SMPP Connection

505 views
Skip to first unread message

Siddhant Pokharel

unread,
Jun 20, 2022, 12:36:46 AM6/20/22
to Jasmin SMS Gateway
Hi,

I could not send 2 combined SMS at a time due to which I had to make 2 different connectivity for sending 2 SMS. Any solution for this?

Hugo Veiga

unread,
Jun 29, 2022, 2:15:17 AM6/29/22
to Jasmin SMS Gateway
Can you please elaborate what is the problem you're facing?

Can you please show us the result of the following commands:

smppccm -l
smppccm -s <smpp id>

Have you seen the logs on your jasmin? Can you share the relevant part?

Kind regards,

Gaurav Manandhar

unread,
Jun 30, 2022, 11:40:31 AM6/30/22
to Jasmin SMS Gateway
Hi thank you for the reply,   below is the smppccm -s smpp1 record

cid smpp1
host xxx.xx.xxx.x
port xxxx
username  username_given_by_smpp_provider
logrotate midnight
password password_given_by_smpp_provider
systype
logfile //var/log/jasmin//default- smpp1.log
loglevel 20
logprivacy no
bind_to 30
elink_interval 30
res_to 120
con_loss_retry yes
bind_npi 0
con_loss_delay 10
con_fail_delay 10
pdu_red_to 10
bind transceiver
bind_ton 2
src_ton 2
src_npi 1
dst_ton 1
addr_range None
src_addr
proto_id None
priority 0
validity None
ripf 0
def_msg_id 0
coding 0
requeue_delay 120
submit_throughput 1
dlr_expiry 86400
dlr_msgid 0
con_fail_retry yes
dst_npi 1
trx_to 300
ssl no

        with the above setting having blank src_addr at smppccm, Jasmin is taking Alert id from User -> mt_messaging_cred defaultvalue src_addr SPLS (As a example I am using  SPLS  as a alert id). This is working fine and we are able to send SMS. Above setting works fine for SMS characters which are below 160 characters for coding type 8. Where as if the SMS contents is more then 160 characters, let's says if SMS contents 160 plus characters in SMS, which we count it as more then 1 SMS count. The SMS does not get deliver, I am share you the screen shot of trace log as below.  On is the below screenshot I have marked two numbers 1 and 2, where on the first number 1, the Submit_sm response is OK (99 Submit_sm -resp: "Ok") where as the submit_sm for second number which is marked as 2, got response with "Invalid source address" (82 Submit_sm -resp: "Invalid source address") and this SMS get failed for this case we does not get log on message.log.

trace_log.jpg

To fixed this, we started creating individual smppccm for each alert id with the setting as src_addr with the Alert Id(Whitelisted name),  by doing sow we were able to send SMS which are more than 1 SMS by count. Now my problem is our SMPP provider does not allow us more than 10 smpp bind request. Because of it we are not able to send SMS with the whitelisted name (Alert Id). Looking for your support on it.

Regards,
Gaurav 



Hugo Veiga

unread,
Jun 30, 2022, 2:41:19 PM6/30/22
to Jasmin SMS Gateway
Greetings,

Thank you for the information shared. How are you sending the SMS? 


src_adr: Default source adress of each SMS-MT if not set while sending it, can be numeric or alphanumeric, when not defined it will take SMSC default

So, using the HTTP API you can defined the from (src_addr) parameter per message to suite your needs. Check example bellow:

http://<host>:1401/send?username=<SMPP_USER>&password=<SMPP_PASS>&from=<SRC_ADDR>&to=<MOBILE NUMBER>&content=Hello%20Wold!

This way you don't have to have several bind connections.

Kind regards,

Gaurav Manandhar

unread,
Jun 30, 2022, 3:12:34 PM6/30/22
to Jasmin SMS Gateway
Hi Hugo, 
  thank you for the reply, I am able to send SMS using "from=<SRC_ADDR>" through the HTTP API, however, still I am not able to send SMS of more than 160 characters.  
I am getting the following code status:ERROR/CommandStatus.ESME_RPROHIBITED

Regards,
Gaurav

Hugo Veiga

unread,
Jun 30, 2022, 3:50:20 PM6/30/22
to Jasmin SMS Gateway
Can you please share pertinent log lines where this error is returned? Please obfuscate sensitive information.

That error has the following meaning "ESME prohibited from using specified operation". You did substitute the <SRC_ADDR> with the from address you wanted to use right?

Kind regard,

Gaurav Manandhar

unread,
Jul 1, 2022, 11:05:31 AM7/1/22
to Hugo Veiga, Jasmin SMS Gateway
Hi Hugo,
  Yes we replaced SRC_ADDR with the from address and it worked for 1 SMS,

 However, the same setting didn’t not worked for 2 SMS combined.


Regards 

Gaurav 

--
Jasmin SMS Gateway -- http://jasminsms.com
Commercial support: https://jasminsms.atlassian.net/servicedesk/customer/portal/1
---
You received this message because you are subscribed to a topic in the Google Groups "Jasmin SMS Gateway" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jasmin-sms-gateway/ce7_DHTwSG4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jasmin-sms-gate...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/jasmin-sms-gateway/063bf21e-38c2-4f59-bf19-1f5c7264ff9bn%40googlegroups.com.
--
With Regards
Gaurav Manandhar.
9801157776

Hugo Veiga

unread,
Jul 1, 2022, 3:21:43 PM7/1/22
to Jasmin SMS Gateway
Sure, but can you share the revelevant lines of the log that show that you received  ESME_RPROHIBITED?

This is an indication that an PROHIBITED SMPP command was sent to your configured SMSC

Gaurav Manandhar

unread,
Jul 2, 2022, 11:35:12 PM7/2/22
to Jasmin SMS Gateway
hi Hugo, 
    My current main issue is not able to deliver 2 SMS. 
And I have shared you the log for ESME_RPROHIBITED TO YOU. 

Regards,
Gaurav

Reply all
Reply to author
Forward
0 new messages