Re: WAP gateway

2007-11-19 Thread Kudzai Gadzira
Hi

If i understand correctly for question 1 if you want the wap site to
be hosted on your own machine you will need a web server and access it
through localhost if its on the same machine as your kannel or access
it through an ip adress if it is connected by another computer and say
if you use Apache you can store it under htdocs. If you want it to be
hosted say by web hosting company make sure they have a wap gateway.

for question 2 writing your pages from scratch is more of a likely
option. My advice is that you use XHML MP which can make your site
accessible both via web and wap, otherwise if you use WML and / HTML
you will be faced with the dilemma of updating or making changes to
your site more than just once.


On Nov 19, 2007 2:15 PM, Sriram [EMAIL PROTECTED] wrote:


 Hi All

 I am a content provider for a mobile telco. I have been using kannel as sms
 gateway for providing some content to the telco and to push messages. He now
 wants me to put up a WAP site for my brand so that his customers can browse
 my site on their cellphones. Pls note that i already have my website but its
 being hosted at a data center.

 What i would like to know :

 1. If i use Kannel as the WAP gateway do i need anything additional in terms
 of webserver etc ?
 2. will i have to write wml pages and upload wbmp images from scratch? Where
 will i be storing all these files ie under which folder ? will they be
 stored in the kannel machine itself or any other machine ?

 Pls revert

 Thanks
 Sriram




Re: Kannel and PHP

2007-11-15 Thread Kudzai Gadzira
Hi Ian,

Sorry for the late response. It's better than never right? Thanks, the
link worked. I can't believe I passed that no matter how much I read
the always helpful user-guide. Thanks

On Nov 12, 2007 1:13 PM, Iain Dooley [EMAIL PROTECTED] wrote:
 Hi Kudzai,

  I need to obtain information contained in the sms sent
  by the user as he seeks a specific service. For example if he wants
  information on a specific company in the stock exchange, I should be
  able to take that information and structure an sql query out of it.
  The second information I need is the values set in my .conf file.
  If I am running kannel how can I pass this information into my php program.
  I am using php on Apache.

 take a look at:

 http://www.kannel.org/download/1.4.1/userguide-1.4.1/userguide.html#AEN3212

 cheers

 iain




Connection reset by peer

2007-11-14 Thread Kudzai Gadzira
Hi all,


My smsbox disconnects its self from the bearerbox if there is no sms
recieved or sent for say aproximately 5 min. Is there a problem with
my installation or it has to do with kannel? The following error is
given:

ERROR: Error from reading fd 22:
ERROR: System error 104: Connection reset by peer


Regards,

Below is my .conf file





# This is the core group (bearerbox which is essentially the heart of Kannel)


group = core
admin-port = 13000
admin-password = bar
smsbox-port = 13001
log-file = /tmp/mobile_companion.log
#log-level = 0
box-deny-ip = *.*.*.*
box-allow-ip = 127.0.0.1


# This is the SMSC group(s). This routes sms requests to/from users to Kannel


# Fake smsc

group = smsc
smsc = fake
smsc-id = FAKE
preferred-smsc-id = mobile_companion
port = 1
sms-center = 125
connect-allow-ip = 127.0.0.1



group = smsc
smsc = at
smsc-id = mobile_companion
my-number = my_num
sms-center = my_sca
modemtype = Motorola
device = /dev/com8
sim-buffering = true
speed = 115200
connect-allow-ip = 127.0.0.1
log-level = 0

include = /usr/tmp/kannel/modems.conf


# This is the SMSbox group configuration

group = smsbox
bearerbox-host = localhost
smsbox-id = box1
sendsms-port = 13013
global-sender = Mobile Companion
log-level = 0


# sms box route

group = smsbox-route
smsbox-id = box1
smsc-ids = mobile_companion; FAKE


# SERVICES

group = sms-service
keyword = nop
max-messages = 10
catch-all = yes
#post-url = http://localhost/%S.wml;
accept-x-kannel-headers = true
concatenation = true
text = Mobile Companion!
get-url = http://localhost/%s.php/sms?phone=%ptext=%a;


