keyword-regex and matching spaces

2007-08-31 Thread Aaron Simmons
I've run into a problem with keyword-regexp and matching spaces.
Kannel won't match spaces.  Though it doesn't appear to be documented
(clearly?) in the Kannel User's Guide, its mentioned a couple times on
this mailing list.

My question is: why?  Does Kannel throw out everything past the first
space and only feed the first word to the regexp engine?  I understand
that the sms-service feature is designed to facilitate single-keyword
matching, but still...this seems like an arbitrary limitation.

For any kind of semi-complex patterns, the user has to send the sms
off to a program that can handle regex's with spaces.  Its doable, but
its a pain.  I'd rather have all of my logic in the conf file and not
split between the conf file and some other scripts.



Thanks,
aaron



RE: Unicode Problem

2007-08-31 Thread Peter Lum
Hi Seik

Yes, you are right. It is just a config setting in the kannel.conf file.
Just set mo-recode to true and everything is fine now.

Thank you so much!!!

Peter 

-Original Message-
From: seik [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 29, 2007 8:48 PM
To: Peter Lum
Cc: users@kannel.org
Subject: Re: Unicode Problem

hi Peter,

first, do NOT urldecode the text, its ummm ... non needed
:)
 
next,
it ups to how you set the smsc type and settings do you use gsm modem or
smpp link ?



cheers

seik



-Original Message-
From: Peter Lum [EMAIL PROTECTED]
Sent: 29 Август 2007 г.
To: seik
Subject:Unicode Problem 

 Hi
  
 I set up Kannel to to a http get whenever a sms arrives at the smsbox.
 However, if I sent unicode characters from my phone, what I eventually
store in my MySQL is junk.
  
 Is the line below ok to retrieve the message:
  
   $rcvMessage = $_GET[text];
   $SQL_rcvMessage = iconv(windows-1252, utf-8, urldecode 
 ($rcvMessage) );
  
 whenI store into the database, I use values like
  
 _utf8' . addslashes($SQL_rcvMessage) . '
  
 What part did I do wrong here?
  
 PS: I also tried
 $SQL_rcvMessage = iconv(ucs-2, utf-8, urldecode ($rcvMessage) );






How to Stop/Start Kannel using a script

2007-08-31 Thread Hillel
Hi Stephane and Kannel Users,

Stephane we have been using your great script below as /etc/init.d/kannel
for a while now on Centos. Thanks for providing a great script to work with.


About a month ago, we moved to the latest CVS and now we can only stop the
wapbox and sometimes the smsbox with it, but to stop the bearerbox we need
to always stop it manually. (The actual configurations we use are stored in
/etc/configurations and this is reflected in the script below.)

Any advice appreciated.

[gateway]#  ps -auxwww|grep kannel
kannel   28660  0.0  0.0  8076 1420 ?Ss   18:49   0:00
/usr/local/sbin/bearerbox --daemonize --parachute --user kannel --pid-file
/var/run/kannel/bearerbox.pid -- /etc/kannel.conf
kannel   28661  0.0  0.1 285432 3456 ?   Sl   18:49   0:00
/usr/local/sbin/bearerbox --daemonize --parachute --user kannel --pid-file
/var/run/kannel/bearerbox.pid -- /etc/kannel.conf
kannel   28690  0.0  0.0  9124 1428 ?Ss   18:49   0:00
/usr/local/sbin/smsbox --daemonize --parachute --user kannel --pid-file
/var/run/kannel/smsbox.pid -- /etc/kannel.conf
kannel   28691  0.0  0.1 102080 2764 ?   Sl   18:49   0:00
/usr/local/sbin/smsbox --daemonize --parachute --user kannel --pid-file
/var/run/kannel/smsbox.pid -- /etc/kannel.conf
kannel   28704  0.0  0.0  9260 1424 ?Ss   18:49   0:00
/usr/local/sbin/wapbox --daemonize --parachute --user kannel --pid-file
/var/run/kannel/wapbox.pid -- /etc/kannel.conf
kannel   28705  0.0  0.1 163812 2892 ?   Sl   18:49   0:00
/usr/local/sbin/wapbox --daemonize --parachute --user kannel --pid-file
/var/run/kannel/wapbox.pid -- /etc/kannel.conf

After running: [gateway]# service kannel stop
Shutting down Mobile Gateway cvs-20070826: [  OK  ]

[gateway]# ps -auxwww|grep kannel
kannel   28661  0.0  0.1 121528 3284 ?   Sl   18:49   0:00
/usr/local/sbin/bearerbox --daemonize --parachute --user kannel --pid-file
/var/run/kannel/bearerbox.pid -- /etc/kannel.conf
kannel   28690  0.0  0.0  9124 1428 ?Ss   18:49   0:00
/usr/local/sbin/smsbox --daemonize --parachute --user kannel --pid-file
/var/run/kannel/smsbox.pid -- /etc/kannel.conf
kannel   28691  0.0  0.1 102080 2764 ?   Sl   18:49   0:00
/usr/local/sbin/smsbox --daemonize --parachute --user kannel --pid-file
/var/run/kannel/smsbox.pid -- /etc/kannel.conf

[gateway]# service kannel status
bearerbox (pid 28661) is running...
smsbox is stopped
wapbox is stopped

You need to manually kill the bearerbox!

[gateway]# kill -9 28661
[gateway]# service kannel status
bearerbox is stopped
smsbox is stopped
wapbox is stopped


--
#  This shell script takes care of starting and stopping
#  the Kannel SMS  WAP gateway
#  Original version Fabrice Gatille [EMAIL PROTECTED]
#  Modified by Stephane Rosa ([EMAIL PROTECTED]) for RedHat9
# chkconfig: 2345 97 03
# description: Kannel is an SMS and WAP gateway

VERSION=`/usr/local/bin/gw-config --version`
OPTIONS=--daemonize --parachute --user kannel --pid-file /var/run/kannel/
KANNELPATH=/usr/local/sbin
CONF=/etc/kannel.conf
CONFDIR=/etc/configurations

# Source function library  networking conf.
. /etc/init.d/functions
[ -f /etc/sysconfig/network ]  . /etc/sysconfig/network

# Check that we are root ... so non-root users stop here
[ `id -u` = 0 ] || exit 1

# Various other checks
[ ${NETWORKING} = yes ] || exit 0
[ -x $KANNELPATH/bearerbox ] || exit 0
[ -x $KANNELPATH/smsbox ] || exit 0
[ -x $KANNELPATH/wapbox ] || exit 0
[ -f $CONF ] || exit 0

RETVAL=0; RETVAL1=0; RETVAL2=0; RETVAL3=0
prog=Kannel

start() {
   # Check that at least one group is defined for sms
   # and/or wap to start the bearer. Then start boxes
   # as needed.
#   startsms=`egrep -se '^[ \t]*group *= *smsbox' $CONF`
#   startwap=`egrep -se '^[ \t]*group *= *wapbox' $CONF`

   startsms=`egrep -hse '^[ \t]*group *= *smsbox' $CONF ${CONFDIR}/*`
   startwap=`egrep -hse '^[ \t]*group *= *wapbox' $CONF ${CONFDIR}/*`

  if [ -n $startsms$startwap ]; then
  echo -n Starting Mobile Gateway Service 1 ($VERSION): 
  daemon /usr/local/sbin/bearerbox ${OPTIONS}bearerbox.pid -- $CONF
  RETVAL1=$?
  echo
  sleep 15
   else
  exit 0
   fi

   if [ -n $startsms ]; then
  echo -n Starting Mobile Gateway Service 2 ($VERSION): 
  daemon /usr/local/sbin/smsbox ${OPTIONS}smsbox.pid -- $CONF
  RETVAL2=$?
  echo
   fi

   if [ -n $startwap ]; then
  echo -n Starting Mobile Gateway Wap service ($VERSION): 
  daemon /usr/local/sbin/wapbox ${OPTIONS}wapbox.pid -- $CONF
  RETVAL3=$?
  echo
   fi

   let RETVAL=$REVAL1+$RETVAL2+$RETVAL3
   if [ $RETVAL -eq 0 ]; then
  sleep 2
  touch /var/lock/subsys/gateway
  cat /var/run/kannel/*.pid  /var/run/kannel.pid
   fi
   return $RETVAL
}

stop() {
   echo -n Shutting down Mobile Gateway $VERSION: 
   killproc kannel
   RETVAL=$?
   echo

if [ $RETVAL 

Re: keyword-regex and matching spaces

2007-08-31 Thread Rodrigo Cremaschi
Hello Aaron,

This seems to be kind of a philosofical discussion, but at some
point in time, you will find much easier to modify a script than to
modify the config file and restart kannel just for a minor change.

Best regards,

Rodrigo

On 8/31/07, Aaron Simmons [EMAIL PROTECTED] wrote:
 I've run into a problem with keyword-regexp and matching spaces.
 Kannel won't match spaces.  Though it doesn't appear to be documented
 (clearly?) in the Kannel User's Guide, its mentioned a couple times on
 this mailing list.

 My question is: why?  Does Kannel throw out everything past the first
 space and only feed the first word to the regexp engine?  I understand
 that the sms-service feature is designed to facilitate single-keyword
 matching, but still...this seems like an arbitrary limitation.

 For any kind of semi-complex patterns, the user has to send the sms
 off to a program that can handle regex's with spaces.  Its doable, but
 its a pain.  I'd rather have all of my logic in the conf file and not
 split between the conf file and some other scripts.



 Thanks,
 aaron





Re[2]: keyword-regex and matching spaces

2007-08-31 Thread seik
exactly

sqlbox to handle all the traffic
ONE default service and the services routing rules are applied upon db insert

much easier to implement any new service without touching kannel instance at all




-Original Message-
From: Rodrigo Cremaschi [EMAIL PROTECTED]
Sent: 31 ?? 2007 ?.
To: seik
Subject:keyword-regex and matching spaces 

 Hello Aaron,

 This seems to be kind of a philosofical discussion, but at some
 point in time, you will find much easier to modify a script than to
 modify the config file and restart kannel just for a minor change.

 Best regards,

 Rodrigo

 On 8/31/07, Aaron Simmons [EMAIL PROTECTED] wrote:
 I've run into a problem with keyword-regexp and matching spaces.
 Kannel won't match spaces.  Though it doesn't appear to be documented
 (clearly?) in the Kannel User's Guide, its mentioned a couple times on
 this mailing list.

 My question is: why?  Does Kannel throw out everything past the first
 space and only feed the first word to the regexp engine?  I understand
 that the sms-service feature is designed to facilitate single-keyword
 matching, but still...this seems like an arbitrary limitation.

 For any kind of semi-complex patterns, the user has to send the sms
 off to a program that can handle regex's with spaces.  Its doable, but
 its a pain.  I'd rather have all of my logic in the conf file and not
 split between the conf file and some other scripts.



 Thanks,
 aaron







Re: How to receive MO on an SMPP link

2007-08-31 Thread lekkie

How do I route incoming messages from SMPP Link?


Rodrigo Cremaschi wrote:
 
 In that case, you must declare transceiver-mode variable to true.
 Omit receive-port variable.
 
 Check the userguide, under SMPP 3.4 section.
 
 Regards.
 
 On 8/29/07, lekkie omotayo [EMAIL PROTECTED] wrote:
 Thanks for quick response.

 Yes, they have transceiver.

 If the operator has a transceiver connection, how can I can get the
 inbound
 messages from my operator?
 How to I set up the config?

 What if my operator only supports transmitter/Receiver connection?

 Kind regards,

 Lekkie


 On 8/29/07, Rodrigo Cremaschi [EMAIL PROTECTED] wrote:
   Could this be because of the kannel version I am using (1.4.1)?
  No
 
   Is it possible to receive SMS on SMPP connection?
  Yes, that's what Kannel is for.
 
  Are you sure your operator needs 2 connetcions Tx and Rx? Or is it a
  transceiver?
 
  On 8/29/07, lekkie [EMAIL PROTECTED]  wrote:
  
   Hi guys,
  
   I am trying to connect kannel to my mobile operator through an SMPP
   connection.
  
   However, my kannel box seem not to be listening on the receiver port
 I
   specified. It ws able to connect to my operator on the transmitter
 port,
 but
   it never listen on the specified receive-port.
  
   With some googling, I found out, I can only get a receiver connection
 by
   creating two separate SMSC configs using one as a transmitter the
 other
 as a
   receiver. I was advised to set transceiver mode to no,  set the
   receive-port option to 0 (set transmit port) if I want to transmit
 and
 set
   transmit port to 0 if I want to receive (set receive port to 2001).
 When
 I
   did this, the log file told me I had a receiver bind however, kannel
   connects to the operator's SMSC on the receiver port even though
 transmitter
   port is set to 0.
  
  
   However, when I tried setting both port to same port, I ended up
 having
 two
   connections to SMSC both connection to the operator's port while
 source
 port
   was not open
  
   However, when I tried setting both port to diff port, I ended up
 having
 one
   connection to SMSC.
  
   I am afraid my config file may be wrong.
  
   Is there a way I can do this.
  
   Do I need 1 smsc config to achieve both transmitter and receiver
 connection?
   Do I need 1 smsbox config to achieve both transmitter and receiver
   connection?
  
   Could this be because of the kannel version I am using ( 1.4.1)?
  
   Is it possible to receive SMS on SMPP connection?
  
   Thanks.
  
  
   --
   View this message in context:
 http://www.nabble.com/How-to-receive-MO-on-an-SMPP-link-tf4350019.html#a12394561
   Sent from the Kannel - User mailing list archive at Nabble.com.
  
  
  
 


 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-receive-MO-on-an-SMPP-link-tf4350019.html#a12426727
Sent from the Kannel - User mailing list archive at Nabble.com.




Re: How to receive MO on an SMPP link

2007-08-31 Thread Rodrigo Cremaschi
Hi Lekkie,

Tell us what have you done so far, and what problems have you
encountered. If you talked to the the carrier guys, what did they say?
So we can find out if Kannel, or the connection, or the SMSC has any
kind of problem.

Regards,
Rodrigo.

On 8/31/07, lekkie [EMAIL PROTECTED] wrote:

 How do I route incoming messages from SMPP Link?


 Rodrigo Cremaschi wrote:
 
  In that case, you must declare transceiver-mode variable to true.
  Omit receive-port variable.
 
  Check the userguide, under SMPP 3.4 section.
 
  Regards.
 
  On 8/29/07, lekkie omotayo [EMAIL PROTECTED] wrote:
  Thanks for quick response.
 
  Yes, they have transceiver.
 
  If the operator has a transceiver connection, how can I can get the
  inbound
  messages from my operator?
  How to I set up the config?
 
  What if my operator only supports transmitter/Receiver connection?
 
  Kind regards,
 
  Lekkie
 
 
  On 8/29/07, Rodrigo Cremaschi [EMAIL PROTECTED] wrote:
Could this be because of the kannel version I am using (1.4.1)?
   No
  
Is it possible to receive SMS on SMPP connection?
   Yes, that's what Kannel is for.
  
   Are you sure your operator needs 2 connetcions Tx and Rx? Or is it a
   transceiver?
  
   On 8/29/07, lekkie [EMAIL PROTECTED]  wrote:
   
Hi guys,
   
I am trying to connect kannel to my mobile operator through an SMPP
connection.
   
However, my kannel box seem not to be listening on the receiver port
  I
specified. It ws able to connect to my operator on the transmitter
  port,
  but
it never listen on the specified receive-port.
   
With some googling, I found out, I can only get a receiver connection
  by
creating two separate SMSC configs using one as a transmitter the
  other
  as a
receiver. I was advised to set transceiver mode to no,  set the
receive-port option to 0 (set transmit port) if I want to transmit
  and
  set
transmit port to 0 if I want to receive (set receive port to 2001).
  When
  I
did this, the log file told me I had a receiver bind however, kannel
connects to the operator's SMSC on the receiver port even though
  transmitter
port is set to 0.
   
   
However, when I tried setting both port to same port, I ended up
  having
  two
connections to SMSC both connection to the operator's port while
  source
  port
was not open
   
However, when I tried setting both port to diff port, I ended up
  having
  one
connection to SMSC.
   
I am afraid my config file may be wrong.
   
Is there a way I can do this.
   
Do I need 1 smsc config to achieve both transmitter and receiver
  connection?
Do I need 1 smsbox config to achieve both transmitter and receiver
connection?
   
Could this be because of the kannel version I am using ( 1.4.1)?
   
Is it possible to receive SMS on SMPP connection?
   
Thanks.
   
   
--
View this message in context:
  http://www.nabble.com/How-to-receive-MO-on-an-SMPP-link-tf4350019.html#a12394561
Sent from the Kannel - User mailing list archive at Nabble.com.
   
   
   
  
 
 
 
 
 

 --
 View this message in context: 
 http://www.nabble.com/How-to-receive-MO-on-an-SMPP-link-tf4350019.html#a12426727
 Sent from the Kannel - User mailing list archive at Nabble.com.






Question about MYSQL Support

2007-08-31 Thread Sarfaraz Jamal
Hi

We are installing kannel on windows, and wish to use a MYSQL Server on
another server (not the localhost)

Do we still need to configure with --with-mysql, and --with-mysql-dir?

Also, if we do need to install mysql, should we do a cygwin compile or a
windows binary of mysql? (and whats the difference) -

Sas


Re: How to receive MO on an SMPP link

2007-08-31 Thread lekkie

Hi,

Below is my config file.

However, what'd like is a single HTTP connection to an application to send
and receive SMS from the application


I'd also like 3 links to 3 telcos over SMPP binding as transceivers, so that
they can receive and send messages.

How can I make sure a message coming from a telco SMSC link will be
forwarded to another SMSC or to a URL.
I also want to be able to receive message from this application and forward
it to an SMSC. (This I can do my specifying the user)

Thanks.

group = core
admin-port = 13000
smsbox-port = 13001
admin-password = password
#status-password = password
admin-allow-ip = 127.0.0.1
log-file = /var/smsgateway/log/kannel.log
log-level = 0
box-deny-ip = *.*.*.*
box-allow-ip = 127.0.0.1
unified-prefix = +234,0
access-log = /var/smsgateway/log/access.log
#store-file = /var/smsgateway/kannel/kannel.store


group = smsc
smsc = smpp
host = [telco-ip]
port = [telco-port]
receive-port = [same-port-as-above]
transceiver-mode = true
smsc-id = TelcoSmppLink
smsc-username = uname
smsc-password = pword
system-type = [system-type]
service-type = smpp
allowed-prefix = +234803;+234806;+234703;0803;0806;0703
denied-prefix = *
unified-prefix = +234,0,234
log-file = /var/smsgateway/log/kannel.log
log-level = 0
address-range = 0
connect-allow-ip = 127.0.0.1;[telco-ip]


# SMSC Link to send SMS to app
group = smsc
smsc = http
port = 0
smsc-id = HttpLinkToApp
system-type = kannel
smsc-username = http
smsc-password = http
send-url =
http://[app-server-ip]/app/smexpress?smsvendor=kannelfrom=%Pto=%ptext=%bid=%I;
allowed-prefix =
+234803;+234806;+234703;0803;0806;0703;+234805;+234807;0805;0807;+234802;+234808;0802;0808
denied-prefix = *
preferred-smsc-id = HttpLinkToApp
unified-prefix = +234,0,234
log-file = /var/smsgateway/log/kannel.log
log-level = 0
address-range = 0
connect-allow-ip = 127.0.0.1


# SMSC Link to receive SMS from app
group = smsc
smsc = http
port = 8080
smsc-id = HttpLinkFromPayphone
system-type = kannel
smsc-username = http
smsc-password = http
send-url =
http://localhost:13013/cgi-bin/sendsms?username=telcopassword=telcofrom=AppNameto=%ptext=%b;
allowed-prefix = +234803;+234806;+234703;0803;0806;0703
denied-prefix = *
preferred-smsc-id = HttpLinkFromApp
unified-prefix = +234,0,234
log-file = /var/smsgateway/log/kannel.log
log-level = 0
address-range = 0
connect-allow-ip = 127.0.0.1;[app-server-ip]


group = smsbox
smsbox-id = LinktoTelcoSMSBox
bearerbox-host = 127.0.0.1
sendsms-port = 13013
global-sender = App
#sendsms-chars = 0123456789 +-
log-file = /var/smsgateway/log/smsbox.log
log-level = 0
access-log = /var/smsgateway/log/access.log


group = smsbox
smsbox-id = LinktoAppNameSMSBox
bearerbox-host = 172.16.10.249
sendsms-port = 13013
global-sender = App
#sendsms-chars = 0123456789 +-
log-file = /var/smsgateway/log/smsbox.log
log-level = 0
access-log = /var/smsgateway/log/access.log


group = smsbox-route
smsbox-id = LinktoTelcoSMSBox
smsc-ids = TelcoSmppLink


# SEND-SMS USERS
group = sendsms-user
username = mtn
password = mtn
forced-smsc = TelcoSmppLink
allowed-prefix = +234803;+234806;+234703;0803;0806;0703
#user-deny-ip = 
#user-allow-ip = 


# SEND-SMS USERS
group = sendsms-user
username = appname
password = appname
forced-smsc = SmscToApp
allowed-prefix =
+234803;+234806;+234703;0803;0806;0703;+234805;+234807;0805;0807;+234802;+234808;0802;0808
#user-deny-ip = 
#user-allow-ip = 






Rodrigo Cremaschi wrote:
 
 Hi Lekkie,
 
 Tell us what have you done so far, and what problems have you
 encountered. If you talked to the the carrier guys, what did they say?
 So we can find out if Kannel, or the connection, or the SMSC has any
 kind of problem.
 
 Regards,
 Rodrigo.
 
 On 8/31/07, lekkie [EMAIL PROTECTED] wrote:

 How do I route incoming messages from SMPP Link?


 Rodrigo Cremaschi wrote:
 
  In that case, you must declare transceiver-mode variable to true.
  Omit receive-port variable.
 
  Check the userguide, under SMPP 3.4 section.
 
  Regards.
 
  On 8/29/07, lekkie omotayo [EMAIL PROTECTED] wrote:
  Thanks for quick response.
 
  Yes, they have transceiver.
 
  If the operator has a transceiver connection, how can I can get the
  inbound
  messages from my operator?
  How to I set up the config?
 
  What if my operator only supports transmitter/Receiver connection?
 
  Kind regards,
 
  Lekkie
 
 
  On 8/29/07, Rodrigo Cremaschi [EMAIL PROTECTED] wrote:
Could this be because of the kannel version I am using (1.4.1)?
   No
  
Is it possible to receive SMS on SMPP connection?
   Yes, that's what Kannel is for.
  
   Are you sure your operator needs 2 connetcions Tx and Rx? Or is it a
   transceiver?
  
   On 8/29/07, lekkie [EMAIL PROTECTED]  wrote:
   
Hi guys,
   
I am trying to connect kannel to my mobile operator through an
 SMPP
connection.
   
However, my kannel box seem not to be listening on the receiver
 port
  I
specified. It ws able to connect to my operator on the transmitter
  port,
  but
it never 

Re: Question about MYSQL Support

2007-08-31 Thread Alejandro Guerrieri
Hi,

First of all, Kannel is not production-ready on Windows, you'll lose
messages under moderate load because of a buggy threads implementation
on Cygwin. You can use it for testing purposes, but don't rely on it
on a live environment.

Being said that, if you wish to connect to an external mysql server,
you'll still have to have the local mysql libraries and headers,
though you don't need the mysql server binaries.

In short, you'll need the mysql-devel packages installed.

Hope it helps,

Alejandro Guerrieri

On 8/31/07, Sarfaraz Jamal [EMAIL PROTECTED] wrote:
 Hi

 We are installing kannel on windows, and wish to use a MYSQL Server on
 another server (not the localhost)

 Do we still need to configure with --with-mysql, and --with-mysql-dir?

 Also, if we do need to install mysql, should we do a cygwin compile or a
 windows binary of mysql? (and whats the difference) -

 Sas



-- 
Alejandro Guerrieri
Magicom
http://www.magicom-bcn.net/
LinkedIn: http://www.linkedin.com/in/aguerrieri



unsubscribe

2007-08-31 Thread Joonyoung Park

unsubscribe

_
Invite your mail contacts to join your friends list with Windows Live Spaces. 
It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=createwx_url=/friends.aspxmkt=en-us

Re: Question about MYSQL Support

2007-08-31 Thread Frank Hablawi
Can Kannel be installed on a Lynux server running MYSQL?  As I've said
elsewhere on this list - I'm a novice user attempting to install this
program on my simple little Godaddy hosted site.  Any help would be
appreciated.


On 8/31/07, Alejandro Guerrieri [EMAIL PROTECTED] wrote:

 Hi,

 First of all, Kannel is not production-ready on Windows, you'll lose
 messages under moderate load because of a buggy threads implementation
 on Cygwin. You can use it for testing purposes, but don't rely on it
 on a live environment.

 Being said that, if you wish to connect to an external mysql server,
 you'll still have to have the local mysql libraries and headers,
 though you don't need the mysql server binaries.

 In short, you'll need the mysql-devel packages installed.

 Hope it helps,

 Alejandro Guerrieri

 On 8/31/07, Sarfaraz Jamal [EMAIL PROTECTED] wrote:
  Hi
 
  We are installing kannel on windows, and wish to use a MYSQL Server on
  another server (not the localhost)
 
  Do we still need to configure with --with-mysql, and --with-mysql-dir?
 
  Also, if we do need to install mysql, should we do a cygwin compile or a
  windows binary of mysql? (and whats the difference) -
 
  Sas
 


 --
 Alejandro Guerrieri
 Magicom
 http://www.magicom-bcn.net/
 LinkedIn: http://www.linkedin.com/in/aguerrieri




Re: Question about MYSQL Support

2007-08-31 Thread Alejandro Guerrieri
You'll probably need shell access and the ability to compile and
install the source code. You'll also need to run the services (usually
that means shell access).

I don't know the subtleties regarding your particular hosting service,
but if you have only web control panel access it would be quite
difficult or even impossible to install.

Have you read the users guide _thoroughly_?

Regards,

Alejandro

On 8/31/07, Frank Hablawi [EMAIL PROTECTED] wrote:
 Can Kannel be installed on a Lynux server running MYSQL?  As I've said
 elsewhere on this list - I'm a novice user attempting to install this
 program on my simple little Godaddy hosted site.  Any help would be
 appreciated.


 On 8/31/07, Alejandro Guerrieri [EMAIL PROTECTED] wrote:
  Hi,
 
  First of all, Kannel is not production-ready on Windows, you'll lose
  messages under moderate load because of a buggy threads implementation
  on Cygwin. You can use it for testing purposes, but don't rely on it
  on a live environment.
 
  Being said that, if you wish to connect to an external mysql server,
  you'll still have to have the local mysql libraries and headers,
  though you don't need the mysql server binaries.
 
  In short, you'll need the mysql-devel packages installed.
 
  Hope it helps,
 
  Alejandro Guerrieri
 
  On 8/31/07, Sarfaraz Jamal [EMAIL PROTECTED]  wrote:
   Hi
  
   We are installing kannel on windows, and wish to use a MYSQL Server on
   another server (not the localhost)
  
   Do we still need to configure with --with-mysql, and --with-mysql-dir?
  
   Also, if we do need to install mysql, should we do a cygwin compile or a
   windows binary of mysql? (and whats the difference) -
  
   Sas
  
 
 
  --
  Alejandro Guerrieri
  Magicom
  http://www.magicom-bcn.net/
  LinkedIn: http://www.linkedin.com/in/aguerrieri
 
 




-- 
Alejandro Guerrieri
Magicom
http://www.magicom-bcn.net/
LinkedIn: http://www.linkedin.com/in/aguerrieri



Re: How to receive MO on an SMPP link

2007-08-31 Thread lekkie

Please, I need a help here.

I want to to be able to receive message from a telco's SMPP SMSC and only
pass it to a url.
I also need another SMPP SMSC that will only deliver mesage to the same
telco.

Is this possible?


lekkie wrote:
 
 Hi,
 
 Below is my config file.
 
 However, what'd like is a single HTTP connection to an application to send
 and receive SMS from the application
 
 
 I'd also like 3 links to 3 telcos over SMPP binding as transceivers, so
 that they can receive and send messages.
 
 How can I make sure a message coming from a telco SMSC link will be
 forwarded to another SMSC or to a URL.
 I also want to be able to receive message from this application and
 forward it to an SMSC. (This I can do my specifying the user)
 
 Thanks.
 
 group = core
 admin-port = 13000
 smsbox-port = 13001
 admin-password = password
 #status-password = password
 admin-allow-ip = 127.0.0.1
 log-file = /var/smsgateway/log/kannel.log
 log-level = 0
 box-deny-ip = *.*.*.*
 box-allow-ip = 127.0.0.1
 unified-prefix = +234,0
 access-log = /var/smsgateway/log/access.log
 #store-file = /var/smsgateway/kannel/kannel.store
 
 
 group = smsc
 smsc = smpp
 host = [telco-ip]
 port = [telco-port]
 receive-port = [same-port-as-above]
 transceiver-mode = true
 smsc-id = TelcoSmppLink
 smsc-username = uname
 smsc-password = pword
 system-type = [system-type]
 service-type = smpp
 allowed-prefix = +234803;+234806;+234703;0803;0806;0703
 denied-prefix = *
 unified-prefix = +234,0,234
 log-file = /var/smsgateway/log/kannel.log
 log-level = 0
 address-range = 0
 connect-allow-ip = 127.0.0.1;[telco-ip]
 
 
 # SMSC Link to send SMS to app
 group = smsc
 smsc = http
 port = 0
 smsc-id = HttpLinkToApp
 system-type = kannel
 smsc-username = http
 smsc-password = http
 send-url =
 http://[app-server-ip]/app/smexpress?smsvendor=kannelfrom=%Pto=%ptext=%bid=%I;
 allowed-prefix =
 +234803;+234806;+234703;0803;0806;0703;+234805;+234807;0805;0807;+234802;+234808;0802;0808
 denied-prefix = *
 preferred-smsc-id = HttpLinkToApp
 unified-prefix = +234,0,234
 log-file = /var/smsgateway/log/kannel.log
 log-level = 0
 address-range = 0
 connect-allow-ip = 127.0.0.1
 
 
 # SMSC Link to receive SMS from app
 group = smsc
 smsc = http
 port = 8080
 smsc-id = HttpLinkFromPayphone
 system-type = kannel
 smsc-username = http
 smsc-password = http
 send-url =
 http://localhost:13013/cgi-bin/sendsms?username=telcopassword=telcofrom=AppNameto=%ptext=%b;
 allowed-prefix = +234803;+234806;+234703;0803;0806;0703
 denied-prefix = *
 preferred-smsc-id = HttpLinkFromApp
 unified-prefix = +234,0,234
 log-file = /var/smsgateway/log/kannel.log
 log-level = 0
 address-range = 0
 connect-allow-ip = 127.0.0.1;[app-server-ip]
 
 
 group = smsbox
 smsbox-id = LinktoTelcoSMSBox
 bearerbox-host = 127.0.0.1
 sendsms-port = 13013
 global-sender = App
 #sendsms-chars = 0123456789 +-
 log-file = /var/smsgateway/log/smsbox.log
 log-level = 0
 access-log = /var/smsgateway/log/access.log
 
 
 group = smsbox
 smsbox-id = LinktoAppNameSMSBox
 bearerbox-host = 172.16.10.249
 sendsms-port = 13013
 global-sender = App
 #sendsms-chars = 0123456789 +-
 log-file = /var/smsgateway/log/smsbox.log
 log-level = 0
 access-log = /var/smsgateway/log/access.log
 
 
 group = smsbox-route
 smsbox-id = LinktoTelcoSMSBox
 smsc-ids = TelcoSmppLink
 
 
 # SEND-SMS USERS
 group = sendsms-user
 username = mtn
 password = mtn
 forced-smsc = TelcoSmppLink
 allowed-prefix = +234803;+234806;+234703;0803;0806;0703
 #user-deny-ip = 
 #user-allow-ip = 
 
 
 # SEND-SMS USERS
 group = sendsms-user
 username = appname
 password = appname
 forced-smsc = SmscToApp
 allowed-prefix =
 +234803;+234806;+234703;0803;0806;0703;+234805;+234807;0805;0807;+234802;+234808;0802;0808
 #user-deny-ip = 
 #user-allow-ip = 
 
 
 
 
 
 
 Rodrigo Cremaschi wrote:
 
 Hi Lekkie,
 
 Tell us what have you done so far, and what problems have you
 encountered. If you talked to the the carrier guys, what did they say?
 So we can find out if Kannel, or the connection, or the SMSC has any
 kind of problem.
 
 Regards,
 Rodrigo.
 
 On 8/31/07, lekkie [EMAIL PROTECTED] wrote:

 How do I route incoming messages from SMPP Link?


 Rodrigo Cremaschi wrote:
 
  In that case, you must declare transceiver-mode variable to true.
  Omit receive-port variable.
 
  Check the userguide, under SMPP 3.4 section.
 
  Regards.
 
  On 8/29/07, lekkie omotayo [EMAIL PROTECTED] wrote:
  Thanks for quick response.
 
  Yes, they have transceiver.
 
  If the operator has a transceiver connection, how can I can get the
  inbound
  messages from my operator?
  How to I set up the config?
 
  What if my operator only supports transmitter/Receiver connection?
 
  Kind regards,
 
  Lekkie
 
 
  On 8/29/07, Rodrigo Cremaschi [EMAIL PROTECTED] wrote:
Could this be because of the kannel version I am using (1.4.1)?
   No
  
Is it possible to receive SMS on SMPP connection?
   Yes, that's what Kannel is for.
  
   Are you sure your operator needs 2 

Re: How to receive MO on an SMPP link

2007-08-31 Thread Rodrigo Cremaschi
YES, it is possible.
PLEASE, take some time to read the userguide AND the following document:
http://www.kannel.org/download/1.3.2/arch-1.3.2/arch.html
Many of the terms defined there apply also to SMS.
Then, come back with any problems that may araise.
Regards,
R.

On 8/31/07, lekkie [EMAIL PROTECTED] wrote:

 Please, I need a help here.

 I want to to be able to receive message from a telco's SMPP SMSC and only
 pass it to a url.
 I also need another SMPP SMSC that will only deliver mesage to the same
 telco.

 Is this possible?


 lekkie wrote:
 
  Hi,
 
  Below is my config file.
 
  However, what'd like is a single HTTP connection to an application to send
  and receive SMS from the application
 
 
  I'd also like 3 links to 3 telcos over SMPP binding as transceivers, so
  that they can receive and send messages.
 
  How can I make sure a message coming from a telco SMSC link will be
  forwarded to another SMSC or to a URL.
  I also want to be able to receive message from this application and
  forward it to an SMSC. (This I can do my specifying the user)
 
  Thanks.
 
  group = core
  admin-port = 13000
  smsbox-port = 13001
  admin-password = password
  #status-password = password
  admin-allow-ip = 127.0.0.1
  log-file = /var/smsgateway/log/kannel.log
  log-level = 0
  box-deny-ip = *.*.*.*
  box-allow-ip = 127.0.0.1
  unified-prefix = +234,0
  access-log = /var/smsgateway/log/access.log
  #store-file = /var/smsgateway/kannel/kannel.store
 
 
  group = smsc
  smsc = smpp
  host = [telco-ip]
  port = [telco-port]
  receive-port = [same-port-as-above]
  transceiver-mode = true
  smsc-id = TelcoSmppLink
  smsc-username = uname
  smsc-password = pword
  system-type = [system-type]
  service-type = smpp
  allowed-prefix = +234803;+234806;+234703;0803;0806;0703
  denied-prefix = *
  unified-prefix = +234,0,234
  log-file = /var/smsgateway/log/kannel.log
  log-level = 0
  address-range = 0
  connect-allow-ip = 127.0.0.1;[telco-ip]
 
 
  # SMSC Link to send SMS to app
  group = smsc
  smsc = http
  port = 0
  smsc-id = HttpLinkToApp
  system-type = kannel
  smsc-username = http
  smsc-password = http
  send-url =
  http://[app-server-ip]/app/smexpress?smsvendor=kannelfrom=%Pto=%ptext=%bid=%I;
  allowed-prefix =
  +234803;+234806;+234703;0803;0806;0703;+234805;+234807;0805;0807;+234802;+234808;0802;0808
  denied-prefix = *
  preferred-smsc-id = HttpLinkToApp
  unified-prefix = +234,0,234
  log-file = /var/smsgateway/log/kannel.log
  log-level = 0
  address-range = 0
  connect-allow-ip = 127.0.0.1
 
 
  # SMSC Link to receive SMS from app
  group = smsc
  smsc = http
  port = 8080
  smsc-id = HttpLinkFromPayphone
  system-type = kannel
  smsc-username = http
  smsc-password = http
  send-url =
  http://localhost:13013/cgi-bin/sendsms?username=telcopassword=telcofrom=AppNameto=%ptext=%b;
  allowed-prefix = +234803;+234806;+234703;0803;0806;0703
  denied-prefix = *
  preferred-smsc-id = HttpLinkFromApp
  unified-prefix = +234,0,234
  log-file = /var/smsgateway/log/kannel.log
  log-level = 0
  address-range = 0
  connect-allow-ip = 127.0.0.1;[app-server-ip]
 
 
  group = smsbox
  smsbox-id = LinktoTelcoSMSBox
  bearerbox-host = 127.0.0.1
  sendsms-port = 13013
  global-sender = App
  #sendsms-chars = 0123456789 +-
  log-file = /var/smsgateway/log/smsbox.log
  log-level = 0
  access-log = /var/smsgateway/log/access.log
 
 
  group = smsbox
  smsbox-id = LinktoAppNameSMSBox
  bearerbox-host = 172.16.10.249
  sendsms-port = 13013
  global-sender = App
  #sendsms-chars = 0123456789 +-
  log-file = /var/smsgateway/log/smsbox.log
  log-level = 0
  access-log = /var/smsgateway/log/access.log
 
 
  group = smsbox-route
  smsbox-id = LinktoTelcoSMSBox
  smsc-ids = TelcoSmppLink
 
 
  # SEND-SMS USERS
  group = sendsms-user
  username = mtn
  password = mtn
  forced-smsc = TelcoSmppLink
  allowed-prefix = +234803;+234806;+234703;0803;0806;0703
  #user-deny-ip = 
  #user-allow-ip = 
 
 
  # SEND-SMS USERS
  group = sendsms-user
  username = appname
  password = appname
  forced-smsc = SmscToApp
  allowed-prefix =
  +234803;+234806;+234703;0803;0806;0703;+234805;+234807;0805;0807;+234802;+234808;0802;0808
  #user-deny-ip = 
  #user-allow-ip = 
 
 
 
 
 
 
  Rodrigo Cremaschi wrote:
 
  Hi Lekkie,
 
  Tell us what have you done so far, and what problems have you
  encountered. If you talked to the the carrier guys, what did they say?
  So we can find out if Kannel, or the connection, or the SMSC has any
  kind of problem.
 
  Regards,
  Rodrigo.
 
  On 8/31/07, lekkie [EMAIL PROTECTED] wrote:
 
  How do I route incoming messages from SMPP Link?
 
 
  Rodrigo Cremaschi wrote:
  
   In that case, you must declare transceiver-mode variable to true.
   Omit receive-port variable.
  
   Check the userguide, under SMPP 3.4 section.
  
   Regards.
  
   On 8/29/07, lekkie omotayo [EMAIL PROTECTED] wrote:
   Thanks for quick response.
  
   Yes, they have transceiver.
  
   If the operator has a transceiver connection, how 

Configuring Kannel to Work with Apache, MySql on Windows

2007-08-31 Thread Tinatsei Mhazi
Hi guys,

I'm quite new to Kannel and I would be glad if someone could help me with
configuring Kannel with Apache and MySql on Windows XP. I have installed
Apache and MySQL on WinXP.


Your input will be greatly appreciated.


Tinatsei