you set that in the send-sms request as from value or you set it as global-sender in the smsbox or as default-sender in the sendsms-user
read the manual .. its there Tony wrote: > Hi All > > After much conversation with our SMS provider we are now able to bind to > their service. > However I'm getting the following error message when sending an SMS: > > 2009-05-01 14:24:20 [18420] [6] ERROR: SMPP[link0]: SMSC returned error > code 0x0000000a (Invalid Source Address) in response to submit_sm. > > They say I need to set the source address to 21900000 but I've no idea > how to do this. > Is there a setting in the kannel.conf I need to add? > > Thanks in advance > > Tony > > > ----- Original Message ----- From: "Tharanga" <thara...@roomsnet.com> > To: "Tony" <t...@eurisp.co.uk> > Cc: "Arne K. Haaje" <a...@drlinux.no>; <us...@vm1.kannel.org>; > <users-boun...@vm1.kannel.org> > Sent: Monday, April 20, 2009 11:48 AM > Subject: Re: Kannel not connecting to smsc > > >> But my question is , it should log all the details to kannel log. >> (retring cant connect to smsc..etc..ip and all the details..) why it's >> not displaying in the logs.. >> try a netstat also and tcpdump to ur smpp provider's ip.. >> >> can u ping to ur default gateway ? or try a traceroute to the smpp >> providers network >> >> Tharanga Abeyseela >> >> >> >> Tony wrote: >>> In answer to both replies. >>> >>> Yeah I took out all the NULL values as suggested. >>> >>> I've confirmed with the operator their IP and port and they seem >>> certain that they have opened their firewall to the IP address of the >>> our Kannel server. Although he has gone away to double check. >>> In the meantime I'll see what a TCPDump gives me. >>> >>> Thanks >>> Tony >>> >>> ----- Original Message ----- From: "Arne K. Haaje" <a...@drlinux.no> >>> To: "Tony" <t...@eurisp.co.uk> >>> Cc: "Tharanga" <thara...@roomsnet.com>; <us...@vm1.kannel.org>; >>> <users-boun...@vm1.kannel.org> >>> Sent: Monday, April 20, 2009 11:31 AM >>> Subject: Re: Kannel not connecting to smsc >>> >>> >>>> Then you quite probably either have a network problem between you >>>> and the SMSC, you have entered a wrong ip-address or port in the >>>> config file, or the operator has not allowed access from your >>>> IP-address in their firewall or SMSC. >>>> >>>> Ask the operator if they have forgot to activate yoru account, if >>>> you can find no fault with the network configuration. >>>> >>>>> Yeah I already tried that but it still shows no binding attempts. >>>>> It just tells me everytime it can't connect to the SMS center. >>>>> >>>>> Tony >>>>> >>>>> ----- Original Message ----- From: "Tharanga" <thara...@roomsnet.com> >>>>> To: "Tony" <t...@eurisp.co.uk> >>>>> Cc: <eduardo.r...@metromovil.com>; <users-boun...@vm1.kannel.org>; >>>>> <us...@vm1.kannel.org> >>>>> Sent: Monday, April 20, 2009 9:13 AM >>>>> Subject: Re: Kannel not connecting to smsc >>>>> >>>>> >>>>>> change the log-level to 4 and see. >>>>>> >>>>>> Tharanga Abeyseela >>>>>> >>>>>> Tony wrote: >>>>>>> I'm still having issues with this at the moment. >>>>>>> I don't believe that our smsc provider has correctly set things >>>>>>> up their end. >>>>>>> They have asked for some debug output of Kannel trying to bind to >>>>>>> them. >>>>>>> But I don't see any debug at at all showing the binding attempt, >>>>>>> even though I've created a log file within the smsc section: >>>>>>> log-file = "/var/log/kannel/smsc-debug" >>>>>>> log-level = 0 >>>>>>> Is there a way of seeing the binding attempts to the smsc? >>>>>>> Thanks >>>>>>> Tony >>>>>>> >>>>>>> ----- Original Message ----- >>>>>>> *From:* Tony <mailto:t...@eurisp.co.uk> >>>>>>> *To:* eduardo.r...@metromovil.com >>>>>>> <mailto:eduardo.r...@metromovil.com> ; Tharanga >>>>>>> <mailto:thara...@roomsnet.com> ; users-boun...@vm1.kannel.org >>>>>>> <mailto:users-boun...@vm1.kannel.org> >>>>>>> *Cc:* us...@vm1.kannel.org <mailto:us...@vm1.kannel.org> >>>>>>> *Sent:* Friday, April 17, 2009 12:12 PM >>>>>>> *Subject:* Re: Kannel not connecting to smsc >>>>>>> >>>>>>> Thanks all for the advice. >>>>>>> I'll start making some changes as suggested and see what I >>>>>>> come up >>>>>>> with. >>>>>>> Thanks >>>>>>> Tony >>>>>>> >>>>>>> ----- Original Message ----- >>>>>>> *From:* Eduardo Raad <mailto:eduardo.r...@metromovil.com> >>>>>>> *To:* Tharanga <mailto:thara...@roomsnet.com> ; >>>>>>> users-boun...@vm1.kannel.org >>>>>>> <mailto:users-boun...@vm1.kannel.org> ; Tony >>>>>>> <mailto:t...@eurisp.co.uk> >>>>>>> *Cc:* us...@vm1.kannel.org <mailto:us...@vm1.kannel.org> >>>>>>> *Sent:* Friday, April 17, 2009 12:09 PM >>>>>>> *Subject:* Re: Kannel not connecting to smsc >>>>>>> >>>>>>> Oops sorry guys I did not see the question had been already >>>>>>> replied :) >>>>>>> >>>>>>> Sent from my BlackBerry® wireless device >>>>>>> >>>>>>> >>>>>>> ------------------------------------------------------------------------ >>>>>>> >>>>>>> >>>>>>> >>>>>>> *From*: Tharanga >>>>>>> *Date*: Fri, 17 Apr 2009 15:27:02 +0530 >>>>>>> *To*: Tony<t...@eurisp.co.uk <mailto:t...@eurisp.co.uk>> >>>>>>> *Subject*: Re: Kannel not connecting to smsc >>>>>>> How u start kannel ? can u send ur startup script >>>>>>> >>>>>>> Tony wrote: >>>>>>>> Hi >>>>>>>> Kannel is running as the kannel user. >>>>>>>> I changed the log level to 0 and restarted kannel but still >>>>>>>> don't see any mention of it trying to connect to the smsc. >>>>>>>> Here is the contents of kannel.log: >>>>>>>> 2009-04-17 10:54:08 [14654] [0] INFO: Added logfile >>>>>>>> `/var/log/kannel/kannel.log' with level `0'. >>>>>>>> 2009-04-17 10:54:08 [14654] [0] INFO: Started access >>>>>>>> logfile >>>>>>>> `/var/log/kannel/access'. >>>>>>>> 2009-04-17 10:54:08 [14654] [0] WARNING: 'store-file' >>>>>>>> option >>>>>>>> deprecated, please use 'store-location' and 'store-type' >>>>>>>> instead. >>>>>>>> 2009-04-17 10:54:08 [14654] [0] INFO: HTTP: Opening >>>>>>>> server at >>>>>>>> port 13000. >>>>>>>> 2009-04-17 10:54:08 [14654] [0] DEBUG: Started thread 1 >>>>>>>> (gwlib/fdset.c:poller) >>>>>>>> 2009-04-17 10:54:08 [14654] [0] DEBUG: Started thread 2 >>>>>>>> (gwlib/http.c:server_thread) >>>>>>>> 2009-04-17 10:54:08 [14654] [0] DEBUG: Started thread 3 >>>>>>>> (gw/bb_http.c:httpadmin_run) >>>>>>>> 2009-04-17 10:54:08 [14654] [0] DEBUG: starting smsbox >>>>>>>> connection module >>>>>>>> 2009-04-17 10:54:08 [14654] [0] INFO: BOXC: >>>>>>>> 'smsbox-max-pending' not set, using default (100). >>>>>>>> 2009-04-17 10:54:08 [14654] [0] DEBUG: Started thread 4 >>>>>>>> (gw/bb_boxc.c:sms_to_smsboxes) >>>>>>>> 2009-04-17 10:54:08 [14654] [0] DEBUG: Started thread 5 >>>>>>>> (gw/bb_boxc.c:smsboxc_run) >>>>>>>> 2009-04-17 10:54:08 [14654] [0] INFO: Set SMS resend >>>>>>>> frequency to 60 seconds. >>>>>>>> 2009-04-17 10:54:08 [14654] [0] INFO: SMS resend retry >>>>>>>> set to >>>>>>>> unlimited. >>>>>>>> 2009-04-17 10:54:08 [14654] [0] DEBUG: smsbox MO >>>>>>>> concatenated >>>>>>>> message handling enabled >>>>>>>> 2009-04-17 10:54:08 [14654] [0] INFO: DLR rerouting for >>>>>>>> smsc >>>>>>>> id <link0> disabled. >>>>>>>> 2009-04-17 10:54:08 [14654] [0] INFO: Added logfile >>>>>>>> `/var/log/kannel/o2.log' with level `0'. >>>>>>>> 2009-04-17 10:54:08 [14654] [2] DEBUG: Thread 2 >>>>>>>> (gwlib/http.c:server_thread) maps to pid 14654. >>>>>>>> 2009-04-17 10:54:08 [14654] [3] DEBUG: Thread 3 >>>>>>>> (gw/bb_http.c:httpadmin_run) maps to pid 14654. >>>>>>>> 2009-04-17 10:54:08 [14654] [1] DEBUG: Thread 1 >>>>>>>> (gwlib/fdset.c:poller) maps to pid 14654. >>>>>>>> 2009-04-17 10:54:08 [14654] [4] DEBUG: Thread 4 >>>>>>>> (gw/bb_boxc.c:sms_to_smsboxes) maps to pid 14654. >>>>>>>> 2009-04-17 10:54:08 [14654] [5] DEBUG: Thread 5 >>>>>>>> (gw/bb_boxc.c:smsboxc_run) maps to pid 14654. >>>>>>>> 2009-04-17 10:54:08 [14654] [6] DEBUG: Thread 6 >>>>>>>> (gw/smsc/smsc_smpp.c:io_thread) maps to pid 14654. >>>>>>>> 2009-04-17 10:54:08 [14654] [0] DEBUG: Started thread 6 >>>>>>>> (gw/smsc/smsc_smpp.c:io_thread) >>>>>>>> 2009-04-17 10:54:08 [14654] [6] INFO: Logging thread `6' to >>>>>>>> logfile `/var/log/kannel/o2.log' with level `0'. >>>>>>>> 2009-04-17 10:54:08 [14654] [0] DEBUG: Started thread 7 >>>>>>>> (gw/bb_smscconn.c:sms_router) >>>>>>>> 2009-04-17 10:54:08 [14654] [0] INFO: >>>>>>>> ---------------------------------------- >>>>>>>> 2009-04-17 10:54:08 [14654] [0] INFO: Kannel bearerbox II >>>>>>>> version 1.4.3 starting >>>>>>>> 2009-04-17 10:54:08 [14654] [0] INFO: Loading store file >>>>>>>> `/var/log/kannel/kannel.store' >>>>>>>> 2009-04-17 10:54:08 [14654] [0] INFO: Store-file size 206, >>>>>>>> starting to unpack >>>>>>>> 2009-04-17 10:54:08 [14654] [0] INFO: Retrieved 1 messages, >>>>>>>> non-acknowledged messages: 1 >>>>>>>> 2009-04-17 10:54:08 [14654] [0] DEBUG: Started thread 8 >>>>>>>> (gw/bb_store_file.c:store_dumper) >>>>>>>> 2009-04-17 10:54:08 [14654] [0] INFO: MAIN: Start-up done, >>>>>>>> entering mainloop >>>>>>>> 2009-04-17 10:54:08 [14654] [7] DEBUG: Thread 7 >>>>>>>> (gw/bb_smscconn.c:sms_router) maps to pid 14654. >>>>>>>> 2009-04-17 10:54:08 [14654] [7] DEBUG: sms_router: handling >>>>>>>> message (0x9153a40 vs 0x9153a40) >>>>>>>> 2009-04-17 10:54:08 [14654] [7] DEBUG: Routing failed, >>>>>>>> re-queued. >>>>>>>> 2009-04-17 10:54:08 [14654] [7] DEBUG: sms_router: handling >>>>>>>> message (0x9153a40 vs 0x9153a40) >>>>>>>> 2009-04-17 10:54:08 [14654] [8] DEBUG: Thread 8 >>>>>>>> (gw/bb_store_file.c:store_dumper) maps to pid 14654. >>>>>>>> 2009-04-17 10:54:08 [14654] [7] DEBUG: Routing failed, >>>>>>>> re-queued. >>>>>>>> 2009-04-17 10:54:08 [14654] [7] DEBUG: sms_router: time to >>>>>>>> sleep 30.00 secs. >>>>>>>> 2009-04-17 10:54:08 [14654] [7] DEBUG: sms_router: >>>>>>>> gwlist_len = 1 >>>>>>>> 2009-04-17 10:54:08 [14654] [7] DEBUG: sms_router: handling >>>>>>>> message (0x9153a40 vs 0x9153a40) >>>>>>>> 2009-04-17 10:54:08 [14654] [7] DEBUG: Routing failed, >>>>>>>> re-queued. >>>>>>>> 2009-04-17 10:54:08 [14654] [7] DEBUG: sms_router: handling >>>>>>>> message (0x9153a40 vs 0x9153a40) >>>>>>>> 2009-04-17 10:54:08 [14654] [7] DEBUG: Routing failed, >>>>>>>> re-queued. >>>>>>>> 2009-04-17 10:54:08 [14654] [7] DEBUG: sms_router: time to >>>>>>>> sleep 30.00 secs. >>>>>>>> 2009-04-17 10:54:11 [14654] [5] INFO: Client connected from >>>>>>>> <127.0.0.1> >>>>>>>> 2009-04-17 10:54:11 [14654] [5] DEBUG: Started thread 9 >>>>>>>> (gw/bb_boxc.c:function) >>>>>>>> 2009-04-17 10:54:11 [14654] [9] DEBUG: Thread 9 >>>>>>>> (gw/bb_boxc.c:function) maps to pid 14654. >>>>>>>> 2009-04-17 10:54:11 [14654] [9] DEBUG: Started thread 10 >>>>>>>> (gw/bb_boxc.c:boxc_sender) >>>>>>>> 2009-04-17 10:54:11 [14654] [10] DEBUG: Thread 10 >>>>>>>> (gw/bb_boxc.c:boxc_sender) maps to pid 14654. >>>>>>>> 2009-04-17 10:54:28 [14654] [8] DEBUG: Dumping 1 >>>>>>>> messages to >>>>>>>> store >>>>>>>> 2009-04-17 10:54:38 [14654] [7] DEBUG: sms_router: >>>>>>>> gwlist_len = 1 >>>>>>>> 2009-04-17 10:54:38 [14654] [7] DEBUG: sms_router: handling >>>>>>>> message (0x9153a40 vs 0x9153a40) >>>>>>>> 2009-04-17 10:54:38 [14654] [7] DEBUG: Routing failed, >>>>>>>> re-queued. >>>>>>>> 2009-04-17 10:54:38 [14654] [7] DEBUG: sms_router: handling >>>>>>>> message (0x9153a40 vs 0x9153a40) >>>>>>>> 2009-04-17 10:54:38 [14654] [7] DEBUG: Routing failed, >>>>>>>> re-queued. >>>>>>>> 2009-04-17 10:54:38 [14654] [7] DEBUG: sms_router: time to >>>>>>>> sleep 30.00 secs. >>>>>>>> 2009-04-17 10:55:08 [14654] [7] DEBUG: sms_router: >>>>>>>> gwlist_len = 1 >>>>>>>> 2009-04-17 10:55:08 [14654] [7] DEBUG: sms_router: handling >>>>>>>> message (0x9153a40 vs 0x9153a40) >>>>>>>> 2009-04-17 10:55:08 [14654] [7] DEBUG: Routing failed, >>>>>>>> re-queued. >>>>>>>> 2009-04-17 10:55:08 [14654] [7] DEBUG: sms_router: handling >>>>>>>> message (0x9153a40 vs 0x9153a40) >>>>>>>> 2009-04-17 10:55:08 [14654] [7] DEBUG: Routing failed, >>>>>>>> re-queued. >>>>>>>> 2009-04-17 10:55:08 [14654] [7] DEBUG: sms_router: time to >>>>>>>> sleep 30.00 secs. >>>>>>>> 2009-04-17 10:55:38 [14654] [7] DEBUG: sms_router: >>>>>>>> gwlist_len = 1 >>>>>>>> 2009-04-17 10:55:38 [14654] [7] DEBUG: sms_router: handling >>>>>>>> message (0x9153a40 vs 0x9153a40) >>>>>>>> 2009-04-17 10:55:38 [14654] [7] DEBUG: Routing failed, >>>>>>>> re-queued. >>>>>>>> 2009-04-17 10:55:38 [14654] [7] DEBUG: sms_router: handling >>>>>>>> message (0x9153a40 vs 0x9153a40) >>>>>>>> 2009-04-17 10:55:38 [14654] [7] DEBUG: Routing failed, >>>>>>>> re-queued. >>>>>>>> 2009-04-17 10:55:38 [14654] [7] DEBUG: sms_router: time to >>>>>>>> sleep 30.00 secs. >>>>>>>> Thanks >>>>>>>> Tony >>>>>>>> ----- Original Message ----- >>>>>>>> >>>>>>>> *From:* Tharanga <mailto:thara...@roomsnet.com> >>>>>>>> *To:* Tharanga <mailto:thara...@roomsnet.com> >>>>>>>> *Cc:* Tony <mailto:t...@eurisp.co.uk> ; >>>>>>>> us...@vm1.kannel.org <mailto:us...@vm1.kannel.org> >>>>>>>> *Sent:* Friday, April 17, 2009 10:39 AM >>>>>>>> *Subject:* Re: Kannel not connecting to smsc >>>>>>>> >>>>>>>> change the log level to 0 and try....sorry i didnt >>>>>>>> see that. >>>>>>>> >>>>>>>> >>>>>>>> Tharanga Abeyseela >>>>>>>> >>>>>>>> >>>>>>>> Tharanga wrote: >>>>>>>>> Are u running kannel under root permission ? may >>>>>>>>> be a >>>>>>>>> permission problem ? >>>>>>>>> >>>>>>>>> >>>>>>>>> Tharanga Abeyseela >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> Tony wrote: >>>>>>>>>> >>>>>>>>>> I have kannel installed and running fine and I’m able >>>>>>>>>> to submit messages to the server using HTTP. >>>>>>>>>> >>>>>>>>>> However I can’t see any activity in the log files >>>>>>>>>> suggesting kannel is trying to connect to my smsc and >>>>>>>>>> send the messages. >>>>>>>>>> >>>>>>>>>> Even on startup I can’t find any mention in the log >>>>>>>>>> files of it trying to bind to my smsc. >>>>>>>>>> >>>>>>>>>> Am I doing something wrong? >>>>>>>>>> >>>>>>>>>> Here is my kannel.conf file below. >>>>>>>>>> >>>>>>>>>> Thanks In Advance. >>>>>>>>>> >>>>>>>>>> Tony >>>>>>>>>> >>>>>>>>>> # CORE >>>>>>>>>> >>>>>>>>>> group = core >>>>>>>>>> >>>>>>>>>> admin-port = 13000 >>>>>>>>>> >>>>>>>>>> smsbox-port = 13001 >>>>>>>>>> >>>>>>>>>> admin-password = k...@nn3l >>>>>>>>>> >>>>>>>>>> status-password = k...@nn3l >>>>>>>>>> >>>>>>>>>> log-file = "/var/log/kannel/kannel.log" >>>>>>>>>> >>>>>>>>>> log-level = 4 >>>>>>>>>> >>>>>>>>>> box-allow-ip = "*.*.*.*" >>>>>>>>>> >>>>>>>>>> access-log = "/var/log/kannel/access" >>>>>>>>>> >>>>>>>>>> store-file = "/var/log/kannel/kannel.store" >>>>>>>>>> >>>>>>>>>> #--------------------------------------------- >>>>>>>>>> >>>>>>>>>> # SMSC CONNECTIONS >>>>>>>>>> >>>>>>>>>> group = smsc >>>>>>>>>> >>>>>>>>>> smsc = smpp >>>>>>>>>> >>>>>>>>>> host = <ip address removed> >>>>>>>>>> >>>>>>>>>> port = 8100 >>>>>>>>>> >>>>>>>>>> smsc-username = username >>>>>>>>>> >>>>>>>>>> smsc-password = password >>>>>>>>>> >>>>>>>>>> smsc-id = link0 >>>>>>>>>> >>>>>>>>>> source-addr-ton= "NULL" >>>>>>>>>> >>>>>>>>>> source-addr-npi= "NULL" >>>>>>>>>> >>>>>>>>>> dest-addr-ton= "NULL" >>>>>>>>>> >>>>>>>>>> dest-addr-npi= "NULL" >>>>>>>>>> >>>>>>>>>> #preferred-smsc-id = link0 >>>>>>>>>> >>>>>>>>>> #allowed-smsc-id = link0;link1 >>>>>>>>>> >>>>>>>>>> keepalive = 25 >>>>>>>>>> >>>>>>>>>> interface-version=34 >>>>>>>>>> >>>>>>>>>> system-type= "NULL" >>>>>>>>>> >>>>>>>>>> address-range = "NULL" >>>>>>>>>> >>>>>>>>>> group = smsbox >>>>>>>>>> >>>>>>>>>> bearerbox-host = localhost >>>>>>>>>> >>>>>>>>>> sendsms-port = 13131 >>>>>>>>>> >>>>>>>>>> sendsms-chars = "0123456789" >>>>>>>>>> >>>>>>>>>> global-sender = 123456 >>>>>>>>>> >>>>>>>>>> access-log = "/var/log/kannel/access" >>>>>>>>>> >>>>>>>>>> log-file = "/var/log/kannel/smsbox.log" >>>>>>>>>> >>>>>>>>>> log-level = 4 >>>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>> >>>> >>> >>> >>> >>> >> >> > > >