# there should be default always

group = sms-service
keyword = default
text = No service specified


# SEND SMS USER FOR SMS PUSH

group = sendsms-user
faked-sender = 555
username = foo
password = bar
max-messages = 10
concatenation = true



Kannel and PHP

2007-11-12 Thread Kudzai Gadzira
Hi All,


I need to obtain information contained in the sms sent
by the user as he seeks a specific service. For example if he wants
information on a specific company in the stock exchange, I should be
able to take that information and structure an sql query out of it.
The second information I need is the values set in my .conf file.
If I am running kannel how can I pass this information into my php program.
I am using php on Apache.

My OS is Fedora Core.

Thanks in advance

Regards,

Kudzai



Re: Cannot start smsc. ERROR: System error 2: No such file ordirectory

2007-11-08 Thread Kudzai Gadzira
Hi

Thank you guys, finally figured out the problem. /dev/ttyUSB0 was not
a proper name so I had to use use my OS to see what port was attached
to my modem.

One other question:

How can I obtain kannel values into a php program i.e I want to use
these values for extracting queries from a database.


Regards,



Fwd: Cannot start smsc. ERROR: System error 2: No such file or directory

2007-11-06 Thread Kudzai Gadzira
-- Forwarded message --
From: Kudzai Gadzira [EMAIL PROTECTED]
Date: Nov 7, 2007 9:00 AM
Subject: Cannot start smsc. ERROR: System error 2: No such file or directory
To: users@kannel.org

Hi all,

i'm using a Motorola C261 as a gsm modem for an sms gateway but I cant start
my smsc.  When I start the bearer box i get the following error:

2007-03-07 17:48:28 [6895] [6] ERROR: System error 2: No such file or
directory
2007-03-07 17:48:28 [6895] [6] DEBUG: AT2[VSMSC]: detecting modem type
2007-03-07 17:48:28 [6895] [6] INFO: AT2[VSMSC]: opening device
2007-03-07 17:48:28 [6895] [6] ERROR: AT2[VSMSC]: open failed! ERRNO=2
2007-03-07 17:48:28 [6895] [6] ERROR System error 2: No such file or
directory


Please help.


Below is my .conf file


group = core

admin-port = 13000

admin-password = bar

smsbox-port = 13001

log-file = /tmp/mobile_companion.log

#log-level = 0

box-deny-ip = *.*.*.*

box-allow-ip = 127.0.0.1



# This is the SMSC group(s). This routes sms requests to/from users to
Kannel



# Fake smsc

#group = smsc

#smsc = fake

#smsc-id = FAKE

#preferred-smsc-id = HTTP

#port = 1

#sms-center = 125

#connect-allow-ip = 127.0.0.1



# GSM SMSC

group = smsc

smsc = at

modemtype = auto

device = /dev/ttyUSB0

speed = 9600

include = /usr/tmp/kannel/modems.conf



group = smsc

smsc = at

smsc-id = my_smsc

modemtype = Motorola

device = /dev/ttyUSB0

speed = 115200



#modems

group = modems

id = Motorola

name = Motorola

init-string = AT+CGDCONT=1

init-string = ATQ0 V1 E1 S0=0 C1 D2 +FCLASS=0

need-sleep = true

enable-mms = true

speed = 115200



# This is the SMSbox group configuration

group = smsbox

bearerbox-host = localhost

sendsms-port = 13013

global-sender = 13013

log-level = 0



# SERVICES

group = sms-service

keyword = nop

post-url = http://localhost/%S.wml http://localhost/%25S.wml

accept-x-kannel-headers = true

max-messages = 5

concatenation = true

#text = You asked nothing and I did it!

# there should be default always

group = sms-service

keyword = default

text = No service specified



# SEND SMS USER FOR SMS PUSH

group = sendsms-user

username = foo

password = bar

max-messages = 5

concatenation = true


Emulator and fake smsc

2007-09-15 Thread Kudzai Gadzira
Hi guys,

Is it possible to use fake smsc with an emulator to test sending and
reciving of sms?

Kudzai


Kannel and Apache

