Hi,

Why have you commented out the smsbox-port and wapbox-port in your core? 
Reenable them.

BR,
Nikos
  ----- Original Message ----- 
  From: karl alexander 
  To: Alvaro Cornejo 
  Cc: [email protected] 
  Sent: Friday, September 11, 2009 12:05 PM
  Subject: Re: Multiple SMS Center To Web Application




  Here is the bearerbox log.


  2009-09-10 19:16:09 [10206] [0] INFO: MAIN: Start-up done, entering mainloop
  2009-09-10 19:16:33 [10206] [4] PANIC: gwlib/gw-rwlock.c:137: 
gw_rwlock_rdlock: Assertion `lock != NULL' failed.
  2009-09-10 19:16:33 [10206] [4] PANIC: /usr/sbin/bearerbox(gw_panic+0x107) 
[0x80c41d7]
  2009-09-10 19:16:33 [10206] [4] PANIC: 
/usr/sbin/bearerbox(gw_rwlock_rdlock+0x68) [0x80b9328]
  2009-09-10 19:16:33 [10206] [4] PANIC: 
/usr/sbin/bearerbox(route_incoming_to_boxc+0x5a) [0x805434a]
  2009-09-10 19:16:33 [10206] [4] PANIC: 
/usr/sbin/bearerbox(bb_smscconn_receive+0x339) [0x8059c59]
  2009-09-10 19:16:33 [10206] [4] PANIC: /usr/sbin/bearerbox [0x8082d12]
  2009-09-10 19:16:33 [10206] [4] PANIC: /usr/sbin/bearerbox [0x8084ad9]
  2009-09-10 19:16:33 [10206] [4] PANIC: /usr/sbin/bearerbox [0x80bb4f1]
  2009-09-10 19:16:33 [10206] [4] PANIC: /lib/libpthread.so.0 [0x69349b]
  2009-09-10 19:16:33 [10206] [4] PANIC: /lib/libc.so.6(clone+0x5e) [0x5ea42e]
  2009-09-11 15:19:48 [15529] [0] INFO: Added logfile 
`/var/log/kannel/bearerbox.log' with level `1'.
  2009-09-11 15:19:48 [15529] [0] INFO: HTTP: Opening server at port 13000.
  2009-09-11 15:19:48 [15529] [0] ERROR: Missing smsbox-port variable, cannot 
start smsboxes
  2009-09-11 15:19:48 [15529] [0] INFO: Set SMS resend frequency to 60 seconds.
  2009-09-11 15:19:48 [15529] [0] INFO: SMS resend retry set to unlimited.
  2009-09-11 15:19:48 [15529] [0] INFO: DLR rerouting for smsc id <Operator1> 
disabled.
  2009-09-11 15:19:48 [15529] [0] INFO: Added logfile 
`/var/log/kannel/Operator1.log' with level `0'.
  2009-09-11 15:19:48 [15529] [0] INFO: DLR rerouting for smsc id <Operator2> 
disabled.
  2009-09-11 15:19:48 [15529] [0] INFO: Added logfile 
`/var/log/kannel/Operator2.log' with level `0'.
  2009-09-11 15:19:48 [15529] [0] INFO: DLR rerouting for smsc id <Operator3> 
disabled.
  2009-09-11 15:19:48 [15529] [0] INFO: Added logfile 
`/var/log/kannel/Operator3.log' with level `0'.
  2009-09-11 15:19:48 [15529] [0] INFO: Adding interface *
  2009-09-11 15:19:48 [15529] [0] ERROR: Missing wapbox-port variable, cannot 
start WAP
  2009-09-11 15:19:48 [15529] [0] INFO: ----------------------------------------
  2009-09-11 15:19:48 [15529] [0] INFO: Kannel bearerbox II version 1.4.1 
starting
  2009-09-11 15:19:48 [15529] [4] INFO: Logging thread `4' to logfile 
`/var/log/kannel/Operator1.log' with level `0'.
  2009-09-11 15:19:48 [15529] [5] INFO: Logging thread `5' to logfile 
`/var/log/kannel/Operator2.log' with level `0'.
  2009-09-11 15:19:48 [15529] [6] INFO: Logging thread `6' to logfile 
`/var/log/kannel/Operator3.log' with level `0'.
  2009-09-11 15:19:48 [15529] [0] INFO: MAIN: Start-up done, entering mainloop

  smsbox log 

  2009-09-10 19:16:09 [10222] [0] DEBUG: 
----------------------------------------------
  2009-09-10 19:16:09 [10222] [0] DEBUG: Kannel smsbox version 1.4.1 starting
  2009-09-10 19:16:09 [10222] [0] DEBUG: Started thread 4 
(gw/smsbox.c:obey_request_thread)
  2009-09-10 19:16:09 [10222] [0] DEBUG: Started thread 5 
(gw/smsbox.c:url_result_thread)
  2009-09-10 19:16:09 [10222] [0] DEBUG: Started thread 6 
(gw/smsbox.c:http_queue_thread)
  2009-09-10 19:16:09 [10222] [0] ERROR: connect failed
  2009-09-10 19:16:09 [10222] [0] ERROR: System error 111: Connection refused
  2009-09-10 19:16:09 [10222] [0] ERROR: error connecting to server `localhost' 
at port `13001'
  2009-09-10 19:16:09 [10222] [0] PANIC: Couldn't connect to the bearerbox.
  2009-09-10 19:16:09 [10222] [0] PANIC: /usr/sbin/smsbox(gw_panic+0x107) 
[0x8086e37]
  2009-09-10 19:16:09 [10222] [0] PANIC: /usr/sbin/smsbox(main+0xf0a) 
[0x805399a]
  2009-09-10 19:16:09 [10222] [0] PANIC: /lib/libc.so.6(__libc_start_main+0xdc) 
[0x52ee8c]
  2009-09-10 19:16:09 [10222] [0] PANIC: /usr/sbin/smsbox [0x80522d1]
  2009-09-11 15:19:48 [15546] [0] INFO: Added logfile 
`/var/log/kannel/smsbox.log' with level `0'.
  2009-09-11 15:19:48 [15546] [0] INFO: Service global sender set as '19191'
  2009-09-11 15:19:48 [15546] [0] INFO: Logging accesses to 
'/var/log/kannel/access.log'.
  2009-09-11 15:19:48 [15546] [0] INFO: Started access logfile 
`/var/log/kannel/access.log'.
  2009-09-11 15:19:48 [15546] [0] INFO: HTTP: Opening server at port 13013.
  2009-09-11 15:19:48 [15546] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)
  2009-09-11 15:19:48 [15546] [0] DEBUG: Started thread 2 
(gwlib/http.c:server_thread)
  2009-09-11 15:19:48 [15546] [0] INFO: Set up send sms service at port 13013
  2009-09-11 15:19:48 [15546] [0] DEBUG: Started thread 3 
(gw/smsbox.c:sendsms_thread)
  2009-09-11 15:19:48 [15546] [0] DEBUG: 
----------------------------------------------
  2009-09-11 15:19:48 [15546] [0] DEBUG: Kannel smsbox version 1.4.1 starting
  2009-09-11 15:19:48 [15546] [0] DEBUG: Started thread 4 
(gw/smsbox.c:obey_request_thread)
  2009-09-11 15:19:48 [15546] [0] DEBUG: Started thread 5 
(gw/smsbox.c:url_result_thread)
  2009-09-11 15:19:48 [15546] [0] DEBUG: Started thread 6 
(gw/smsbox.c:http_queue_thread)
  2009-09-11 15:19:48 [15546] [0] ERROR: connect failed
  2009-09-11 15:19:48 [15546] [0] ERROR: System error 111: Connection refused
  2009-09-11 15:19:48 [15546] [0] ERROR: error connecting to server `localhost' 
at port `13001'
  2009-09-11 15:19:48 [15546] [0] PANIC: Couldn't connect to the bearerbox.
  2009-09-11 15:19:48 [15546] [0] PANIC: /usr/sbin/smsbox(gw_panic+0x107) 
[0x8086e37]
  2009-09-11 15:19:48 [15546] [0] PANIC: /usr/sbin/smsbox(main+0xf0a) 
[0x805399a]
  2009-09-11 15:19:48 [15546] [0] PANIC: /lib/libc.so.6(__libc_start_main+0xdc) 
[0x52ee8c]
  2009-09-11 15:19:48 [15546] [0] PANIC: /usr/sbin/smsbox [0x80522d1]



------------------------------------------------------------------------------
  From: Alvaro Cornejo <[email protected]>
  To: karl alexander <[email protected]>
  Cc: [email protected]
  Sent: Thursday, September 10, 2009 4:18:30 PM
  Subject: Re: Multiple SMS Center To Web Application

  Logs??


  
|-----------------------------------------------------------------------------------------------------------------|
  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 Thu, Sep 10, 2009 at 6:31 AM, karl alexander
  <[email protected]> wrote:
  > No it's not working.I send sms I saw the message on the log file.
  > But Kannel did not send my web application.
  > Application works fine when I'm using browser.
  > I don't know where I'm wrong.
  >
  > Is there any suggestion or alternative solution for this case ?
  >
  > ________________________________
  > From: Alvaro Cornejo <[email protected]>
  > To: karl alexander <[email protected]>
  > Cc: [email protected]
  > Sent: Thursday, September 10, 2009 2:49:03 AM
  > Subject: Re: Multiple SMS Center To Web Application
  >
  > Yes, it should work
  >
  > On Wed, Sep 9, 2009 at 5:00 PM, karl
  > alexander<[email protected]> wrote:
  >> I added to configuration
  >>
  >>
  >> # SERVICES
  >> group = sms-service
  >> keyword = default
  >> catch-all = yes
  >> get-url =
  >> "http://118.69.206.98/test.php?smsvendor=kannel&from=%P&to=%p&text=%b";
  >> assume-plain-text = true
  >> max-messages = 3
  >>
  >> Is that all ?
  >>
  >>
  >> ________________________________
  >> From: Alvaro Cornejo <[email protected]>
  >> To: karl alexander <[email protected]>
  >> Cc: [email protected]
  >> Sent: Thursday, September 10, 2009 12:49:33 AM
  >> Subject: Re: Multiple SMS Center To Web Application
  >>
  >> Just add in your sms-service the get-url kannel should call. You can
  >> add any of the available informaton kannel provides.
  >>
  >> Check manual for details
  >>
  >> 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 Wed, Sep 9, 2009 at 4:39 PM, karl
  >> alexander<[email protected]> wrote:
  >>> Hi ... Here is my configuration file.
  >>>
  >>> # Default kannel configuration file
  >>> group = core
  >>> admin-port = 13000
  >>> admin-password = nosurrender
  >>> status-password = nosurrender
  >>> admin-deny-ip = "*.*.*.*"
  >>> admin-allow-ip = "127.0.0.1"
  >>> #smsbox-port = 13001
  >>> #wapbox-port = 13002
  >>> box-deny-ip = "*.*.*.*"
  >>> box-allow-ip = "127.0.0.1"
  >>> wdp-interface-name = "*"
  >>> log-file = "/var/log/kannel/bearerbox.log"
  >>> log-level = 1
  >>>
  >>> # SMSC CONNECTIONS
  >>> group = smsc
  >>> smsc = smpp
  >>> smsc-id = op1
  >>> #host = ip
  >>> host = "203.162.21.178"
  >>> port = 8000
  >>> #receive-port = 8000
  >>> transceiver-mode = true
  >>> smsc-username = "gpc360"
  >>> smsc-password = gpc360
  >>> system-type = "GEN"
  >>> #address-range = "8x91"
  >>> interface-version = "0x34"
  >>> source-addr-ton = 2
  >>> source-addr-npi = 1
  >>> dest-addr-ton = 1
  >>> dest-addr-npi = 1
  >>> log-file = "/var/log/kannel/Vinaphone.log"
  >>>
  >>>
  >>> # SMSC CONNECTIONS
  >>> #************************************************
  >>> group = smsc
  >>> smsc = smpp
  >>> smsc-id = op2
  >>> #host = ip
  >>> host = "192.168.230.32"
  >>> receive-port = 5020
  >>> transceiver-mode = false
  >>> smsc-username = "life"
  >>> smsc-password = 070918
  >>> system-type = "GEN"
  >>> address-range = "8x91"
  >>> interface-version = "0x34"
  >>> source-addr-ton = 2
  >>> source-addr-npi = 1
  >>> dest-addr-ton = 1
  >>> dest-addr-npi = 1
  >>> log-file = "/var/log/kannel/Viettel.log"
  >>>
  >>>
  >>> # SMSC CONNECTIONS
  >>> #----------------------------------------------#
  >>>
  >>> group = smsc
  >>> smsc = smpp
  >>> smsc-id = Op3
  >>> #host = ip
  >>> host = "192.168.99.9"
  >>> receive-port = 6200
  >>> transceiver-mode = false
  >>> smsc-username = "random"
  >>> smsc-password = random
  >>> system-type = "GEN"
  >>> address-range = "8x91"
  >>> source-addr-ton = 2
  >>> source-addr-npi = 1
  >>> dest-addr-ton = 1
  >>> dest-addr-npi = 1
  >>> log-file = "/var/log/kannel/Mobilphone.log"
  >>>
  >>>
  >>> # SMSBOX SETUP
  >>>
  >>> group = smsbox
  >>> bearerbox-host = localhost
  >>> sendsms-port = 13013
  >>> global-sender = 19191
  >>> sendsms-chars = "Test Sms +-"
  >>> log-file = "/var/log/kannel/smsbox.log"
  >>> log-level = 0
  >>> access-log = "/var/log/kannel/access.log"
  >>>
  >>>
  >>> # SEND-SMS USERS
  >>>
  >>> group = sendsms-user
  >>> username = karl
  >>> password = nosurrender
  >>> #user-deny-ip = ""
  >>> user-allow-ip = "*.*.*.*"
  >>>
  >>> # SERVICES
  >>> # there should be default always
  >>> group = sms-service
  >>> keyword = default
  >>> text = "No services specified 4 this dude"
  >>>
  >>>
  >>> Now I want to redirect all sms from our smsc to my application (http
  >>> url).How can I do that ?
  >>>
  >>>
  >>>
  >>
  >>
  >
  >
  >
  > --
  > 
|-----------------------------------------------------------------------------------------------------------------|
  > 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
  >
  >


Reply via email to