Hi

In addition to that, check files permits

you are having write errors on  `/var/log/kannel/kannel.access'.

user used to run kannel should have write permit to that file/folder

Regards

Alvaro

|-----------------------------------------------------------------------------------------------------------------|
Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
celular y Nextel
en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via
SMS y GPRS online
              Visitenos en www.perusms.NET www.smsglobal.com.mx y
www.pravcom.com


On Sat, Sep 29, 2012 at 7:49 AM, Rinor Hoxha <[email protected]> wrote:
> Hi,
> You need to change bearerbox-port = 13001 on group smsbox. You are
> connecting smsbox to bearerbox admin port 13000 which is wrong. So your
> final configs should be:
>
> group = core
> admin-port = 13000
> smsbox-port = 13001
> admin-password = bar
> admin-deny-ip = ""
> admin-allow-ip = "*.*.*.*"
> log-file = "/var/log/kannel/bearerbox.log"
> box-deny-ip = "*.*.*.*"
> box-allow-ip = "127.0.0.1"
>
> group = smsbox
> smsbox-id = mysmsc
> bearerbox-host = localhost
> bearerbox-port = 13001
> sendsms-port = 13009
> sendsms-chars = "0123456789"
> global-sender = 123456
> access-log = "/var/log/kannel/kannel.access"
> log-file = "/var/log/kannel/smsbox.log"
> log-level = 0
>
> Hope that helps.
>
> Br, Rinor
>
>
>
> On Sat, Sep 29, 2012 at 9:52 AM, Sebastien Cramatte <[email protected]>
> wrote:
>>
>> Hello,
>>
>> I've just install / compile SVN kannel 1.5  to my Debian squeeze Server to
>> use it as SMS gateway.
>> We are trying to get it running using SMPP with AmdTelecom provider.
>>
>> bearerbox + smsbox daemon seem to start properly  but each time I try to
>> send a sms  smsbox or Bearerbox crash
>>
>> --- netstat output ---
>> Active Internet connections (only servers)
>> Proto Recv-Q Send-Q Local Address           Foreign Address         State
>> PID/Program name
>> tcp        0      0 *:ssh                   *:*                     LISTEN
>> 512/sshd
>> tcp        0      0 *:13000                 *:*                     LISTEN
>> 22661/bearerbox
>> tcp        0      0 *:13001                 *:*                     LISTEN
>> 22661/bearerbox
>> tcp        0      0 *:13009                 *:*                     LISTEN
>> 22984/smsbox
>> tcp6       0      0 [::]:ssh                [::]:*                  LISTEN
>> 512/sshd
>> tcp6       0      0 [::]:www                [::]:*                  LISTEN
>> 12264/apache2
>> ---
>>
>> Anybody can post a complete kannel.conf  working config with amdTelecom.
>> I've got same issue with  Kannel 1.4.x o 1.5.x  so
>> I can imagine that it's probably a configuration issue :)
>>
>> Please see my current config and sms log file bellow (i've replaced phone
>> number by +34xxxxxxxxx )
>>
>> --- my Kannel.conf ---
>> group = core
>> admin-port = 13000
>> admin-password = bar
>> admin-deny-ip = ""
>> admin-allow-ip = "*.*.*.*"
>> log-file = "/var/log/kannel/bearerbox.log"
>> box-deny-ip = "*.*.*.*"
>> box-allow-ip = "127.0.0.1"
>>
>> group = smsbox
>> smsbox-id = mysmsc
>> bearerbox-host = localhost
>> bearerbox-port = 13000
>> sendsms-port = 13009
>> sendsms-chars = "0123456789"
>> global-sender = 123456
>> access-log = "/var/log/kannel/kannel.access"
>> log-file = "/var/log/kannel/smsbox.log"
>> log-level = 0
>>
>> group = smsc
>> smsc = smpp
>> host = 91.205.174.39
>> port = 8400
>> smsc-id = "amdtelecom"
>> receive-port = 8400
>> smsc-username = "<username>"
>> smsc-password = "<password>"
>> source-addr-ton = 0
>> source-addr-npi = 1
>> dest-addr-ton = 1
>> dest-addr-npi = 1
>> bind-addr-ton = 0
>> bind-addr-npi = 1
>> system-type = "VMA"
>> enquire-link-interval = 10
>> reconnect-delay = 5
>> throughput = 20
>> validityperiod = 1340
>> #connect-allow-ip = ""
>>
>> group = sendsms-user
>> username = "abc"
>> password = "123"
>> default-smsc = "amdtelecom"
>> default-sender = "<+34xxxxxxxxx>"
>>
>> --- smsbox.log
>> 2012-09-29 09:44:51 [22834] [2] DEBUG: HTTP: Creating HTTPClient for
>> `127.0.0.1'.
>> 2012-09-29 09:44:51 [22834] [2] DEBUG: HTTP: Created HTTPClient area
>> 0xb99f70.
>> 2012-09-29 09:44:51 [22834] [3] INFO: smsbox: Got HTTP request
>> </cgi-bin/sendsms> from <127.0.0.1>
>> 2012-09-29 09:44:51 [22834] [3] INFO: sendsms used by <abc>
>> 2012-09-29 09:44:51 [22834] [3] INFO: sendsms sender:<abc:902918091>
>> (127.0.0.1) to:<+34xxxxxxxxx> msg:<hello>
>> 2012-09-29 09:44:51 [22834] [3] DEBUG: Stored UUID
>> d9ceac83-3124-42a4-af5a-6123074305c5
>> 2012-09-29 09:44:51 [22834] [3] DEBUG: message length 5, sending 1
>> messages
>> 2012-09-29 09:44:51 [22834] [3] DEBUG: Status: 202 Answer: <Sent.>
>> 2012-09-29 09:44:51 [22834] [3] DEBUG: Delayed reply - wait for bearerbox
>> 2012-09-29 09:44:51 [22834] [0] ERROR: Connection closed by the bearerbox.
>> 2012-09-29 09:44:51 [22834] [0] ERROR: Bearerbox is gone, restarting
>> 2012-09-29 09:44:51 [22834] [0] INFO: Received (and handled?) 0 requests
>> in 72 seconds (0.00 per second)
>> 2012-09-29 09:44:51 [22834] [0] INFO: Kannel smsbox terminating.
>> 2012-09-29 09:44:51 [22834] [7] DEBUG: Thread 7
>> (gw/heartbeat.c:heartbeat_thread) terminates.
>> 2012-09-29 09:44:51 [22834] [0] DEBUG: Waiting for 2
>> (gwlib/http.c:server_thread) to terminate
>> 2012-09-29 09:44:51 [22834] [3] DEBUG: HTTP: No clients with requests,
>> quitting.
>> 2012-09-29 09:44:51 [22834] [3] DEBUG: Thread 3
>> (gw/smsbox.c:sendsms_thread) terminates.
>> 2012-09-29 09:44:51 [22834] [2] DEBUG: HTTP: Destroying HTTPClient area
>> 0xb99f70.
>> 2012-09-29 09:44:51 [22834] [2] DEBUG: HTTP: Destroying HTTPClient for
>> `127.0.0.1'.
>> 2012-09-29 09:44:51 [22834] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller)
>> terminates.
>> 2012-09-29 09:44:51 [22834] [2] DEBUG: Thread 2
>> (gwlib/http.c:server_thread) terminates.
>> 2012-09-29 09:44:51 [22834] [0] DEBUG: Waiting for 4
>> (gw/smsbox.c:obey_request_thread) to terminate
>> 2012-09-29 09:44:51 [22834] [4] DEBUG: Thread 4
>> (gw/smsbox.c:obey_request_thread) terminates.
>> 2012-09-29 09:44:51 [22834] [6] DEBUG: Thread 6
>> (gw/smsbox.c:http_queue_thread) terminates.
>> 2012-09-29 09:44:51 [22834] [0] DEBUG: Waiting for 5
>> (gw/smsbox.c:url_result_thread) to terminate
>> 2012-09-29 09:44:51 [22834] [5] DEBUG: Thread 5
>> (gw/smsbox.c:url_result_thread) terminates.
>> 2012-09-29 09:45:02 [22984] [0] INFO: Added logfile
>> `/var/log/kannel/smsbox.log' with level `0'.
>> 2012-09-29 09:45:02 [22984] [0] INFO: Service global sender set as
>> '123456'
>> 2012-09-29 09:45:02 [22984] [0] INFO: Logging accesses to
>> '/var/log/kannel/kannel.access'.
>> 2012-09-29 09:45:02 [22984] [0] ERROR: Couldn't open logfile
>> `/var/log/kannel/kannel.access'.
>> 2012-09-29 09:45:02 [22984] [0] ERROR: System error 13: Permission denied
>> 2012-09-29 09:45:02 [22984] [0] INFO: HTTP: Opening server at port 13009.
>> 2012-09-29 09:45:02 [22984] [0] DEBUG: Started thread 1
>> (gwlib/fdset.c:poller)
>> 2012-09-29 09:45:02 [22984] [0] DEBUG: Started thread 2
>> (gwlib/http.c:server_thread)
>> 2012-09-29 09:45:02 [22984] [0] INFO: Set up send sms service at port
>> 13009
>> 2012-09-29 09:45:02 [22984] [0] DEBUG: Started thread 3
>> (gw/smsbox.c:sendsms_thread)
>> 2012-09-
>>  ---
>>
>> Thank you for you help
>>
>>
>>
>

Reply via email to