2007-09-05 Thread Kudzai Gadzira
Hi guys,

May someone help me on how I can basicly configure Kannel and Apache in this
case.
I want mobile users to send an sms containing a specific keyword as a
request and the wap gateway pushes a wap page in response to the request.
The other issue is I can't seem to configure Kannel to work with Apache.

Thanks


Connection Reset by Peer

2007-08-30 Thread Kudzai Gadzira
Hi all,

May someone please help me with this one. I want to set up a WAP Gateway.
First I start the bearerbox then the wapbox. The bearerbox confirms that the
wapbox has connected. But after about approximately 8 minutes the wapbox
gets disconnected from the bearerbox. Here's the logfile for the wapbox:

2007-08-31 04:15:37 [2292] [0] INFO: Added logfile `/tmp/wapbox.log' with
level `-1'.
2007-08-31 04:15:37 [2292] [0] INFO: Starting to log to file /tmp/wapbox.log
level -1
2007-08-31 04:15:37 [2292] [0] DEBUG: syslog parameter is none
2007-08-31 04:15:37 [2292] [0] INFO:

2007-08-31 04:15:37 [2292] [0] INFO: Kannel wapbox version 1.4.1 starting
up.
2007-08-31 04:15:37 [2292] [1] DEBUG: Thread 1
(wap/wsp_session.c:main_thread) maps to pid 2292.
2007-08-31 04:15:37 [2292] [0] DEBUG: Started thread 1
(wap/wsp_session.c:main_thread)
2007-08-31 04:15:37 [2292] [2] DEBUG: Thread 2 (wap/wsp_unit.c:main_thread)
maps to pid 2292.
2007-08-31 04:15:37 [2292] [0] DEBUG: Started thread 2
(wap/wsp_unit.c:main_thread)
2007-08-31 04:15:37 [2292] [3] DEBUG: Thread 3
(wap/wsp_push_client.c:main_thread) maps to pid 2292.
2007-08-31 04:15:37 [2292] [0] DEBUG: Started thread 3
(wap/wsp_push_client.c:main_thread)
2007-08-31 04:15:37 [2292] [4] DEBUG: Thread 4 (wap/timers.c:watch_timers)
maps to pid 2292.
2007-08-31 04:15:37 [2292] [0] DEBUG: Started thread 4
(wap/timers.c:watch_timers)
2007-08-31 04:15:37 [2292] [5] DEBUG: Thread 5 (wap/wtp_resp.c:main_thread)
maps to pid 2292.
2007-08-31 04:15:37 [2292] [0] DEBUG: Started thread 5
(wap/wtp_resp.c:main_thread)
2007-08-31 04:15:37 [2292] [6] DEBUG: Thread 6 (gw/wap-appl.c:main_thread)
maps to pid 2292.
2007-08-31 04:15:37 [2292] [0] DEBUG: Started thread 6 (gw/wap-
appl.c:main_thread)
2007-08-31 04:15:37 [2292] [7] DEBUG: Thread 7 (gw/wap-
appl.c:return_replies_thread) maps to pid 2292.
2007-08-31 04:15:37 [2292] [0] DEBUG: Started thread 7 (gw/wap-
appl.c:return_replies_thread)
2007-08-31 04:15:37 [2292] [0] INFO: Connected to bearerbox at
127.0.0.1port 13002.
2007-08-31 04:15:37 [2292] [8] DEBUG: Thread 8
(gw/heartbeat.c:heartbeat_thread) maps to pid 2292.
2007-08-31 04:15:37 [2292] [0] DEBUG: Started thread 8
(gw/heartbeat.c:heartbeat_thread)
2007-08-31 04:15:58 [2292] [0] ERROR: Error reading from fd 21:
2007-08-31 04:15:58 [2292] [0] ERROR: System error 104: Connection reset by
peer
2007-08-31 04:15:58 [2292] [0] ERROR: Connection to bearerbox broke.
2007-08-31 04:15:58 [2292] [0] INFO: Kannel wapbox terminating.
2007-08-31 04:16:00 [2292] [8] ERROR: Error writing 12 octets to fd 21:
2007-08-31 04:16:00 [2292] [8] ERROR: System error 104: Connection reset by
peer
2007-08-31 04:16:00 [2292] [8] ERROR: Couldn't write Msg to bearerbox.
2007-08-31 04:16:00 [2292] [8] DEBUG: Thread 8
(gw/heartbeat.c:heartbeat_thread) terminates.
2007-08-31 04:16:00 [2292] [5] DEBUG: Thread 5 (wap/wtp_resp.c:main_thread)
terminates.
2007-08-31 04:16:00 [2292] [0] DEBUG: wtp_resp_shutdown: 0 resp_machines
left
2007-08-31 04:16:00 [2292] [0] DEBUG: 0 items left in the tid cache
2007-08-31 04:16:00 [2292] [4] DEBUG: Thread 4 (wap/timers.c:watch_timers)
terminates.
2007-08-31 04:16:00 [2292] [3] DEBUG: Thread 3
(wap/wsp_push_client.c:main_thread) terminates.
2007-08-31 04:16:00 [2292] [0] DEBUG: wsp_push_client_shutdown: 0 push
client machinesleft
2007-08-31 04:16:00 [2292] [2] DEBUG: Thread 2 (wap/wsp_unit.c:main_thread)
terminates.
2007-08-31 04:16:00 [2292] [1] DEBUG: Thread 1
(wap/wsp_session.c:main_thread) terminates.
2007-08-31 04:16:00 [2292] [0] DEBUG: WSP: 0 session machines left.
2007-08-31 04:16:00 [2292] [6] DEBUG: Thread 6 (gw/wap-appl.c:main_thread)
terminates.
2007-08-31 04:16:00 [2292] [7] DEBUG: Thread 7 (gw/wap-
appl.c:return_replies_thread) terminates.
2007-08-31 04:16:00 [2292] [0] ERROR: Error writing 12 octets to fd 21:
2007-08-31 04:16:00 [2292] [0] ERROR: System error 104: Connection reset by
peer
2007-08-31 04:16:00 [2292] [0] DEBUG: Immutable octet strings: 590.

My config file:

group = core
admin-port = 13000
wapbox-port = 13002
admin-password = bar
#status-password = foo
#admin-deny-ip = 
#admin-allow-ip = 
wdp-interface-name = *
log-file = /tmp/bearerbox.log
#log-level = 0
box-deny-ip = *.*.*.*
box-allow-ip = 127.0.0.1
access-log = /tmp/access.log
#store-file = /tmp/kannel.store
#ssl-server-cert-file = cert.pem
#ssl-server-key-file = key.pem
#ssl-certkey-file = mycertandprivkeyfile.pem

group = wapbox
bearerbox-host = 127.0.0.1
log-file = /tmp/wapbox.log
log-level = 0
syslog-level = none
access-log = /tmp/wapaccess.log


Thanks in advance

Kudzai


Kannel hangs

2007-08-29 Thread Kudzai Gadzira
Hi all,

Thanks to those whhelped me with my last post.
However I've come up with a new problem. I want to set up WAP and when
I run the following command to start the
bearer box:

./bearbox -v 1 /etc/config/kannel.conf

I get the following response

2007-08-29 16:40:55 [3696] [0] INFO: Debug_1v1 = 1, log_file = none,
log_1v1 = 0
2007-08-29 16:40:55 [3696] [0] WARNING: DLR: using default 'internal'
for storage type.
2007-08-29 16:40:55 [3696] [0] INFO: HTTP: Opening server at port 13000
2007-08-29 16:40:55 [3696] [0] INFO: Adding interface *
2007-08-29 16:40:55 [3696] [0] INFO:
--
2007-08-29 16:40:55 [3696] [0] INFO: Kannel bearerbox II version 1.4.1 starting
2007-08-29 16:40:55 [3696] [0] INFO: MAIN: Start-up done, entering mainloop


After this message kannel hangs and nothing else shows. By the way I'm
using WIN XP SP2 and Cygwin.

Below is my kannel.conf that I've set up to run a WAP gateway.

