Also specify &smsc=<your smsc id> in your sendurl.

== Rene


-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of rgoncalves.triad
Sent: Thursday, 19 April, 2012 23:26
To: 'Semion Spivak'
Cc: [email protected]
Subject: RES: basic question on how to start sms gateway

Hi Semion! Thanks for your quick answer!

I tried to use the fakesmsc binary, but all I got is a lot of PANIC
messages, I don´t know why...

 I will use the [email protected] forum, thanks a lot !!

Br,

_____________________________
Renato A. R. Goncalves
Eng. De Integração
SÃO PAULO
DESK: +55 11 2575-6817
MOBILE: +55 11 9954-7999


-----Mensagem original-----
De: Semion Spivak [mailto:[email protected]] 
Enviada em: quinta-feira, 19 de abril de 2012 17:47
Para: Renato Augusto Rezende Gonçalves
Cc: Alvaro Cornejo; [email protected]
Assunto: Re: basic question on how to start sms gateway

Hi Renato, I'm fine, how are you?

I'm not sure this list is the right place to answer this question, it's
more related to the [email protected]

Since you already have "smsc=fake" in you config, you need to start
"fakesmsc" binary (usually comes within Kannel package). It's used for
tests and does not send any messages out, just as it name suggests. It
will connect to the bearerbox on port 10000 and will display any
messages that get to it.

If you have access to an actual SMPP server, or if you want to send
messages via modem, you need to add more "group=smsc" sections to the
config.

On 04/19/2012 11:25 PM, Renato Augusto Rezende Gonçalves wrote:
> Hi Semion, how are you?
>
> Thanks for your answer !!
>
> I used the port 13013 as you told, and looks like it worked!!
>
>
> However, I got the message bellow:
> 3: Queued for later delivery
>
> Why it was not sent and put on queue ?
>
> Could you please tell me how can I just send the message, and also how I
see the message being received in my fake smsc ?
>
> Thank you very much !!
>
> Renato.
>
>
> ________________________________________
> From: Semion Spivak [[email protected]]
> Sent: Thursday, April 19, 2012 4:41 PM
> To: Renato Augusto Rezende Gonçalves; Alvaro Cornejo
> Cc: [email protected]
> Subject: RE: basic question on how to start sms gateway
>
> Use port 13013 for sending. The one that you are trying to use belongs to
bearerbox.
> --
> Sent from my Android phone with K-9 Mail. Please excuse my brevity.
>
> "Renato Augusto Rezende
Gonçalves"<[email protected]>  wrote:
>
> Hi Alvaro! Thanks a lot for your answer.
>
> Please, if you can take a look at my scenario.
>
> Here is my kannel.conf file, I using this file to start both bearerbox and
smsbox:
>
> group = core
> admin-port = 13000
> smsbox-port = 13001
> admin-password = 123
> log-file = "/oracle/kannel_core.log"
> log-level = 0
> box-deny-ip = "*.*.*.*"
> box-allow-ip = "127.0.0.1<http://127.0.0.1>"
>
> group = smsc
> smsc = fake
> port = 10000
>
> group = smsbox
> bearerbox-host = 127.0.0.1<http://127.0.0.1>
> sendsms-port = 13013
> global-sender = 123123123123
> log-level = 0
>
> group = sendsms-user
> username = kanneluser
> password = 123
> concatenation= true
> max-messages = 10
>
> group = sms-service
> keyword = nop
> text = "You asked nothing and I did it!"
> #End of kannel.conf file
>
>
> When I start bearerbox I get this messages:
>
> [oracle@localhost gw]$ ./bearerbox
/oracle/gateway-1.4.3/scripts/kannel.conf
> 2012-04-15 08:28:47 [22967] [0] INFO: Debug_lvl = -1, log_file =<none>,
log_lvl = 0
> 2012-04-15 08:28:47 [22967] [0] WARNING: DLR: using default 'internal' for
storage type.
> 2012-04-15 08:28:47 [22967] [0] INFO: DLR using storage type: internal
> 2012-04-15 08:28:47 [22967] [0] DEBUG: Kannel bearerbox version `1.4.3'.
> Build `Apr 11 2012 23:27:32', compiler `4.1.2 20080704 (Red Hat
4.1.2-52)'.
> System Linux, release 2.6.18-308.1.1.el5, version #1 SMP Fri Feb 17
16:47:13 EST 2012, machine i686.
> Hostname localhost.localdomain, IP 127.0.0.1<http://127.0.0.1>.
> Libxml version 2.6.26.
> Using OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008.
> Compiled with MySQL 5.0.95, using MySQL 5.0.95.
> Using native malloc.
>
> 2012-04-15 08:28:47 [22967] [0] INFO: Added logfile
`/oracle/kannel_core.log' with level `0'.
> 2012-04-15 08:28:47 [22967] [0] INFO: HTTP: Opening server at port 13000.
> 2012-04-15 08:28:47 [22967] [0] DEBUG: Started thread 1
(gwlib/fdset.c:poller)
> 2012-04-15 08:28:47 [22967] [0] DEBUG: Started thread 2
(gwlib/http.c:server_thread)
> 2012-04-15 08:28:47 [22967] [0] DEBUG: Started thread 3
(gw/bb_http.c:httpadmin_run)
> 2012-04-15 08:28:47 [22967] [0] DEBUG: starting smsbox connection module
> 2012-04-15 08:28:47 [22967] [0] INFO: BOXC: 'smsbox-max-pending' not set,
using default (100).
> 2012-04-15 08:28:47 [22967] [0] DEBUG: Started thread 4
(gw/bb_boxc.c:sms_to_smsboxes)
> 2012-04-15 08:28:47 [22967] [0] DEBUG: Started thread 5
(gw/bb_boxc.c:smsboxc_run)
> 2012-04-15 08:28:47 [22967] [0] INFO: Set SMS resend frequency to 60
seconds.
> 2012-04-15 08:28:47 [22967] [0] INFO: SMS resend retry set to unlimited.
> 2012-04-15 08:28:47 [22967] [0] DEBUG: smsbox MO concatenated message
handling enabled
> 2012-04-15 08:28:47 [22967] [0] INFO: DLR rerouting for smsc id<(null)>
disabled.
> 2012-04-15 08:28:47 [22967] [0] DEBUG: Started thread 6
(gw/smsc/smsc_fake.c:fake_listener)
> 2012-04-15 08:28:47 [22967] [0] DEBUG: Started thread 7
(gw/bb_smscconn.c:sms_router)
> 2012-04-15 08:28:47 [22967] [0] INFO:
> ________________________________
>
> 2012-04-15 08:28:47 [22967] [0] INFO: Kannel bearerbox II version 1.4.3
starting
> 2012-04-15 08:28:47 [22967] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller)
maps to pid 22967.
> 2012-04-15 08:28:47 [22967] [2] DEBUG: Thread 2
(gwlib/http.c:server_thread) maps to pid 22967.
> 2012-04-15 08:28:47 [22967] [3] DEBUG: Thread 3
(gw/bb_http.c:httpadmin_run) maps to pid 22967.
> 2012-04-15 08:28:47 [22967] [4] DEBUG: Thread 4
(gw/bb_boxc.c:sms_to_smsboxes) maps to pid 22967.
> 2012-04-15 08:28:47 [22967] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run)
maps to pid 22967.
> 2012-04-15 08:28:47 [22967] [6] DEBUG: Thread 6
(gw/smsc/smsc_fake.c:fake_listener) maps to pid 22967.
> 2012-04-15 08:28:47 [22967] [0] INFO: MAIN: Start-up done, entering
mainloop
> 2012-04-15 08:28:47 [22967] [0] DEBUG: smsc_fake: start called
> 2012-04-15 08:28:47 [22967] [7] DEBUG: Thread 7
(gw/bb_smscconn.c:sms_router) maps to pid 22967.
>
>
> When I start smsbox I get this messages:
>
> [oracle@localhost gw]$ ./smsbox /oracle/gateway-1.4.3/scripts/kannel.conf
> 2012-04-15 08:30:27 [22980] [0] INFO: Debug_lvl = -1, log_file =<none>,
log_lvl = 0
> 2012-04-15 08:30:27 [22980] [0] DEBUG: Kannel smsbox version `1.4.3'.
> Build `Apr 11 2012 23:27:32', compiler `4.1.2 20080704 (Red Hat
4.1.2-52)'.
> System Linux, release 2.6.18-308.1.1.el5, version #1 SMP Fri Feb 17
16:47:13 EST 2012, machine i686.
> Hostname localhost.localdomain, IP 127.0.0.1<http://127.0.0.1>.
> Libxml version 2.6.26.
> Using OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008.
> Compiled with MySQL 5.0.95, using MySQL 5.0.95.
> Using native malloc.
>
> 2012-04-15 08:30:27 [22980] [0] INFO: Service global sender set as
'123123123123'
> 2012-04-15 08:30:27 [22980] [0] INFO: HTTP: Opening server at port 13013.
> 2012-04-15 08:30:27 [22980] [0] DEBUG: Started thread 1
(gwlib/fdset.c:poller)
> 2012-04-15 08:30:27 [22980] [0] DEBUG: Started thread 2
(gwlib/http.c:server_thread)
> 2012-04-15 08:30:27 [22980] [0] INFO: Set up send sms service at port
13013
> 2012-04-15 08:30:27 [22980] [0] DEBUG: Started thread 3
(gw/smsbox.c:sendsms_thread)
> 2012-04-15 08:30:27 [22980] [0] DEBUG:
> ________________________________
>
> 2012-04-15 08:30:27 [22980] [0] DEBUG: Kannel smsbox version 1.4.3
starting
> 2012-04-15 08:30:27 [22980] [0] DEBUG:   dumping group (sendsms-user):
> 2012-04-15 08:30:27 [22980] [0] DEBUG:<group>  =<sendsms-user>
> 2012-04-15 08:30:27 [22980] [0] DEBUG:<max-messages>  =<10>
> 2012-04-15 08:30:27 [22980] [0] DEBUG:<username>  =<kanneluser>
> 2012-04-15 08:30:27 [22980] [0] DEBUG:<concatenation>  =<true>
> 2012-04-15 08:30:27 [22980] [0] DEBUG:<password>  =<123>
> 2012-04-15 08:30:27 [22980] [0] DEBUG: Started thread 4
(gw/smsbox.c:obey_request_thread)
> 2012-04-15 08:30:27 [22980] [0] DEBUG: Started thread 5
(gw/smsbox.c:url_result_thread)
> 2012-04-15 08:30:27 [22980] [0] DEBUG: Started thread 6
(gw/smsbox.c:http_queue_thread)
> 2012-04-15 08:30:27 [22980] [0] INFO: Connected to bearerbox at
127.0.0.1<http://127.0.0.1>  port 13001.
> 2012-04-15 08:30:27 [22980] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller)
maps to pid 22980.
> 2012-04-15 08:30:27 [22980] [2] DEBUG: Thread 2
(gwlib/http.c:server_thread) maps to pid 22980.
> 2012-04-15 08:30:27 [22980] [3] DEBUG: Thread 3
(gw/smsbox.c:sendsms_thread) maps to pid 22980.
> 2012-04-15 08:30:27 [22980] [4] DEBUG: Thread 4
(gw/smsbox.c:obey_request_thread) maps to pid 22980.
> 2012-04-15 08:30:27 [22980] [5] DEBUG: Thread 5
(gw/smsbox.c:url_result_thread) maps to pid 22980.
> 2012-04-15 08:30:27 [22980] [0] DEBUG: Started thread 7
(gw/heartbeat.c:heartbeat_thread)
> 2012-04-15 08:30:27 [22980] [6] DEBUG: Thread 6
(gw/smsbox.c:http_queue_thread) maps to pid 22980.
> 2012-04-15 08:30:27 [22980] [7] DEBUG: Thread 7
(gw/heartbeat.c:heartbeat_thread) maps to pid 22980.
>
>
>
> At this point, if I open my browser with the URL:
> http://localhost:13000/status
>
> I see this message:
>
> Kannel bearerbox version `1.4.3'. Build `Apr 11 2012 23:27:32', compiler
`4.1.2 20080704 (Red Hat 4.1.2-52)'. System Linux, release
2.6.18-308.1.1.el5, version #1 SMP Fri Feb 17 16:47:13 EST 2012, machine
i686. Hostname localhost.localdomain, IP 127.0.0.1<http://127.0.0.1>. Libxml
version 2.6.26. Using OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008. Compiled with
MySQL 5.0.95, using MySQL 5.0.95. Using native malloc.
>
> Status: running, uptime 0d 0h 2m 55s
>
> WDP: received 0 (0 queued), sent 0 (0 queued)
>
> SMS: received 0 (0 queued), sent 0 (0 queued), store size -1
>
> SMS: inbound (0.00,0.00,0.00) msg/sec, outbound (0.00,0.00,0.00) msg/sec
>
> DLR: 0 queued, using internal storage
>
> Box connections:
>      smsbox:(none), IP 127.0.0.1<http://127.0.0.1>  (0 queued), (on-line
0d 0h 1m 15s)
>
> SMSC connections:
>      unknown    FAKE:10000 (connecting, rcvd 0, sent 0, failed 0, queued 0
msgs)
>
>
>
> So far, so good. Everything seems to be working fine.
>
> Then I try to send a SMS using the URL:
>
http://localhost:13001/cgi-bin/sendsms?username=kanneluser&password=123&to=0
123456&text=Hello+world
>
> But nothing happens when I request the URL, the browser keeps
"connecting..." and the server status does not change.
>
> Please, what am I doing wrong?
>
> How can I send a test SMS??
>
> Thanks a lot !!!
>
> Renato.
>
>
> ________________________________
>
> From: Alvaro Cornejo [[email protected]]
> Sent: Thursday, April 19, 2012 2:30 PM
> To: Renato Augusto Rezende Gonçalves
> Cc: [email protected]
> Subject: Re: basic question on how to start sms gateway
>
> Yes, you need to start each service. You will can use the same config
> file for smsbox, bearerbox and wapbox
>
> Also you need to always start bearerbox first and the either smsbox or
> wapbox or only one of this last two.
>
> Check contrib folder. There are init scripts you can use to have them
> start at system boot as a service.
>
> Hope helps
>
> Alvaro
>
> On 4/19/12, rgoncalves.triad<[email protected]>
wrote:
>> Hi all, how are you?
>>
>>
>>
>> I´m newbie to Kannel, this is my first message to the group.
>>
>>
>>
>> I have installed kannel 1.4.3 on a red hat 5.7 enterprise linux.
>>
>>
>>
>> After read the documentation and several blogs I still in doubt on how to
>> start the sms gateway.
>>
>>
>>
>> Here is my doubt:
>>
>>
>>
>> To use the SMS gateway do I need to launch bearerbox AND smsbox? Each one
>> with its own configuration file?
>>
>>
>>
>> Please help me to clarify this, so I will be able to focus my work in the
>> correct way to start and make a configuration file.
>>
>>
>>
>> Thanks a lot !
>>
>>
>>
>> _____________________________
>>
>> Renato A. R. Goncalves
>>
>> Eng. De Integração
>>
>> SÃO PAULO
>>
>> DESK: +55 11 2575-6817
>>
>> MOBILE: +55 11 9954-7999
>>
>>
>>
>>
>>
>> </PRE>
>> <p align="justify">
>> <font face=verdana size=-2 color=#969696><hr>
>> O emitente desta mensagem é responsável por seu conteúdo e endereçamento.
>> Cabe  ao destinatário  cuidar quanto ao tratamento adequado. Sem a devida
>> autorização, a divulgação, a reprodução, a distribuição ou qualquer outra
>> ação em desconformidade com as normas internas da VALID  são proibidas e
>> passíveis de sanção disciplinar, cível e criminal.
>> <br><br><br>
>> The sender of this message is responsible for its content and addressing.
>> The receiver shall take proper care of it. Without due authorization, the
>> publication, reproduction, distribution or the  performance of  any other
>> action  not conforming  to VALID  internal  policies  and  procedures is
>> forbidden and liable to disciplinary, civil or criminal  sanctions.
>> </font>
>> </p>
>> <P></P><PRE>
>>
>
>
> --
> |
> ________________________________
> |
> 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<http://www.smsglobal.com.mx>  y
> www.pravcom.com<http://www.pravcom.com>
>
>

--
Regards,
Semion Spivak
SmsCoin.com Technical support.





Reply via email to