MySQL Dependencies Problem on CYGWIN?

2007-09-01 Thread Sarfaraz Jamal
I installed MYSQL 5 with the --without-server option:

And the configure option ran successfully with kannel,
but when I run make, i get this error:

gw/dlr_mysql.c:74:25: mysql/mysql.h: No such file or directory
gw/dlr_mysql.c:109: error: parse error before '*' token
gw/dlr_mysql.c: In function `mysql_select':
gw/dlr_mysql.c:112: error: `MYSQL_RES' undeclared (first use in this
function)
gw/dlr_mysql.c:112: error: (Each undeclared identifier is reported only once

gw/dlr_mysql.c:112: error: for each function it appears in.)
gw/dlr_mysql.c:112: error: `result' undeclared (first use in this function)
gw/dlr_mysql.c: In function `dlr_mysql_get':
gw/dlr_mysql.c:170: error: `MYSQL_RES' undeclared (first use in this
function)
gw/dlr_mysql.c:170: error: `result' undeclared (first use in this function)
gw/dlr_mysql.c:171: error: `MYSQL_ROW' undeclared (first use in this
function)
gw/dlr_mysql.c:171: error: parse error before row
gw/dlr_mysql.c:192: error: `row' undeclared (first use in this function)
gw/dlr_mysql.c: In function `dlr_mysql_messages':
gw/dlr_mysql.c:253: error: `MYSQL_RES' undeclared (first use in this
function)
gw/dlr_mysql.c:253: error: `result' undeclared (first use in this function)
gw/dlr_mysql.c:254: error: `MYSQL_ROW' undeclared (first use in this
function)
gw/dlr_mysql.c:254: error: parse error before row
gw/dlr_mysql.c:269: error: `row' undeclared (first use in this function)
make: *** [gw/dlr_mysql.o] Error 1

Any ideas?

Sas


8-BIT text message

2007-09-01 Thread Vahid Ghafarpour
when I get a binary message kannel call a url with 8-BIT charset
in this message it change visible characters to its real character for
example change 30 (hex) to '0'
how can I set it to ignore this change it means url exist in %30 format


-- 
--Vahid Ghafarpour.
http://vahid.ghafarpour.ir/
vahid at ghafarpour dot ir
ghafarpour at gmail dot com


Setting up kannel with mac os x and a samsung-e890

2007-09-01 Thread Kenshi Arasaki
Hi guys,

I've been playing around with kannel with a samsung-e890 phone over the
bluetooth serial port (I know, it's a weird setup, but I'm just playing
around with it). Has anyone tried to setup kannel with a similar
configuration? Also, I'm not sure what the smsc or modem settings should be
with a samsung gsm modem - does anyone have any tips on where I could find
this information?

Thanks,
Kenshi


Re: Configuring Kannel to Work with Apache, MySql on Windows

2007-09-01 Thread Tinatsei Mhazi
Hi all,

What I mean Dimitris is I have installed Kannel using Cygwin but is there a
way where it can be configured to access documents on an Apache WebServer or
access MySql installed on Windows? I'll take another look at the manual and
try to figure it out. Thanks for responding.

Tinatsei Mhazi


On 9/1/07, Δημήτρης Ευμορφόπουλος [EMAIL PROTECTED] wrote:

  Kannel does not run on Windows … You can run it by installing Cygwin
 (Linux under windows) but this is not the preferred way for production
 systems. Take the time to read the manual.



 *Dimitris Evmorfopoulos*
 IT Telecommunications consultant



 20, Kampouroglou 
 strhttp://maps.google.com/maps?ll=37.998479,23.77686spn=0.011498,0.017638z=16om=1msa=0msid=104053785754187893059.0112fabd91e11a33b

 11525 Athens

 Greece
 tel:  +30 210 6725763

 fax: +30 210 6725769

 site: www.OrganizeIT.gr http://www.organizeit.gr/

 mob:+30 6945 394213
 e-mail:  [EMAIL PROTECTED]

 Skype:  devmorfo or +1 801 938 3480 [image: My status]




  --

 *From:* Tinatsei Mhazi [mailto:[EMAIL PROTECTED]
 *Sent:* Saturday, September 01, 2007 9:16 AM
 *To:* users@kannel.org
 *Subject:* Configuring Kannel to Work with Apache, MySql on Windows



 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

inline: image001.jpginline: image002.gif

Re: MySQL Dependencies Problem on CYGWIN?

2007-09-01 Thread Alejandro Guerrieri
mysql/mysql.h: No such file or directory

Kannel does not seem to find the mysql headers. Are you sure that you
have installed the devel packages?

On 9/1/07, Sarfaraz Jamal [EMAIL PROTECTED] wrote:
 I installed MYSQL 5 with the --without-server option:

 And the configure option ran successfully with kannel,
 but when I run make, i get this error:

 gw/dlr_mysql.c:74:25: mysql/mysql.h: No such file or directory
 gw/dlr_mysql.c:109: error: parse error before '*' token
 gw/dlr_mysql.c: In function `mysql_select':
 gw/dlr_mysql.c:112: error: `MYSQL_RES' undeclared (first use in this
 function)
 gw/dlr_mysql.c:112: error: (Each undeclared identifier is reported only once
 gw/dlr_mysql.c:112: error: for each function it appears in.)
 gw/dlr_mysql.c:112: error: `result' undeclared (first use in this function)
 gw/dlr_mysql.c: In function `dlr_mysql_get':
 gw/dlr_mysql.c:170: error: `MYSQL_RES' undeclared (first use in this
 function)
 gw/dlr_mysql.c:170: error: `result' undeclared (first use in this function)
 gw/dlr_mysql.c:171: error: `MYSQL_ROW' undeclared (first use in this
 function)
 gw/dlr_mysql.c:171: error: parse error before row
 gw/dlr_mysql.c:192: error: `row' undeclared (first use in this function)
 gw/dlr_mysql.c: In function `dlr_mysql_messages':
 gw/dlr_mysql.c:253: error: `MYSQL_RES' undeclared (first use in this
 function)
 gw/dlr_mysql.c:253: error: `result' undeclared (first use in this function)
 gw/dlr_mysql.c:254: error: `MYSQL_ROW' undeclared (first use in this
 function)
 gw/dlr_mysql.c:254: error: parse error before row
 gw/dlr_mysql.c:269: error: `row' undeclared (first use in this function)
 make: *** [gw/dlr_mysql.o] Error 1

 Any ideas?

 Sas


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