#
# THIS IS THE CONFIGURATION FOR KANNEL
#

group = core
admin-port = 13000
wapbox-port = 13002
admin-password = bar
#status-password = foo
#admin-deny-ip = 
#admin-allow-ip = 
wdp-interface-name = *
#log-file = /tmp/bearerbox.log
#log-level = 0
box-deny-ip = *.*.*.*
box-allow-ip = 127.0.0.1
#access-log = /tmp/access.log
#store-file = /tmp/kannel.store
#ssl-server-cert-file = cert.pem
#ssl-server-key-file = key.pem
#ssl-certkey-file = mycertandprivkeyfile.pem

group = wapbox
bearerbox-host = 127.0.0.1
#log-file = /tmp/wapbox.log
#log-level = 0
syslog-level = none
#access-log = /tmp/wapaccess.log



Your help will be greatly appreciated.

Kudzai



Fwd: Kannel errors

2007-08-28 Thread Kudzai Gadzira
-- Forwarded message --
From: Kudzai Gadzira [EMAIL PROTECTED]
Date: Aug 29, 2007 6:58 AM
Subject: Re: Kannel errors
To: Steve Totaro [EMAIL PROTECTED]

Yes I do have my kannel.conf in /etc/kannel.conf
**
I did not edit kannel.conf, I think its using the default configuration.
**
*This is a sample of my kannel.conf. *

group = core

admin-port = 13000

admin-password = bar

#status-password = foo

#admin-deny-ip = 

#admin-allow-ip = 

#log-file = /tmp/kannel.log

#log-level = 0

#access-log = access.log

#http-proxy-host = 127.0.0.1

#http-proxy-port = 8080

#http-proxy-exceptions = 127.0.0.1

#http-proxy-username = user

#http-proxy-password = password

#ssl-certkey-file = mycertandprivkeyfile.pem

# Smsbox related

#smsbox-port = 13001

#box-deny-ip = *.*.*.*

#box-allow-ip = 127.0.0.1

#unified-prefix = 00358,0

#white-list = http://127.0.0.1/white-list.txt;

#black-list = http://127.0.0.1/black-list.txt;

#store-file = kannel.store

# Wapbox related

#wapbox-port = 13002

#udp-deny-ip = *.*.*.*

#udp-allow-ip = 127.0.0.1

#wdp-interface-name = *



# SMSC CONNECTIONS - GLOBAL FIELDS

#group = smsc

#smsc =

#smsc-id = ID

#denied-smsc-id = X;Y

#allowed-smsc-id = Z

#preferred-smsc-id = W

#allowed-prefix = 040;050

#denied-prefix = 060;070

#alt-charset =



# SMSC Nokia CIMD2

#group = smsc

#smsc = cimd2

#host =

#port =

#smsc-username =

#smsc-password =

#keepalive =

#sender-prefix =



# SMSC EMI

#group = smsc

#smsc = emi2

#smsc = emi_ip to use the old implementation

#host =

#port =

#smsc-username =

#smsc-password =

#device = /dev/

#phone =

#our-port =

#receive-port =

#connect-allow-ip =

#keepalive =

#flow-control =



# SMSC SMPP

#group = smsc

#smsc = smpp

#host =

#port =

#receive-port =

#smsc-username =

#smsc-password =

#system-type =

#address-range =



# SMSC SEMA

#group = smsc

#smsc = sema

#device = /dev/tty0

#smsc_nua = (X121 smsc address)

#home_nua = (x121 radio pad address)

#wait_report = 0/1 (0 means false, 1 means true)



# SMSC OIS

#group = smsc

#smsc = ois

#host = 103.102.101.100

#port = 1

#receive-port = 1

#ois-debug-level = 0



# SMSC GSM

#group = smsc

#smsc = at

#modemtype = wavecom | premicell | siemens | siemens-tc35 | falcom |
nokiaphone | ericsson

#device = /dev/ttyS0

#pin = 2345

#validityperiod = 167



# SMSC Fake

#group = smsc

#smsc = fake

#host =

#port =

#connect-allow-ip =



