Skip to content

[BUG] SMPP trunk #1728

@ghost

Description

OpenSIPS version you are running

opensips -V
version: opensips 3.0.0 (x86_64/linux)
flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, HP_MALLOC, DBG_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535
poll method support: poll, epoll, sigio_rt, select.
main.c compiled on 13:21:56 May 29 2019 with gcc 8

Describe the bug

SMPP trunk setup with VoIP provider .
SMPP trunk initialized, but then get disconnected and opensips produce error in log

Jun 10 04:35:39 smsc /usr/sbin/opensips[29432]: ERROR:proto_smpp:smpp_send_msg: cannot fetch connection for SMS_C (0)
Jun 10 04:35:44 smsc /usr/sbin/opensips[29434]: ERROR:proto_smpp:smpp_send_msg: cannot fetch connection for SMS_C (0)

Based on information from provider opensips send incorrect information.

2019-06-07 14:30:53.959 [22670] [21] ERROR: SMPP: PDU length was too small (-797211610, minimum is 16). 
2019-06-07 14:30:53.959 [22670] [21] ERROR: ESME[username] Client sent garbage, closing connection from IP `207.35.127.183:49169'. 
2019-06-07 14:38:47.377 [23345] [25] ERROR: SMPP: PDU length was too large (1229866575, maximum is 7424). 
2019-06-07 14:38:47.377 [23345] [25] ERROR: ESME[username] Client sent garbage, closing connection from IP `207.35.127.183:53645'.

SMPP Trunk Flow

991289

Opensips log says about unsupported format


Jun  7 10:02:34 smsc /usr/sbin/opensips[10821]: WARNING:proto_smpp:handle_smpp_msg: Unknown or unsupported command received 00000006
Jun  7 10:02:38 smsc /usr/sbin/opensips[10827]: ERROR:proto_smpp:smpp_send_msg: cannot fetch connection for SMS_C (0)
Jun  7 10:02:43 smsc /usr/sbin/opensips[10823]: ERROR:proto_smpp:smpp_send_msg: cannot fetch connection for SMS_C (0)
Jun  7 10:02:48 smsc /usr/sbin/opensips[10829]: ERROR:proto_smpp:smpp_send_msg: cannot fetch connection for SMS_C (0)
Jun  7 10:02:53 smsc /usr/sbin/opensips[10829]: ERROR:proto_smpp:smpp_send_msg: cannot fetch connection for SMS_C (0)

To Reproduce

Steps to reproduce the behavior:
Example:

  1. Install Opensips SMPP module
  2. Provision Database smpp table with provider information
  3. Start opensips
  4. Watch opensips log produce errors.

Expected behavior

Expect stable state for SMPP trunk where messages can flow without interruption bidirectional.

Relevant System Logs

OS/environment information

 cat /etc/redhat-release 
Fedora release 29 (Twenty Nine)
[root@smsc ~]# rpm -qa | grep opensips
opensips-proto_smpp-3.0.0-1.fc29.x86_64
opensips-proto_smpp-debuginfo-3.0.0-1.fc29.x86_64
opensips-debuginfo-3.0.0-1.fc29.x86_64
opensips-3.0.0-1.fc29.x86_64
opensips-httpd-3.0.0-1.fc29.x86_64
opensips-debugsource-3.0.0-1.fc29.x86_64
opensips-db_mysql-3.0.0-1.fc29.x86_64
python-opensips-cli-1.0.0.f1717ac-4.fc29.x86_64

Additional context

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions