I had the similar problem a week ago after updating smppbox to recent
revision.

I added:

use-systemid-as-smsboxid = true

to my group = smppbox and then I could bind succesfully.

Tomasz

W Twoim liście datowanym 12 sierpnia 2010 (15:59:37) można przeczytać:


> Here are my configuration files.

> **** smskannel.conf ******

> group = core
> admin-port = 13000
> smsbox-port = 13001
> admin-password = bar
> log-file = "/tmp/kannel.log"
> log-level = 0
> box-deny-ip = "*.*.*.*"
> box-allow-ip = "127.0.0.1"

> include =
> "/home/davit/workspace/kannel/gateway-revision-4837/gw/smsbox.conf"
> include =
> "/home/davit/workspace/kannel/gateway-revision-4837/gw/smsc.conf"

> group = sendsms-user
> username = tester
> password = foobar

> ******************************************
> ******** smsc.conf *************

> group=smsc
> smsc=smpp
> smsc-id=17
> interface-version=34
> host=***********
> port=*****
> system-id=*****
> smsc-password=******
> system-type=default
> transceiver-mode=1

> ******************************************
> ********* smsbox.conf ***************

> group = smsbox
> bearerbox-host = 127.0.0.1
> sendsms-port = 13013
> log-level = 0

> group = smsbox-route
> smsbox-id = VMA
> smsc-id = 17

> *******************************************
> ******** smppbox.conf ********************

> group = core

> group = smppbox
> # our boxc type
> smppbox-id = abcd
> # the port to listen on for smpp connections
> smppbox-port = 16000
> # we connect to the following host as a box
> bearerbox-host = 127.0.0.1
> bearerbox-port = 13001
> log-level = 0
> log-file = smppbox.log
> our-system-id = VMA
> route-to-smsc = 17
> # see sample smpplogins.txt
> smpp-logins =
> "/home/davit/workspace/kannel/smppbox-revision-41/gw/smpplogins.txt"

> ***************************************************

> and my smpplogins.txt

> foo bar VMA
> client-02 password-02 vma 127.0.0.1

> my bearerbox connects to the server fine.

> Davit


> From: rene.klu...@chimit.nl
> To: davit.mirzo...@hotmail.com
> CC: users@kannel.org
> Subject: RE: SMPPbox: client binding problem
> Date: Thu, 12 Aug 2010 15:20:54 +0200



















> Best send your question to the Kannel users list. You might get
> more response. Is the file readable by the user that you start Kannel with?

> What is your smppbox.conf?

>  

> The syntax seems to be right.

>  

> A document containing command id’s and statuses are the SMPP
> v3.4 specifications: http://www.smsforum.net/SMPP_v3_4_Issue1_2.zip

>  

> == Rene

>  

>  





> From: Davit Mirzoyan
> [mailto:davit.mirzo...@hotmail.com] 

> Sent: Thursday, 12 August, 2010 14:09

> To: rene.klu...@chimit.nl

> Subject: RE: SMPPbox: client binding problem





>  

> Hi Rene,



> Thanks for the feedback. I will check the path to the file again.



> Here is my file's content.



> foo bar vma

> client-02 password-02 vma 127.0.0.1



> Is the syntax ok? My client uses the first line for binding to my smppbox.



> Is there a document or a link that explains these command IDs and statuses?



> Thanks once more  



> Cheers,

> Davit







> From: rene.klu...@chimit.nl

> To: davit.mirzo...@hotmail.com; users@kannel.org

> Subject: RE: SMPPbox: client binding problem

> Date: Thu, 12 Aug 2010 13:21:05 +0200



> Command status 0x0d means: Invalid login.

> Either the login file could not be found or it doesn’t have the
> correct syntax.

>  

> == Rene

>  

>  





> From:
> users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Davit
> Mirzoyan

> Sent: Thursday, 12 August, 2010 13:03

> To: users@kannel.org

> Subject: SMPPbox: client binding problem





>  

> Dear
> all,



> Lately I was testing the smppbox with the gateway. I got the SMPPbox sources
> (revision 41), together with the latest gateway sources (revision 4837), from
> the svn repository.

> I managed to compile and install kannel and smppbox. Anyhow, I was running the
> smppbox with the bearerbox and strangely I couldn't manage to bind my client
> over SMPP to SMPPbox.

> Every time my client tries to bind to smppbox, it says that an invalid SMPP 
> PDU
> is recieved (even though correct username and password are sent to my smppbox,
> as set up in smpp-logins.txt).   



> I was wondering if there is anybody who managed to bind the whole thing and 
> get
> it work or if anybody got a binding error like this. I would greatly 
> appreciate
> your help, I am kind of stalled here. I can post my configuration files if
> needed. Here is my output



> 2010-08-12 12:47:48 [4738] [0] INFO: Waiting for SMPP connections on port 
> 2346.

> 2010-08-12 12:54:17 [4738] [0] DEBUG: Started thread 1 (smppbox.c:function)

> 2010-08-12 12:54:17 [4738] [1] DEBUG: Thread 1 (smppbox.c:function) maps to 
> pid
> 4738.

> 2010-08-12 12:54:17 [4738] [1] INFO: Client connected from
> <192.123.1.103>

> 2010-08-12 12:54:17 [4738] [1] DEBUG: Connecting to <127.0.0.1>

> 2010-08-12 12:54:17 [4738] [1] INFO: Connected to bearerbox at 127.0.0.1 port
> 13001.

> 2010-08-12 12:54:17 [4738] [1] DEBUG: Started thread 2
> (smppbox.c:smpp_to_bearerbox)

> 2010-08-12 12:54:17 [4738] [2] DEBUG: Thread 2 (smppbox.c:smpp_to_bearerbox)
> maps to pid 4738.

> 2010-08-12 12:54:18 [4738] [2] DEBUG: SMPP[(null)]: Got PDU:

> 2010-08-12 12:54:18 [4738] [2] DEBUG: SMPP PDU 0x8aa5770 dump:

> 2010-08-12 12:54:18 [4738] [2] DEBUG:   type_name: bind_transceiver

> 2010-08-12 12:54:18 [4738] [2] DEBUG:   command_id: 9 = 0x00000009

> 2010-08-12 12:54:18 [4738] [2] DEBUG:   command_status: 0 =
> 0x00000000

> 2010-08-12 12:54:18 [4738] [2] DEBUG:   sequence_number: 1 =
> 0x00000001

> 2010-08-12 12:54:18 [4738] [2] DEBUG:   system_id: "foo"

> 2010-08-12 12:54:18 [4738] [2] DEBUG:   password: "bar"

> 2010-08-12 12:54:18 [4738] [2] DEBUG:   system_type: "vma"

> 2010-08-12 12:54:18 [4738] [2] DEBUG:   interface_version: 52 =
> 0x00000034

> 2010-08-12 12:54:18 [4738] [2] DEBUG:   addr_ton: 1 = 0x00000001

> 2010-08-12 12:54:18 [4738] [2] DEBUG:   addr_npi: 1 = 0x00000001

> 2010-08-12 12:54:18 [4738] [2] DEBUG:   address_range: NULL

> 2010-08-12 12:54:18 [4738] [2] DEBUG: SMPP PDU dump ends.

> 2010-08-12 12:54:18 [4738] [2] DEBUG: SMPP[(null)]: Sending PDU:

> 2010-08-12 12:54:18 [4738] [2] DEBUG: SMPP PDU 0x8aaf370 dump:

> 2010-08-12 12:54:18 [4738] [2] DEBUG:   type_name:
> bind_transceiver_resp

> 2010-08-12 12:54:18 [4738] [2] DEBUG:   command_id: 2147483657 =
> 0x80000009

> 2010-08-12 12:54:18 [4738] [2] DEBUG:   command_status: 13 =
> 0x0000000d

> 2010-08-12 12:54:18 [4738] [2] DEBUG:   sequence_number: 1 =
> 0x00000001

> 2010-08-12 12:54:18 [4738] [2] DEBUG:   system_id: NULL

> 2010-08-12 12:54:18 [4738] [2] DEBUG: SMPP PDU dump ends.

> 2010-08-12 12:54:19 [4738] [2] ERROR: Invalid SMPP PDU received.

> 2010-08-12 12:54:19 [4738] [2] DEBUG: Thread 2 (smppbox.c:smpp_to_bearerbox)
> terminates.





> P.S. My bearerbox works fine with the smsbox. I can send messages through
> smsbox via HTTP easily. Something is wrong with my smppbox setup I guess.



> Thanks in advance



Reply via email to