# SMSC HTTP

#group = smsc

#smsc = http

#system-type = kannel

#send-url =

#port =

#connect-allow-ip =

#username =

#password =



# SMSBOX SETUP

group = smsbox

bearerbox-host = localhost

sendsms-port = 13013

#sendsms-chars = 0123456789 +-

#global-sender = 12345

#log-file = /tmp/smsbox.log

#log-level = 0

#access-log = access.log

#white-list =

#black-list =

#reply-couldnotfetch =

#reply-couldnotrepresent =

#reply-requestfailed =

#reply-emptymessage =



# SEND-SMS USERS

group = sendsms-user

username = tester

password = foobar

#user-deny-ip = 

#user-allow-ip = 

# this sender is for Kannel relay testing (http_smsc)

group = sendsms-user

username = kannel

password = rL4y

user-deny-ip = *.*.*.*

user-allow-ip = 127.0.0.1

#name = service_kannel

#forced-smsc = ID

#default-smsc = ID

#faked-sended =

#max-messages = 1

#concatenation = 1

#split-chars =

#split-suffix =

#omit-empty =

#header =

#footer =

#allowed-prefix =

#denied-prefix =

#white-list =

#black-list =





# SMS SERVICES

#group = sms-service

#name = nothing

#keyword = nop

#aliases = noppy;niente

#text = You asked nothing and I did it!

#get-url = http://;

#post-url = http://;

#file = /tmp/

#accepted-smsc = ID

#allowed-prefix =

#denied-prefix =

#catch-all = false

#send-sender = false

#strip-keyword = false

#faked-sender =

#max-messages = 1

#accept-x-kannel-headers = false

#assume-plain-text = false

#concatenation = false

#split-chars =

#split-suffix = +

#omit-empty = true

#header =

#footer =

#prefix =

#suffix =

#white-list =

#black-list =



# SMS SERVICE GET-URL EXAMPLE

#group = sms-service

#keyword = relay

#get-url = 
http://localhost/service?phone=%ptext=%rbinary=%bsmsc=$itime=%thttp://localhost/service?phone=%25ptext=%25rbinary=%25bsmsc=$itime=%25t



# SMS SERVICE black-list

#group = sms-service

#keyword = black-list

#text = You are not alowed to use this service, Go away!



# SMS SERVICE Default

# there should be default always

group = sms-service

keyword = default

text = No service specified




On 8/28/07, Steve Totaro [EMAIL PROTECTED] wrote:

 Kudzai Gadzira wrote:
 
 
  -- Forwarded message --
  From: *Kudzai Gadzira*  [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED]
  Date: Aug 28, 2007 7:29 AM
  Subject: Kannel errors
  To: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 
  Hi all
 
  I recently installed Kanel 1.4.0 on Windows XP SP2 using Cygwin. When
  I try to run bearerbox.exe from usr/local/bin I recieve the following
  error:
 
  ERROR: fopen failed: couldn't open

Kannel errors

2007-08-27 Thread Kudzai Gadzira
-- Forwarded message --
From: Kudzai Gadzira [EMAIL PROTECTED]
Date: Aug 28, 2007 7:29 AM
Subject: Kannel errors
To: [EMAIL PROTECTED]

Hi all

I recently installed Kanel 1.4.0 on Windows XP SP2 using Cygwin. When I try
to run bearerbox.exe from usr/local/bin I recieve the following error:

ERROR: fopen failed: couldn't open 'kannel.conf'
ERROR: System error 2: No such file or directory.
PANIC: Failed to load main configuration file 'kannel.conf'. Aborting!


If I run the following command to test the bearerbox after istalling kannel

# check bearbox
$/usr/local/sbin/bearerbox -v 3 /etc/kannel.conf

I recieve the following message:

bearerbox 3740_cygtls::handle_exceptions: Error while dumping
state (probably corrupted stack)

bearerbox 3740_cygtls::handle_threadlist_exception: unhandled
exception0xC0FD at 0x610FA78F


Your help would be greatly appreciated.


*Kudzai Gadzira*
*Mobile Companion*