Re: Setting up kannel with mac os x and a samsung-e890

2007-09-01 Thread Alejandro Guerrieri
On MAC OS X, open a Terminal and type:

ls /dev/tty*

you'll see all the TTY devices recognized. Your BT modem should be
listed there (you'll have to pair it from Mac OS X first)

Start trying to connect by using a terminal program (minicom and zTerm
are available for Mac OS X). Only after you're able to connect by this
simple means try connecting from Kannel.

You should be able to send regular AT commands to the phone.

You may have to tweak modems.conf to accomodate your particular
phone's subtleties, in particular init strings. For example, AT+CNMI
tends to vary a lot from phone to phone.

Hope it helps,

Alejandro Guerrieri

On 9/1/07, Kenshi Arasaki [EMAIL PROTECTED] wrote:
 Hi guys,

 I've been playing around with kannel with a samsung-e890 phone over the
 bluetooth serial port (I know, it's a weird setup, but I'm just playing
 around with it). Has anyone tried to setup kannel with a similar
 configuration? Also, I'm not sure what the smsc or modem settings should be
 with a samsung gsm modem - does anyone have any tips on where I could find
 this information?

 Thanks,
 Kenshi



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



Re: Setting up kannel with mac os x and a samsung-e890

2007-09-01 Thread Kenshi Arasaki
Hi Alejandro,

Thanks for the information. I've paired my phone, tested it with zTerm and
have started kannel up to connect to it. However, it keeps pinging my phone
(my phone regularly prompts Accept DUN connection with [computer-name]?.
If I don't accept in time, kannel (and mac os x) will fail with a bluetooth
serial error. I'm wondering if this is a configuration issue, or something I
will have to accept using BT?

Cheers,
Kenshi

On 9/1/07, Alejandro Guerrieri [EMAIL PROTECTED] wrote:

 On MAC OS X, open a Terminal and type:

 ls /dev/tty*

 you'll see all the TTY devices recognized. Your BT modem should be
 listed there (you'll have to pair it from Mac OS X first)

 Start trying to connect by using a terminal program (minicom and zTerm
 are available for Mac OS X). Only after you're able to connect by this
 simple means try connecting from Kannel.

 You should be able to send regular AT commands to the phone.

 You may have to tweak modems.conf to accomodate your particular
 phone's subtleties, in particular init strings. For example, AT+CNMI
 tends to vary a lot from phone to phone.

 Hope it helps,

 Alejandro Guerrieri

 On 9/1/07, Kenshi Arasaki [EMAIL PROTECTED] wrote:
  Hi guys,
 
  I've been playing around with kannel with a samsung-e890 phone over the
  bluetooth serial port (I know, it's a weird setup, but I'm just
 playing
  around with it). Has anyone tried to setup kannel with a similar
  configuration? Also, I'm not sure what the smsc or modem settings should
 be
  with a samsung gsm modem - does anyone have any tips on where I could
 find
  this information?
 
  Thanks,
  Kenshi
 


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




Re: Setting up kannel with mac os x and a samsung-e890

2007-09-01 Thread Kenshi Arasaki
Sorry, I responded too hastily - I have setup the phone to correctly connect
to Kannel without requiring user prompting. However, looking at the logs, I
am seeing the
error below. Could it be because my configuration settings (the phone
settings you mentioned) are incorrect? If so, what is the best way to
troubleshoot this issue?

Thanks again,
Kenshi

2007-09-01 15:18:18 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: device
opened
2007-09-01 15:18:18 [333] [6] INFO: AT2[/dev/tty.ey-SerialPort-1]: init
device
2007-09-01 15:18:18 [333] [6] INFO: AT2[/dev/tty.ey-SerialPort-1]: speed set
to 115200
2007-09-01 15:18:18 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
ATZ^M
2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: -- OK
2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: -- AT^M
2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: -- AT
2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: -- OK
2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
ATF^M
2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: -- ATF
2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: -- OK
2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
ATE0^M
2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: -- ATE0
2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: -- OK
2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
AT+IFC=2,2^M
2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: -- OK
2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
AT+CPIN?^M
2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
+CPIN: READY
2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: -- OK
2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
AT+CMGF=0^M
2007-09-01 15:18:21 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: -- OK
2007-09-01 15:18:21 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
AT+CSMS=?^M
2007-09-01 15:18:21 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
+CSMS: (0)
2007-09-01 15:18:21 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: -- OK
2007-09-01 15:18:21 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
AT+CNMI=1,2,0,1,0^M
2007-09-01 15:18:21 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: -- +CMS
ERROR: 303
2007-09-01 15:18:21 [333] [6] ERROR: AT2[/dev/tty.ey-SerialPort-1]: CMS
ERROR: +CMS ERROR: 303
2007-09-01 15:18:21 [333] [6] ERROR: AT2[/dev/tty.ey-SerialPort-1]: CMS
ERROR: Operation not supported (303)
2007-09-01 15:18:21 [333] [6] ERROR: AT2[/dev/tty.ey-SerialPort-1]: Opening
failed. Terminating
2007-09-01 15:18:21 [333] [6] INFO: AT2[/dev/tty.ey-SerialPort-1]: closing
device



On 9/1/07, Kenshi Arasaki [EMAIL PROTECTED] wrote:

 Hi Alejandro,

 Thanks for the information. I've paired my phone, tested it with zTerm and
 have started kannel up to connect to it. However, it keeps pinging my phone
 (my phone regularly prompts Accept DUN connection with [computer-name]?.
 If I don't accept in time, kannel (and mac os x) will fail with a bluetooth
 serial error. I'm wondering if this is a configuration issue, or something I
 will have to accept using BT?

 Cheers,
 Kenshi

 On 9/1/07, Alejandro Guerrieri [EMAIL PROTECTED] wrote:
 
  On MAC OS X, open a Terminal and type:
 
  ls /dev/tty*
 
  you'll see all the TTY devices recognized. Your BT modem should be
  listed there (you'll have to pair it from Mac OS X first)
 
  Start trying to connect by using a terminal program (minicom and zTerm
  are available for Mac OS X). Only after you're able to connect by this
  simple means try connecting from Kannel.
 
  You should be able to send regular AT commands to the phone.
 
  You may have to tweak modems.conf to accomodate your particular
  phone's subtleties, in particular init strings. For example, AT+CNMI
  tends to vary a lot from phone to phone.
 
  Hope it helps,
 
  Alejandro Guerrieri
 
  On 9/1/07, Kenshi Arasaki [EMAIL PROTECTED] wrote:
   Hi guys,
  
   I've been playing around with kannel with a samsung-e890 phone over
  the
   bluetooth serial port (I know, it's a weird setup, but I'm just
  playing
   around with it). Has anyone tried to setup kannel with a similar
   configuration? Also, I'm not sure what the smsc or modem settings
  should be
   with a samsung gsm modem - does anyone have any tips on where I could
  find
   this information?
  
   Thanks,
   Kenshi
  
 
 
  --
  Alejandro Guerrieri
  Magicom
  http://www.magicom-bcn.net/
  LinkedIn: http://www.linkedin.com/in/aguerrieri
 
 



Re: Setting up kannel with mac os x and a samsung-e890

2007-09-01 Thread preeteesh kakkar
Try setting AT+CNMI=1,1 in you confg file..!

On 9/1/07, Kenshi Arasaki [EMAIL PROTECTED] wrote:

 Sorry, I responded too hastily - I have setup the phone to correctly
 connect to Kannel without requiring user prompting. However, looking at the
 logs, I am seeing the
 error below. Could it be because my configuration settings (the phone
 settings you mentioned) are incorrect? If so, what is the best way to
 troubleshoot this issue?

 Thanks again,
 Kenshi

 2007-09-01 15:18:18 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: device
 opened
 2007-09-01 15:18:18 [333] [6] INFO: AT2[/dev/tty.ey-SerialPort-1]: init
 device
 2007-09-01 15:18:18 [333] [6] INFO: AT2[/dev/tty.ey-SerialPort-1]: speed
 set to 115200
 2007-09-01 15:18:18 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
 ATZ^M
 2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: -- OK
 2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
 AT^M
 2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: -- AT
 2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: -- OK
 2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
 ATF^M
 2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
 ATF
 2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: -- OK
 2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
 ATE0^M
 2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
 ATE0
 2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: -- OK
 2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
 AT+IFC=2,2^M
 2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: -- OK
 2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
 AT+CPIN?^M
 2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
 +CPIN: READY
 2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: -- OK
 2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
 AT+CMGF=0^M
 2007-09-01 15:18:21 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: -- OK

 2007-09-01 15:18:21 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
 AT+CSMS=?^M
 2007-09-01 15:18:21 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
 +CSMS: (0)
 2007-09-01 15:18:21 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: -- OK

 2007-09-01 15:18:21 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
 AT+CNMI=1,2,0,1,0^M
 2007-09-01 15:18:21 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
 +CMS ERROR: 303
 2007-09-01 15:18:21 [333] [6] ERROR: AT2[/dev/tty.ey-SerialPort-1]: CMS
 ERROR: +CMS ERROR: 303
 2007-09-01 15:18:21 [333] [6] ERROR: AT2[/dev/tty.ey-SerialPort-1]: CMS
 ERROR: Operation not supported (303)
 2007-09-01 15:18:21 [333] [6] ERROR: AT2[/dev/tty.ey-SerialPort-1]:
 Opening failed. Terminating
 2007-09-01 15:18:21 [333] [6] INFO: AT2[/dev/tty.ey-SerialPort-1]: closing
 device



 On 9/1/07, Kenshi Arasaki [EMAIL PROTECTED] wrote:
 
  Hi Alejandro,
 
  Thanks for the information. I've paired my phone, tested it with zTerm
  and have started kannel up to connect to it. However, it keeps pinging my
  phone (my phone regularly prompts Accept DUN connection with
  [computer-name]?. If I don't accept in time, kannel (and mac os x) will
  fail with a bluetooth serial error. I'm wondering if this is a configuration
  issue, or something I will have to accept using BT?
 
  Cheers,
  Kenshi
 
  On 9/1/07, Alejandro Guerrieri  [EMAIL PROTECTED] wrote:
  
   On MAC OS X, open a Terminal and type:
  
   ls /dev/tty*
  
   you'll see all the TTY devices recognized. Your BT modem should be
   listed there (you'll have to pair it from Mac OS X first)
  
   Start trying to connect by using a terminal program (minicom and zTerm
   are available for Mac OS X). Only after you're able to connect by this
  
   simple means try connecting from Kannel.
  
   You should be able to send regular AT commands to the phone.
  
   You may have to tweak modems.conf to accomodate your particular
   phone's subtleties, in particular init strings. For example, AT+CNMI
   tends to vary a lot from phone to phone.
  
   Hope it helps,
  
   Alejandro Guerrieri
  
   On 9/1/07, Kenshi Arasaki  [EMAIL PROTECTED] wrote:
Hi guys,
   
I've been playing around with kannel with a samsung-e890 phone over
   the
bluetooth serial port (I know, it's a weird setup, but I'm just
   playing
around with it). Has anyone tried to setup kannel with a similar
configuration? Also, I'm not sure what the smsc or modem settings
   should be
with a samsung gsm modem - does anyone have any tips on where I
   could find
this information?
   
Thanks,
Kenshi
   
  
  
   --
   Alejandro Guerrieri
   Magicom
   http://www.magicom-bcn.net/
   LinkedIn: http://www.linkedin.com/in/aguerrieri
  
  
 



Re: Setting up kannel with mac os x and a samsung-e890

2007-09-01 Thread Kenshi Arasaki
Awesome - that worked!

Thank you very much!

Cheers,
Kenshi

On 9/1/07, preeteesh kakkar [EMAIL PROTECTED] wrote:

 Try setting AT+CNMI=1,1 in you confg file..!

 On 9/1/07, Kenshi Arasaki [EMAIL PROTECTED] wrote:
 
  Sorry, I responded too hastily - I have setup the phone to correctly
  connect to Kannel without requiring user prompting. However, looking at the
  logs, I am seeing the
  error below. Could it be because my configuration settings (the phone
  settings you mentioned) are incorrect? If so, what is the best way to
  troubleshoot this issue?
 
  Thanks again,
  Kenshi
 
  2007-09-01 15:18:18 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]:
  device opened
  2007-09-01 15:18:18 [333] [6] INFO: AT2[/dev/tty.ey-SerialPort-1]: init
  device
  2007-09-01 15:18:18 [333] [6] INFO: AT2[/dev/tty.ey-SerialPort-1]: speed
  set to 115200
  2007-09-01 15:18:18 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
  ATZ^M
  2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
  OK
  2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
  AT^M
  2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
  AT
  2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
  OK
  2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
  ATF^M
  2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
  ATF
  2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
  OK
  2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
  ATE0^M
  2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
  ATE0
  2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
  OK
  2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
  AT+IFC=2,2^M
  2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
  OK
  2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
  AT+CPIN?^M
  2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
  +CPIN: READY
  2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
  OK
  2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
  AT+CMGF=0^M
  2007-09-01 15:18:21 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
  OK
  2007-09-01 15:18:21 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
  AT+CSMS=?^M
  2007-09-01 15:18:21 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
  +CSMS: (0)
  2007-09-01 15:18:21 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
  OK
  2007-09-01 15:18:21 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
  AT+CNMI=1,2,0,1,0^M
  2007-09-01 15:18:21 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
  +CMS ERROR: 303
  2007-09-01 15:18:21 [333] [6] ERROR: AT2[/dev/tty.ey-SerialPort-1]: CMS
  ERROR: +CMS ERROR: 303
  2007-09-01 15:18:21 [333] [6] ERROR: AT2[/dev/tty.ey-SerialPort-1]: CMS
  ERROR: Operation not supported (303)
  2007-09-01 15:18:21 [333] [6] ERROR: AT2[/dev/tty.ey-SerialPort-1]:
  Opening failed. Terminating
  2007-09-01 15:18:21 [333] [6] INFO: AT2[/dev/tty.ey-SerialPort-1]:
  closing device
 
 
 
  On 9/1/07, Kenshi Arasaki [EMAIL PROTECTED]  wrote:
  
   Hi Alejandro,
  
   Thanks for the information. I've paired my phone, tested it with zTerm
   and have started kannel up to connect to it. However, it keeps pinging my
   phone (my phone regularly prompts Accept DUN connection with
   [computer-name]?. If I don't accept in time, kannel (and mac os x) will
   fail with a bluetooth serial error. I'm wondering if this is a 
   configuration
   issue, or something I will have to accept using BT?
  
   Cheers,
   Kenshi
  
   On 9/1/07, Alejandro Guerrieri  [EMAIL PROTECTED] 
   wrote:
   
On MAC OS X, open a Terminal and type:
   
ls /dev/tty*
   
you'll see all the TTY devices recognized. Your BT modem should be
listed there (you'll have to pair it from Mac OS X first)
   
Start trying to connect by using a terminal program (minicom and
zTerm
are available for Mac OS X). Only after you're able to connect by
this
simple means try connecting from Kannel.
   
You should be able to send regular AT commands to the phone.
   
You may have to tweak modems.conf to accomodate your particular
phone's subtleties, in particular init strings. For example, AT+CNMI
   
tends to vary a lot from phone to phone.
   
Hope it helps,
   
Alejandro Guerrieri
   
On 9/1/07, Kenshi Arasaki  [EMAIL PROTECTED] wrote:
 Hi guys,

 I've been playing around with kannel with a samsung-e890 phone
over the
 bluetooth serial port (I know, it's a weird setup, but I'm just
playing
 around with it). Has anyone tried to setup kannel with a similar
 configuration? Also, I'm not sure what the smsc or modem settings
should be
 with a samsung gsm modem - does anyone have any tips on where I
could find
 this information?

 Thanks,
 

Re: Setting up kannel with mac os x and a samsung-e890

2007-09-01 Thread Alejandro Guerrieri
Told you that AT+CNMI was tricky ;)

Glad that it worked!

Regards,

Alejandro

On 9/1/07, Kenshi Arasaki [EMAIL PROTECTED] wrote:
 Awesome - that worked!

 Thank you very much!

 Cheers,
 Kenshi


 On 9/1/07, preeteesh kakkar  [EMAIL PROTECTED] wrote:
  Try setting AT+CNMI=1,1 in you confg file..!
 
 
 
  On 9/1/07, Kenshi Arasaki [EMAIL PROTECTED]  wrote:
   Sorry, I responded too hastily - I have setup the phone to correctly
 connect to Kannel without requiring user prompting. However, looking at the
 logs, I am seeing the
   error below. Could it be because my configuration settings (the phone
 settings you mentioned) are incorrect? If so, what is the best way to
 troubleshoot this issue?
  
   Thanks again,
   Kenshi
  
   2007-09-01 15:18:18 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]:
 device opened
   2007-09-01 15:18:18 [333] [6] INFO: AT2[/dev/tty.ey-SerialPort-1]: init
 device
   2007-09-01 15:18:18 [333] [6] INFO: AT2[/dev/tty.ey-SerialPort-1]: speed
 set to 115200
   2007-09-01 15:18:18 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
 ATZ^M
   2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
 OK
   2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
 AT^M
   2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
 AT
   2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
 OK
   2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
 ATF^M
   2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
 ATF
   2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
 OK
   2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
 ATE0^M
   2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
 ATE0
   2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
 OK
   2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
 AT+IFC=2,2^M
   2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
 OK
   2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
 AT+CPIN?^M
   2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
 +CPIN: READY
   2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
 OK
   2007-09-01 15:18:20 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
 AT+CMGF=0^M
   2007-09-01 15:18:21 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
 OK
   2007-09-01 15:18:21 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
 AT+CSMS=?^M
   2007-09-01 15:18:21 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
 +CSMS: (0)
   2007-09-01 15:18:21 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
 OK
   2007-09-01 15:18:21 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
 AT+CNMI=1,2,0,1,0^M
   2007-09-01 15:18:21 [333] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
 +CMS ERROR: 303
   2007-09-01 15:18:21 [333] [6] ERROR: AT2[/dev/tty.ey-SerialPort-1]: CMS
 ERROR: +CMS ERROR: 303
   2007-09-01 15:18:21 [333] [6] ERROR: AT2[/dev/tty.ey-SerialPort-1]: CMS
 ERROR: Operation not supported (303)
   2007-09-01 15:18:21 [333] [6] ERROR: AT2[/dev/tty.ey-SerialPort-1]:
 Opening failed. Terminating
   2007-09-01 15:18:21 [333] [6] INFO: AT2[/dev/tty.ey-SerialPort-1]:
 closing device
  
  
  
  
  
   On 9/1/07, Kenshi Arasaki [EMAIL PROTECTED]  wrote:
Hi Alejandro,
   
Thanks for the information. I've paired my phone, tested it with zTerm
 and have started kannel up to connect to it. However, it keeps pinging my
 phone (my phone regularly prompts Accept DUN connection with
 [computer-name]?. If I don't accept in time, kannel (and mac os x) will
 fail with a bluetooth serial error. I'm wondering if this is a configuration
 issue, or something I will have to accept using BT?
   
Cheers,
Kenshi
   
   
   
On 9/1/07, Alejandro Guerrieri  [EMAIL PROTECTED] 
 wrote:
 On MAC OS X, open a Terminal and type:

 ls /dev/tty*

 you'll see all the TTY devices recognized. Your BT modem should be
 listed there (you'll have to pair it from Mac OS X first)

 Start trying to connect by using a terminal program (minicom and
 zTerm
 are available for Mac OS X). Only after you're able to connect by
 this
 simple means try connecting from Kannel.

 You should be able to send regular AT commands to the phone.

 You may have to tweak modems.conf to accomodate your particular
 phone's subtleties, in particular init strings. For example, AT+CNMI
 tends to vary a lot from phone to phone.

 Hope it helps,

 Alejandro Guerrieri

 On 9/1/07, Kenshi Arasaki  [EMAIL PROTECTED] wrote:
  Hi guys,
 
  I've been playing around with kannel with a samsung-e890 phone
 over the
  bluetooth serial port (I know, it's a weird setup, but I'm just
 playing
  around with it). Has anyone tried to setup kannel with a similar
  configuration? Also, I'm not sure what the smsc or 

Re: Trouble sending sms messages using HTTP sendsms

2007-09-01 Thread Alejandro Guerrieri
Kenshi,

Check on kannel.log, maybe you need to lower your log-level setting to
get more info.

Regards,

Alejandro

On 9/1/07, Kenshi Arasaki [EMAIL PROTECTED] wrote:
 Hello,

 I've got my samsung E890 phone connected via bluetooth to my mac os X laptop
 thanks to the people on this mailing list :)

 However, when I try to issue the following HTTP GET command in order to test
 send SMS functionality,
 http://myserver:myport/cgi-bin/sendsms?username=[user]password=[password]to=[number]text=hellojello
 no SMS messages are sent, and my HTTP admin status shows that I have a
 failure.

 I receive the following message after issuing the GET command: 0: Accepted
 for delivery

 This is the log output from my bearerbox:
 2007-09-01 18:31:09 [366] [2] DEBUG: HTTP: Creating HTTPClient for
 `127.0.0.1'.
 2007-09-01 18:31:09 [366] [2] DEBUG: HTTP: Created HTTPClient area 0x415920.
 2007-09-01 18:31:09 [366] [3] INFO: smsbox: Got HTTP request
 /cgi-bin/sendsms from  127.0.0.1
 2007-09-01 18:31:09 [366] [3] INFO: sendsms used by [user]
 2007-09-01 18:31:09 [366] [3] INFO: sendsms sender:[user]:[number] (
 127.0.0.1) to:[number] msg:hellojello
 2007-09-01 18:31:09 [366] [3] DEBUG: Stored UUID
 adddabb8-79c5-4bed-a71f-8f052df256dd
 2007-09-01 18:31:09 [366] [3] DEBUG: message length 10, sending 1 messages
 2007-09-01 18:31:09 [366] [3] DEBUG: Status: 202 Answer: Sent.
 2007-09-01 18:31:09 [366] [3] DEBUG: Delayed reply - wait for bearerbox
 2007-09-01 18:31:09 [366] [0] DEBUG: Got ACK (0) of
 adddabb8-79c5-4bed-a71f-8f052df256dd
 2007-09-01 18:31:09 [366] [0] DEBUG: HTTP: Resetting HTTPClient for
 `127.0.0.1'.
 2007-09-01 18:32:09 [366] [1] DEBUG: Timeout for fd:25 appeares.

 This is the log output from my smsbox:
 2007-09-01 18:31:10 [365] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]:
 TP-Validity-Period: 24.0 hours
 2007-09-01 18:31:10 [365] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
 AT+CMGS=23^M
 2007-09-01 18:31:16 [365] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: send
 command status: -1
 2007-09-01 18:31:16 [365] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
 AT+CMGS=23^M
 2007-09-01 18:31:22 [365] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: send
 command status: -1
 2007-09-01 18:31:22 [365] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: --
 AT+CMGS=23^M
 2007-09-01 18:31:28 [365] [6] DEBUG: AT2[/dev/tty.ey-SerialPort-1]: send
 command status: -1

 Anyone have any ideas as to why my SMS messages aren't being sent?

 Thanks,
 Kenshi





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