After some more testing on the phone, I found out that it is cactus!

The search continues for a working mobile phone.

Phillip Lucs

>> Hi to the group,
>>
>> I am not able to send SMSs yet. I have read through the archives and
>> user-guide and have constructed a suitable configuration file.
>>
>> I built kannel from source.
>>
>> I am using a Nokia 6310 as a virtual SMSC.
>>
>> The configuration file is:
>>
>> group = core
>> admin-port = 13000
>> smsbox-port = 13001
>> admin-password = phillip
>> log-file = "/var/log/kannel/phil_bearerbox.log"
>> log-level = 0
>> access-log = "/var/log/kannel/phil_bearer-access.log"
>> box-allow-ip = "127.0.0.1"
>>
>> group = modems
>> id = nokiaphone
>> name = "Nokia Phone"
>> detect-string = "nokia"
>> speed = 9600
>>
>> group = smsc
>> smsc = at2
>> smsc-id = nok6310
>> speed = 9600
>> modemtype = nokiaphone
>> device = /dev/ttyS0
>> connect-allow-ip = "127.0.0.1"
>> sms-center = "+61411990001"
>>
>> group = smsbox
>> bearerbox-host = localhost
>> sendsms-port = 13013
>> log-file = "/var/log/kannel/phil_smsbox.log"
>> log-level = 0
>> access-log = "/var/log/kannel/phil_sms-access.log"
>>
>> group = sendsms-user
>> username = phillip
>> password = phillip
>> max-messages = 10
>> concatenation = true
>>
>> group = sms-service
>> keyword = nop
>> text = "You asked nothing and I did it!"
>> catch-all = true
>>
>> group = sms-service
>> keyword = default
>> text = "No service specified"
>>
>> group = sms-service
>> keyword = www
>> get-url = "http://%S";
>> group = sms-service
>> keyword = complex
>> get-url = "http://host/service?sender=%p&text=%r";
>> accept-x-kannel-headers = true
>> max-messages = 3
>> concatenation = true
>>
>> I'm started kannel from the command line.
>>
>> bearerbox -v 0 /etc/kannel/kannel.conf
>>
>> where kannel.conf is the configuration file.
>>
>> The output i am getting when starting the bearerbox is:
>>
>> 2004-02-24 02:13:57 [0] INFO: Debug_lvl = 0, log_file = <none>, log_lvl
>> =
>> 0
>> 2004-02-24 02:13:57 [0] WARNING: DLR: using default 'internal' for
>> storage
>> type.
>> 2004-02-24 02:13:57 [0] DEBUG: Kannel bearerbox version `1.2.1'.
>> System Linux, release 2.2.20-idepci, version #1 Sat Apr 20 12:45:19 EST
>> 2002, machine i686.
>> Hostname fenris.valhalla.com, IP 192.168.1.2.
>> Libxml version 20419.
>> Using native malloc.
>>
>> 2004-02-24 02:13:57 [0] INFO: Added logfile
>> `/var/log/kannel/phil_bearerbox.log' with level `0'.
>> 2004-02-24 02:13:57 [0] INFO: Started access logfile
>> `/var/log/kannel/phil_bearer-access.log'.
>> 2004-02-24 02:13:57 [0] INFO: SSL not supported, no SSL initialization
>> done.
>> 2004-02-24 02:13:57 [0] DEBUG: HTTP: Opening server at port 13000.
>> 2004-02-24 02:13:57 [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)
>> 2004-02-24 02:13:57 [0] DEBUG: Started thread 2
>> (gwlib/http.c:server_thread)
>> 2004-02-24 02:13:57 [0] DEBUG: Started thread 3
>> (gw/bb_http.c:httpadmin_run)
>> 2004-02-24 02:13:57 [0] DEBUG: starting smsbox connection module
>> 2004-02-24 02:13:57 [0] DEBUG: Started thread 4
>> (gw/bb_boxc.c:smsboxc_run)
>> 2004-02-24 02:13:57 [0] INFO: AT2[nok6310]: configuration shows
>> modemtype
>> <nokiaphone>
>> 2004-02-24 02:13:57 [0] DEBUG: AT2[nok6310]: Reading modem definitions
>> from </etc>
>> 2004-02-24 02:13:57 [0] DEBUG: AT2[nok6310]: Found <1> modems in config
>> 2004-02-24 02:13:57 [0] INFO: AT2[nok6310]: read modem definition for
>> <Nokia Phone>
>> 2004-02-24 02:13:57 [0] DEBUG: Started thread 5
>> (gw/smsc/smsc_at2.c:at2_device_thread)
>> 2004-02-24 02:13:57 [0] DEBUG: Started thread 6
>> (gw/bb_smscconn.c:sms_router)
>> 2004-02-24 02:13:57 [0] INFO: ----------------------------------------
>> 2004-02-24 02:13:57 [0] INFO: Kannel bearerbox II version 1.2.1 starting
>> 2004-02-24 02:13:57 [0] INFO: MAIN: Start-up done, entering mainloop
>> 2004-02-24 02:13:57 [0] DEBUG: AT2[nok6310]: start called
>> 2004-02-24 02:13:57 [5] INFO: AT2[nok6310]: opening device
>> 2004-02-24 02:13:57 [5] DEBUG: AT2[nok6310]: device opened
>> 2004-02-24 02:13:57 [6] DEBUG: sms_router: time to sleep
>> 2004-02-24 02:13:57 [6] DEBUG: sms_router: list_len = 0
>> 2004-02-24 02:13:58 [5] DEBUG: AT2[nok6310]: device opened
>> 2004-02-24 02:13:58 [5] INFO: AT2[nok6310]: init device
>> 2004-02-24 02:13:58 [5] INFO: AT2[nok6310]: speed set to 9600
>> 2004-02-24 02:13:58 [5] DEBUG: AT2[nok6310]: --> AT^M
>>
>> I find this worrying that execution of the bearerbox command ends here.
>> There is only one AT^M command, should there be more communication
>> between
>> the 6310 and kannel?
>>
>> I get the following when i try to send an sms through my browser using
>> the
>> following command
>> http://smsbox.host.name:13001/cgi-bin/sendsms?username=phillip&password=phillip&to=0404042346&text=Hello+world
>>
>> 2004-02-24 02:16:32 [4] DEBUG: Started thread 7 (gw/bb_boxc.c:function)
>> 2004-02-24 02:16:32 [7] INFO: Client connected from <192.168.1.30>
>> 2004-02-24 02:16:32 [7] DEBUG: Started thread 8
>> (gw/bb_boxc.c:boxc_sender)
>>
>> However, the browser does nothing. It just cycles. I have repeated the
>> same through lynx at the command line.
>>
>> Some help or ideas would be really appreciated.
>>
>> Regards,
>> Phillip Lucs
>>
>>
>
>


Reply via email to