[PATCH] Re: SMPP 3.3 trouble

Alexander Malysh <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Organization Centrium GmbH
Message-ID <[email protected]>
Hi,

please try this patch...

For all: generic_nack command id is 0x80000000 and not 0x00000000 

Am Donnerstag, 20. Februar 2003 18:17 schrieb Raphael Bellec:
> Hello, I am experiencing some trouble connecting Kannel to a Comverse
> SMSC. I tried Kannel 1.2.1, 1.3.1 and 1.3.0 with different
> configurations and I still have an error that I do not understand. This
> may come from the Comverse SMSC, but I would like to be sure. There is
> also an unknown SMPP_PDU type and I would like to know if someone
> already has this problem (the 8000… (see below) Make me think about a
> generic_nack).
>
> The connexion seems ok, bind_transmitter and bind_receiver are sent
> without trouble, but at the first enquire_link there is an “I/O error or
> other error. Re-connecting”. I did not find mention of this in the
> archives (except the THROTTLING problem, but this should not affect all
> these different Kannel versions and it does not seems to be the same
> problem)
>
> Here are the facts:
> - Kannel 1.3.1
> - SMSC Comverse, SMPP 3.3
>
> Error output, conf file and complete output below.
>
> Error output (see the complete output at the end of the message if
> necessary):
>
> 2003-02-20 11:23:44 [5] DEBUG: SMPP[opsmsc]: Sending enquire link:
> 2003-02-20 11:23:44 [5] DEBUG: SMPP PDU 0x80f3cc8 dump:
> 2003-02-20 11:23:44 [5] DEBUG:   type_name: enquire_link
> 2003-02-20 11:23:44 [5] DEBUG:   command_id: 21 = 0x00000015
> 2003-02-20 11:23:44 [5] DEBUG:   command_status: 0 = 0x00000000
> 2003-02-20 11:23:44 [5] DEBUG:   sequence_number: 2 = 0x00000002
> 2003-02-20 11:23:44 [5] DEBUG: SMPP PDU dump ends.
> 2003-02-20 11:23:44 [6] DEBUG: SMPP[opsmsc]: Sending enquire link:
> 2003-02-20 11:23:44 [6] DEBUG: SMPP PDU 0x80f3cc8 dump:
> 2003-02-20 11:23:44 [6] DEBUG:   type_name: enquire_link
> 2003-02-20 11:23:44 [6] DEBUG:   command_id: 21 = 0x00000015
> 2003-02-20 11:23:44 [6] DEBUG:   command_status: 0 = 0x00000000
> 2003-02-20 11:23:44 [6] DEBUG:   sequence_number: 3 = 0x00000003
> 2003-02-20 11:23:44 [6] DEBUG: SMPP PDU dump ends.
> 2003-02-20 11:23:44 [5] ERROR: SMPP[opsmsc]: I/O error or other error.
> Re-connecting.
> 2003-02-20 11:23:44 [6] ERROR: Unknown SMPP_PDU type, internal error.
> 2003-02-20 11:23:44 [6] ERROR: SMPP[opsmsc]: PDU unpacking failed.
> 2003-02-20 11:23:44 [6] DEBUG: SMPP[opsmsc]: Failed PDU follows.
> 2003-02-20 11:23:44 [6] DEBUG: Octet string at 0x80f3c60:
> 2003-02-20 11:23:44 [6] DEBUG:   len:  12
> 2003-02-20 11:23:44 [6] DEBUG:   size: 13
> 2003-02-20 11:23:44 [6] DEBUG:   immutable: 0
> 2003-02-20 11:23:44 [6] DEBUG:   data: 80 00 00 00 00 00 00 04
> ........
> 2003-02-20 11:23:44 [6] DEBUG:   data: 00 00 00 01               ....
> 2003-02-20 11:23:44 [6] DEBUG: Octet string dump ends.
> 2003-02-20 11:23:44 [6] ERROR: SMPP[opsmsc]: I/O error or other error.
> Re-connecting.
> 2003-02-20 11:23:44 [5] DEBUG: SMPP[opsmsc]: Sending PDU:
> 2003-02-20 11:23:44 [5] DEBUG: SMPP PDU 0x80f3b88 dump:
> 2003-02-20 11:23:44 [5] DEBUG:   type_name: bind_transmitter
>
>
> Configuration File.
> group = smsc
> smsc = smpp
> smsc-id = opsmsc
> host = 192.168.1.210
> port = 3700
> smsc-username = "login..."
> smsc-password = *******
> system-type = "VMA"
> # interface-version= 0x33
> interface-version= 33
> address-range=""
> transceiver-mode=no
> receive-port=3700
> #message-id-type
> #source-addr-ton=1
> #source-addr-npi=1
> #dest-addr-ton=1
> #dest-addr-npi=1
>
>
> # SMSBOX SETUP
>
> group = smsbox
> bearerbox-host = localhost
> sendsms-port = 13013
> global-sender = 13013
> #sendsms-chars = "0123456789 +-"
> log-file = "/tmp/smsbox.log"
> log-level = 0
> access-log = "/tmp/access.log"
>
>
> Complete output:
>
> 2003-02-20 11:23:14 [0] INFO: Debug_lvl = 0, log_file = <none>, log_lvl
> = 0
> 2003-02-20 11:23:14 [0] WARNING: DLR: using default 'internal' for
> storage type.
> 2003-02-20 11:23:14 [0] DEBUG: Kannel bearerbox version `1.3.1'.
> System Linux, release 2.4.19, version #4 Mon Feb 10 13:23:08 GMT 2003,
> machine i686.
> Hostname …..
> Libxml version 20421.
> Using OpenSSL 0.9.6c 21 dec 2001.
> Using native malloc.
>
> 2003-02-20 11:23:14 [0] INFO: Added logfile `/tmp/bearerbox.log' with
> level `0'.
> 2003-02-20 11:23:14 [0] DEBUG: HTTP: Opening server at port 13000.
> 2003-02-20 11:23:14 [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)
> 2003-02-20 11:23:14 [0] DEBUG: Started thread 2
> (gwlib/http.c:server_thread)
> 2003-02-20 11:23:14 [0] DEBUG: Started thread 3
> (gw/bb_http.c:httpadmin_run)
> 2003-02-20 11:23:14 [0] DEBUG: starting smsbox connection module
> 2003-02-20 11:23:14 [0] DEBUG: Started thread 4
> (gw/bb_boxc.c:smsboxc_run)
> 2003-02-20 11:23:14 [0] DEBUG: Started thread 5
> (gw/smsc/smsc_smpp.c:io_thread)
> 2003-02-20 11:23:14 [0] DEBUG: Started thread 6
> (gw/smsc/smsc_smpp.c:io_thread)
> 2003-02-20 11:23:14 [0] DEBUG: Started thread 7
> (gw/bb_smscconn.c:sms_router)
> 2003-02-20 11:23:14 [0] INFO: ----------------------------------------
> 2003-02-20 11:23:14 [0] INFO: Kannel bearerbox II version 1.3.1 starting
> 2003-02-20 11:23:14 [0] INFO: MAIN: Start-up done, entering mainloop
> 2003-02-20 11:23:14 [7] DEBUG: sms_router: time to sleep
> 2003-02-20 11:23:14 [7] DEBUG: sms_router: list_len = 0
> 2003-02-20 11:23:14 [5] DEBUG: SMPP[opsmsc]: Sending PDU:
> 2003-02-20 11:23:14 [5] DEBUG: SMPP PDU 0x80f3b88 dump:
> 2003-02-20 11:23:14 [5] DEBUG:   type_name: bind_transmitter
> 2003-02-20 11:23:14 [5] DEBUG:   command_id: 2 = 0x00000002
> 2003-02-20 11:23:14 [5] DEBUG:   command_status: 0 = 0x00000000
> 2003-02-20 11:23:14 [5] DEBUG:   sequence_number: 0 = 0x00000000
> 2003-02-20 11:23:14 [5] DEBUG:   system_id: "login..."
> 2003-02-20 11:23:14 [5] DEBUG:   password: "*******"
> 2003-02-20 11:23:14 [5] DEBUG:   system_type: "VMA"
> 2003-02-20 11:23:14 [5] DEBUG:   interface_version: 51 = 0x00000033
> 2003-02-20 11:23:14 [5] DEBUG:   addr_ton: 0 = 0x00000000
> 2003-02-20 11:23:14 [5] DEBUG:   addr_npi: 0 = 0x00000000
> 2003-02-20 11:23:14 [5] DEBUG:   address_range: ""
> 2003-02-20 11:23:14 [5] DEBUG: SMPP PDU dump ends.
> 2003-02-20 11:23:14 [6] DEBUG: SMPP[opsmsc]: Sending PDU:
> 2003-02-20 11:23:14 [6] DEBUG: SMPP PDU 0x80f3cc8 dump:
> 2003-02-20 11:23:14 [6] DEBUG:   type_name: bind_receiver
> 2003-02-20 11:23:14 [6] DEBUG:   command_id: 1 = 0x00000001
> 2003-02-20 11:23:14 [6] DEBUG:   command_status: 0 = 0x00000000
> 2003-02-20 11:23:14 [6] DEBUG:   sequence_number: 1 = 0x00000001
> 2003-02-20 11:23:14 [6] DEBUG:   system_id: "login..."
> 2003-02-20 11:23:14 [6] DEBUG:   password: "*******"
> 2003-02-20 11:23:14 [6] DEBUG:   system_type: "VMA"
> 2003-02-20 11:23:14 [6] DEBUG:   interface_version: 51 = 0x00000033
> 2003-02-20 11:23:14 [6] DEBUG:   addr_ton: 0 = 0x00000000
> 2003-02-20 11:23:14 [6] DEBUG:   addr_npi: 0 = 0x00000000
> 2003-02-20 11:23:14 [6] DEBUG:   address_range: ""
> 2003-02-20 11:23:14 [6] DEBUG: SMPP PDU dump ends.
> 2003-02-20 11:23:44 [5] DEBUG: SMPP[opsmsc]: Sending enquire link:
> 2003-02-20 11:23:44 [5] DEBUG: SMPP PDU 0x80f3cc8 dump:
> 2003-02-20 11:23:44 [5] DEBUG:   type_name: enquire_link
> 2003-02-20 11:23:44 [5] DEBUG:   command_id: 21 = 0x00000015
> 2003-02-20 11:23:44 [5] DEBUG:   command_status: 0 = 0x00000000
> 2003-02-20 11:23:44 [5] DEBUG:   sequence_number: 2 = 0x00000002
> 2003-02-20 11:23:44 [5] DEBUG: SMPP PDU dump ends.
> 2003-02-20 11:23:44 [6] DEBUG: SMPP[opsmsc]: Sending enquire link:
> 2003-02-20 11:23:44 [6] DEBUG: SMPP PDU 0x80f3cc8 dump:
> 2003-02-20 11:23:44 [6] DEBUG:   type_name: enquire_link
> 2003-02-20 11:23:44 [6] DEBUG:   command_id: 21 = 0x00000015
> 2003-02-20 11:23:44 [6] DEBUG:   command_status: 0 = 0x00000000
> 2003-02-20 11:23:44 [6] DEBUG:   sequence_number: 3 = 0x00000003
> 2003-02-20 11:23:44 [6] DEBUG: SMPP PDU dump ends.
> 2003-02-20 11:23:44 [5] ERROR: SMPP[opsmsc]: I/O error or other error.
> Re-connecting.
> 2003-02-20 11:23:44 [6] ERROR: Unknown SMPP_PDU type, internal error.
> 2003-02-20 11:23:44 [6] ERROR: SMPP[opsmsc]: PDU unpacking failed.
> 2003-02-20 11:23:44 [6] DEBUG: SMPP[opsmsc]: Failed PDU follows.
> 2003-02-20 11:23:44 [6] DEBUG: Octet string at 0x80f3c60:
> 2003-02-20 11:23:44 [6] DEBUG:   len:  12
> 2003-02-20 11:23:44 [6] DEBUG:   size: 13
> 2003-02-20 11:23:44 [6] DEBUG:   immutable: 0
> 2003-02-20 11:23:44 [6] DEBUG:   data: 80 00 00 00 00 00 00 04
> ........
> 2003-02-20 11:23:44 [6] DEBUG:   data: 00 00 00 01               ....
> 2003-02-20 11:23:44 [6] DEBUG: Octet string dump ends.
> 2003-02-20 11:23:44 [6] ERROR: SMPP[opsmsc]: I/O error or other error.
> Re-connecting.
> 2003-02-20 11:23:44 [5] DEBUG: SMPP[opsmsc]: Sending PDU:
> 2003-02-20 11:23:44 [5] DEBUG: SMPP PDU 0x80f3b88 dump:
> 2003-02-20 11:23:44 [5] DEBUG:   type_name: bind_transmitter
> 2003-02-20 11:23:44 [5] DEBUG:   command_id: 2 = 0x00000002
> 2003-02-20 11:23:44 [5] DEBUG:   command_status: 0 = 0x00000000
> 2003-02-20 11:23:44 [5] DEBUG:   sequence_number: 4 = 0x00000004
> 2003-02-20 11:23:44 [5] DEBUG:   system_id: "login..."
> 2003-02-20 11:23:44 [5] DEBUG:   password: "*******"
> 2003-02-20 11:23:44 [5] DEBUG:   system_type: "VMA"
> 2003-02-20 11:23:44 [5] DEBUG:   interface_version: 51 = 0x00000033
> 2003-02-20 11:23:44 [5] DEBUG:   addr_ton: 0 = 0x00000000
> 2003-02-20 11:23:44 [5] DEBUG:   addr_npi: 0 = 0x00000000
> 2003-02-20 11:23:44 [5] DEBUG:   address_range: ""
> 2003-02-20 11:23:44 [5] DEBUG: SMPP PDU dump ends.
> 2003-02-20 11:23:45 [6] DEBUG: SMPP[opsmsc]: Sending PDU:
> 2003-02-20 11:23:45 [6] DEBUG: SMPP PDU 0x80f3cc8 dump:
> 2003-02-20 11:23:45 [6] DEBUG:   type_name: bind_receiver
> 2003-02-20 11:23:45 [6] DEBUG:   command_id: 1 = 0x00000001
> 2003-02-20 11:23:45 [6] DEBUG:   command_status: 0 = 0x00000000
> 2003-02-20 11:23:45 [6] DEBUG:   sequence_number: 5 = 0x00000005
> 2003-02-20 11:23:45 [6] DEBUG:   system_id: "login..."
> 2003-02-20 11:23:45 [6] DEBUG:   password: "*******"
> 2003-02-20 11:23:45 [6] DEBUG:   system_type: "VMA"
> 2003-02-20 11:23:45 [6] DEBUG:   interface_version: 51 = 0x00000033
> 2003-02-20 11:23:45 [6] DEBUG:   addr_ton: 0 = 0x00000000
> 2003-02-20 11:23:45 [6] DEBUG:   addr_npi: 0 = 0x00000000
> 2003-02-20 11:23:45 [6] DEBUG:   address_range: ""
> 2003-02-20 11:23:45 [6] DEBUG: SMPP PDU dump ends.
> 2003-02-20 11:23:48 [0] WARNING: Killing signal received, shutting
> down...
> 2003-02-20 11:23:48 [0] DEBUG: Shutting down Kannel...
> 2003-02-20 11:23:48 [0] DEBUG: shutting down smsc
> 2003-02-20 11:23:48 [0] DEBUG: Shutting down SMSCConn
> SMPP:192.168.1.210:3700/3700:login...:VMA (slow)
> 2003-02-20 11:23:48 [5] DEBUG: SMPP[opsmsc]: Sending unbind:
> 2003-02-20 11:23:48 [5] DEBUG: SMPP PDU 0x80f3d28 dump:
> 2003-02-20 11:23:48 [5] DEBUG:   type_name: unbind
> 2003-02-20 11:23:48 [5] DEBUG:   command_id: 6 = 0x00000006
> 2003-02-20 11:23:48 [5] DEBUG:   command_status: 0 = 0x00000000
> 2003-02-20 11:23:48 [5] DEBUG:   sequence_number: 6 = 0x00000006
> 2003-02-20 11:23:48 [5] DEBUG: SMPP PDU dump ends.
> 2003-02-20 11:23:48 [5] DEBUG: SMPP[opsmsc]: io_thread: break and
> shutting down
> 2003-02-20 11:23:48 [5] DEBUG: Thread 5 (gw/smsc/smsc_smpp.c:io_thread)
> terminates.
> 2003-02-20 11:23:48 [6] DEBUG: SMPP[opsmsc]: Sending unbind:
> 2003-02-20 11:23:48 [6] DEBUG: SMPP PDU 0x80f3b18 dump:
> 2003-02-20 11:23:48 [6] DEBUG:   type_name: unbind
> 2003-02-20 11:23:48 [6] DEBUG:   command_id: 6 = 0x00000006
> 2003-02-20 11:23:48 [6] DEBUG:   command_status: 0 = 0x00000000
> 2003-02-20 11:23:48 [6] DEBUG:   sequence_number: 7 = 0x00000007
> 2003-02-20 11:23:48 [6] DEBUG: SMPP PDU dump ends.
> 2003-02-20 11:23:48 [6] DEBUG: SMPP[opsmsc]: io_thread: break and
> shutting down
> 2003-02-20 11:23:48 [6] DEBUG: Thread 6 (gw/smsc/smsc_smpp.c:io_thread)
> terminates.
> 2003-02-20 11:23:48 [0] DEBUG: SMSCConn
> SMPP:192.168.1.210:3700/3700:login...:VMA shut down.
> 2003-02-20 11:23:48 [0] DEBUG: shutting down udp
> 2003-02-20 11:23:48 [4] DEBUG: Thread 4 (gw/bb_boxc.c:smsboxc_run)
> terminates.
> 2003-02-20 11:23:48 [0] INFO: All flow threads have died, killing core
> 2003-02-20 11:23:48 [0] DEBUG: Waiting for 2
> (gwlib/http.c:server_thread) to terminate
> 2003-02-20 11:23:48 [3] DEBUG: HTTP: No clients with requests, quitting.
> 2003-02-20 11:23:48 [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run)
> terminates.
> 2003-02-20 11:23:48 [7] DEBUG: Thread 7 (gw/bb_smscconn.c:sms_router)
> terminates.
> 2003-02-20 11:23:48 [2] DEBUG: Thread 2 (gwlib/http.c:server_thread)
> terminates.
> 2003-02-20 11:23:48 [1] DEBUG: Thread 1 (gwlib/fdset.c:poller)
> terminates.
> 2003-02-20 11:23:48 [0] DEBUG: final clean-up for SMSCConn
> 2003-02-20 11:23:48 [0] INFO: Total WDP messages: received 0, sent 0
> 2003-02-20 11:23:48 [0] INFO: Total SMS messages: received 0, sent 0
> 2003-02-20 11:23:48 [0] DEBUG: Immutable octet strings: 230.
>
>
> Thanks for your help.
>
> Regards.
>
>
>
> Raphaël Bellec
> Directeur des opérations
> Manobi France
> Cap Alpha
> Avenue de l’Europe, Clapiers
> 34940 Montpellier Cedex
> Tél : + 33 (0) 4 67 59 36 56
> Fax : + 33 (0) 4 67 59 30 10
> E-mail : [email protected]
>  

-- 
Best regards / Mit besten Grüßen aus Köln

Dipl.-Ing.
Alexander Malysh
___________________________________________

Centrium GmbH
Ehrenstraße 2
50672 Köln

Fon: +49 (0221) 277 49 240
Fax: +49 (0221) 277 49 109

email: [email protected]
web: www.centrium.de
msn: [email protected]
icq: 98063111
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.