SMS via PPG

2005-08-02 Thread Brent Goldspring
Is it possible to send an SMS with the PPG interface of Kannel (i.e., 
using the mime type text/plain)?


I've tried using my own code and the Openwave Push Initiator tool but I 
can't get it to send an SMS (I prefer to send it via the PPG interface 
because I've already got existing code that works with other PPGs).


thanks,
Brent



libmysqlclient failed even with all mysql packages installed

2005-08-02 Thread Willy Mularto

Hi all,
I have install all mysql packages installed :
mysql-shared-4.1.13-2tr
mysql-4.1.13-2tr
php-mysql-5.0.4-7tr
mysql-libs-4.1.13-2tr
mysql-client-4.1.13-2tr
mysql-devel-4.1.13-2tr

And doing ./configure 

Configuring DB support ...
checking whether to compile with MySQL support... searching
checking for mysql_config... /usr/bin/mysql_config
checking mysql version... 4.1.13
checking mysql reentrant 
libs...  -L/usr/lib/mysql -lmysqlclient_r -lz -lpthread -lcrypt -lnsl -lm -lpthread 
-L/usr/lib -lssl -lcrypto

checking for mysql_init in -lmysqlclient_r... no
checking mysql 
libs...  -L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib -lssl 
-lcrypto

checking for mysql_init in -lmysqlclient... no
configure: error: Unable to find MySQL client libraries

Is there something miss here?

Regards


Willy 






Re: Send file over SMS

2005-08-02 Thread Mike Nwaogu
Sorry Guys I have a question along this line too, I'm
want to send an IMY [Imelody] text via SMS do I have
to convert it to hex? is there something I have to do
to make the recieving phone understand that I'm
sending a ringing tone?

I've tried sending it as is, but the phones don't
recognize it. Yet not all the phones that claim EMS
support actually support it. I hope I'm doing
something wrong.

Regards,
Mike

--- Ricky Wibowo [EMAIL PROTECTED] wrote:

 OK...
 If just only an URL that refer to a file, how
 about i'm using apache 
 running wap protocol?
 it's same if we run wapbox?
 
 
 Ady Wicaksono wrote:
 
  No,
 
  WAP Push simply send a SMS contain an URL of your
 file (could be jar 
  file, midi file, ... others) to fetch by phone
 over WAP
  please open www.openmobilealliance.org
 
  Thx
 
  Ricky Wibowo wrote:
 
  how??
  is the file need to be converted into another
 file type??
 
  Ady Wicaksono wrote:
 
  You should send it using WAP Push
  Ricky Wibowo wrote:
 
  Dear all,
  I wonder to know how to send a file (.jar ,
 .mid, etc) into 
  handphone using SMS?
  Any one know??
 
  thanx
 
 
 
 
 
 
 
 
 
 
 
 


Mike Nwaogu
Metro Technologies  Resources Ltd.
48 Tunde Idiagbon Road, Tanke, Ilorin.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



get-url or post-url php retrieval by kannel and by browser

2005-08-02 Thread vampire janus
hi! how would you know if a php page was retrieved by
a browser as compared to being retrieved by kannel? thanks!




Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 



Re: Send file over SMS

2005-08-02 Thread Gareth Reakes

Hey Mike,

	We are doing stuff with EMS and have been having problems as well. We 
have not established exactly what is happening in all cases, but does 
depend on you smsc as well. One of our suppliers (over http) had to 
change their end to make it work properly. We have still not got it to 
work with clickatell. You need to check the format they expect very 
carefully. If you make any progress I would appreciate if you would 
share your knowledge!


Cheers,

Gareth


Mike Nwaogu wrote:

Sorry Guys I have a question along this line too, I'm
want to send an IMY [Imelody] text via SMS do I have
to convert it to hex? is there something I have to do
to make the recieving phone understand that I'm
sending a ringing tone?

I've tried sending it as is, but the phones don't
recognize it. Yet not all the phones that claim EMS
support actually support it. I hope I'm doing
something wrong.

Regards,
Mike

--- Ricky Wibowo [EMAIL PROTECTED] wrote:



OK...
If just only an URL that refer to a file, how
about i'm using apache 
running wap protocol?

it's same if we run wapbox?


Ady Wicaksono wrote:



No,

WAP Push simply send a SMS contain an URL of your


file (could be jar 


file, midi file, ... others) to fetch by phone


over WAP


please open www.openmobilealliance.org

Thx

Ricky Wibowo wrote:



how??
is the file need to be converted into another


file type??


Ady Wicaksono wrote:



You should send it using WAP Push
Ricky Wibowo wrote:



Dear all,
I wonder to know how to send a file (.jar ,


.mid, etc) into 


handphone using SMS?
Any one know??

thanx
















Mike Nwaogu
Metro Technologies  Resources Ltd.
48 Tunde Idiagbon Road, Tanke, Ilorin.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 





--
Gareth Reakes, Managing Director   Embrace Mobile
+44-1865-811197  http://www.embracemobile.com



splitting of messages

2005-08-02 Thread Jan van der Vyver
Hi all

I receive a sms and then get a webpage which i want to return

The pages content is the following

data   qty

kannel ignores the spaces and send data qty

How can i fix this?

Kind regards

Jan van der Vyver





Re: get-url or post-url php retrieval by kannel and by browser

2005-08-02 Thread Mike Nwaogu
Yes there is,
The kannel access will be show on the
/var/log/httpd/access.log file as having no browser
type.

but the web browser will be show as having a browser
compatible type listed eg:

kannel
127.0.0.1 - - [02/Aug/2005:11:41:15 +0100] GET
/cgi-bin/emg/main.cgi?ID=2789929 HTTP/1.1 200 239 -
-

Internet Explorer
192.168.200.1 - - [02/Aug/2005:11:41:15 +0100] GET
/cgi-bin/emg/main.cgi?ID=2789929 Mozilla/4.0
(compatible; MSIE 6.0; Windows NT 5.1)

--- vampire janus [EMAIL PROTECTED] wrote:

 hi! how would you know if a php page was retrieved
 by
 a browser as compared to being retrieved by kannel?
 thanks!
 
 
   
 
 Start your day with Yahoo! - make it your home page 
 http://www.yahoo.com/r/hs 
  
 
 


Mike Nwaogu
Metro Technologies  Resources Ltd.
48 Tunde Idiagbon Road, Tanke, Ilorin.




Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 



Re: Out of Memory

2005-08-02 Thread Julien Buratto

Alejandro J. Ramirez wrote:
 


Hello All!!

 


This has happened to me quite a few times now:

 


 From message log:

Jul 24 04:54:38 movil kernel: Out of Memory: Killed process 6186 
(bearerbox).




I have the same problem with a RH9.0 - this night at 1AM the gateway 
stopped and I came to reboot it at 3:00 AM.


At 10:00 AM this morning, 7 hours later, same problem - machine locked

I'm verifying swaps and I have 2 swap partition mounted for 2Gb

J




Re: Out of Memory

2005-08-02 Thread Julien Buratto

Julien Buratto wrote:

Alejandro J. Ramirez wrote:

 


Hello All!!

 


This has happened to me quite a few times now:

 


 From message log:

Jul 24 04:54:38 movil kernel: Out of Memory: Killed process 6186 
(bearerbox).




I have the same problem with a RH9.0 - this night at 1AM the gateway 
stopped and I came to reboot it at 3:00 AM.


At 10:00 AM this morning, 7 hours later, same problem - machine locked

I'm verifying swaps and I have 2 swap partition mounted for 2Gb

J



I've now addedd 512Mb Ram going to 1Gb to see how it goes like that 
tonight :)


J



Re: Send file over SMS

2005-08-02 Thread Mike Nwaogu
Thanks gareth,
I'll let u know if there's something new about EMS
that you don't already know.

tip: send the hex encoded tone in the UDH of the
message and set the body of the message to hex
destination port -1 and source port -1

My question is about those fones that claim to support
IMY, but not via EMS. for instance SGH-SAMSUNG-A300
I've sent an EMS tone to that fone but it doesn't
work, I've sent plain IMY but nothing happened I've
sent even rtttl but nothing.

I'm just asking if there's something I have to do to
send IMY.

Regards,
Mike

--- Gareth Reakes [EMAIL PROTECTED] wrote:

 Hey Mike,
 
   We are doing stuff with EMS and have been having
 problems as well. We 
 have not established exactly what is happening in
 all cases, but does 
 depend on you smsc as well. One of our suppliers
 (over http) had to 
 change their end to make it work properly. We have
 still not got it to 
 work with clickatell. You need to check the format
 they expect very 
 carefully. If you make any progress I would
 appreciate if you would 
 share your knowledge!
 
 Cheers,
 
 Gareth
 
 
 Mike Nwaogu wrote:
  Sorry Guys I have a question along this line too,
 I'm
  want to send an IMY [Imelody] text via SMS do I
 have
  to convert it to hex? is there something I have to
 do
  to make the recieving phone understand that I'm
  sending a ringing tone?
  
  I've tried sending it as is, but the phones don't
  recognize it. Yet not all the phones that claim
 EMS
  support actually support it. I hope I'm doing
  something wrong.
  
  Regards,
  Mike
  
  --- Ricky Wibowo [EMAIL PROTECTED] wrote:
  
  
 OK...
 If just only an URL that refer to a file, how
 about i'm using apache 
 running wap protocol?
 it's same if we run wapbox?
 
 
 Ady Wicaksono wrote:
 
 
 No,
 
 WAP Push simply send a SMS contain an URL of your
 
 file (could be jar 
 
 file, midi file, ... others) to fetch by phone
 
 over WAP
 
 please open www.openmobilealliance.org
 
 Thx
 
 Ricky Wibowo wrote:
 
 
 how??
 is the file need to be converted into another
 
 file type??
 
 Ady Wicaksono wrote:
 
 
 You should send it using WAP Push
 Ricky Wibowo wrote:
 
 
 Dear all,
 I wonder to know how to send a file (.jar ,
 
 .mid, etc) into 
 
 handphone using SMS?
 Any one know??
 
 thanx
 
 
 
 
 
 
 
 
 
  
  
  Mike Nwaogu
  Metro Technologies  Resources Ltd.
  48 Tunde Idiagbon Road, Tanke, Ilorin.
  
  __
  Do You Yahoo!?
  Tired of spam?  Yahoo! Mail has the best spam
 protection around 
  http://mail.yahoo.com 
  
  
 
 -- 
 Gareth Reakes, Managing Director   Embrace
 Mobile
 +44-1865-811197 
 http://www.embracemobile.com
 
 


Mike Nwaogu
Metro Technologies  Resources Ltd.
48 Tunde Idiagbon Road, Tanke, Ilorin.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



EMS ringtone

2005-08-02 Thread Philippe Girolami
Dear all,

I want to use Kannel for sending EMS data to mobile phones. We are connector
via the EMI2 plugin the a belgium operator.

The kannel config is setup to route messages to a default SMS-C

Here is the request:
http://172.24.20.28:13013/cgi-bin/sendsms?username=xxxpassword=yyyto=%2B32
495518042udh=%83%0C%81%00%42%45%47%49%4E%3A%49%4D%45%4C%4F%44%59%0D%0A%56%4
5%52%53%49%4F%4E%3A%31%2E%30%0D%0A%46%4F%52%4D%41%54%3A%43%4C%41%53%53%31%2E
%30%0D%0A%42%45%41%54%3A%32%30%30%0D%0A%4D%45%4C%4F%44%59%3A%2A%35%65%30%72%
30%2A%35%23%63%30%2A%35%23%63%31%2A%35%23%63%31%2A%35%23%67%33%23%67%33%23%6
7%33%2A%35%23%67%33%23%67%33%2A%35%23%67%33%23%66%33%23%67%33%0D%0A%45%4E%44
%3A%49%4D%45%4C%4F%44%59%0D%0A
The data submitted to Kannel is correct I believe as I use this same data to
deliver in binary form to an SMS-broker.

Here is what I get in the kannel log :
2005-08-02 16:25:18 [17713] [8] ERROR: EMI2[mobistar5661]: Got negative ack.
op:51, trn:33, error:2 (Syntax error), message:Aborted

Any ideas ?

Thanks
Philippe Girolami




Re: Send file over SMS

2005-08-02 Thread Alejandro Guerrieri
For EMS messages, you must send the whole message as a big UDH with no text content at all. I suggest you to use ringtonetools (An open source ringtone converter) to create the EMS file. Encode it as binary and send it using % 


For iMELODY messages, you must send the .imy file as a text message (I recommend you to hex encode the characters and newlines). This is mainly for legacy phones (mostly Motorolas). Put a newline as last character or it wont work.


Hope it helps,

Alejandro
On 8/2/05, Mike Nwaogu [EMAIL PROTECTED] wrote:
Thanks gareth,I'll let u know if there's something new about EMSthat you don't already know.
tip: send the hex encoded tone in the UDH of themessage and set the body of the message to hexdestination port -1 and source port -1My question is about those fones that claim to supportIMY, but not via EMS. for instance SGH-SAMSUNG-A300
I've sent an EMS tone to that fone but it doesn'twork, I've sent plain IMY but nothing happened I'vesent even rtttl but nothing.I'm just asking if there's something I have to do tosend IMY.
Regards,Mike--- Gareth Reakes [EMAIL PROTECTED] wrote: Hey Mike, We are doing stuff with EMS and have been having
 problems as well. We have not established exactly what is happening in all cases, but does depend on you smsc as well. One of our suppliers (over http) had to change their end to make it work properly. We have
 still not got it to work with clickatell. You need to check the format they expect very carefully. If you make any progress I would appreciate if you would share your knowledge!
 Cheers, Gareth Mike Nwaogu wrote:  Sorry Guys I have a question along this line too, I'm  want to send an IMY [Imelody] text via SMS do I
 have  to convert it to hex? is there something I have to do  to make the recieving phone understand that I'm  sending a ringing tone?   I've tried sending it as is, but the phones don't
  recognize it. Yet not all the phones that claim EMS  support actually support it. I hope I'm doing  something wrong.   Regards,  Mike 
  --- Ricky Wibowo [EMAIL PROTECTED] wrote:   OK... If just only an URL that refer to a file, how
 about i'm using apache running wap protocol? it's same if we run wapbox?   Ady Wicaksono wrote:  
 No,  WAP Push simply send a SMS contain an URL of your  file (could be jar  file, midi file, ... others) to fetch by phone
  over WAP  please open www.openmobilealliance.org  Thx 
 Ricky Wibowo wrote:   how?? is the file need to be converted into another  file type??
  Ady Wicaksono wrote:   You should send it using WAP Push Ricky Wibowo wrote:
   Dear all, I wonder to know how to send a file (.jar ,  .mid, etc) into
  handphone using SMS? Any one know??  thanx 
 
   Mike Nwaogu  Metro Technologies  Resources Ltd.  48 Tunde Idiagbon Road, Tanke, Ilorin.   __
  Do You Yahoo!?  Tired of spam?Yahoo! Mail has the best spam protection around  http://mail.yahoo.com   --
 Gareth Reakes, Managing Director Embrace Mobile +44-1865-811197 http://www.embracemobile.comMike Nwaogu
Metro Technologies  Resources Ltd.48 Tunde Idiagbon Road, Tanke, Ilorin.__Do You Yahoo!?Tired of spam?Yahoo! Mail has the best spam protection around
http://mail.yahoo.com-- Alejandro GuerrieriMagicomhttp://www.magicom-bcn.net/



Re: Send file over SMS

2005-08-02 Thread Mike Nwaogu
Just to get u straight Sir, you mean send the
following line below in the body of the message for
sending IMELODY?

but EMS will be with the % after every 2 Xters?

820C8000424547494E3A494D454C4F44590D0A56455253494F4E3A312E320D0A464F524D41543A434C415353312E300D0A424541543A39300D0A4D454C4F44593A2A32653265336433633267326133673367336633653165326633673361326732663364336533236633673165326533643363320D0A454E443A494D454C4F44590D0A

--- Alejandro Guerrieri
[EMAIL PROTECTED] wrote:

 For EMS messages, you must send the whole message as
 a big UDH with no text 
 content at all. I suggest you to use ringtonetools
 (An open source 
 ringtone converter) to create the EMS file. Encode
 it as binary and send it 
 using % 
  For iMELODY messages, you must send the .imy file
 as a text message (I 
 recommend you to hex encode the characters and
 newlines). This is mainly for 
 legacy phones (mostly Motorolas). Put a newline as
 last character or it wont 
 work.
  Hope it helps,
  Alejandro
 
  On 8/2/05, Mike Nwaogu [EMAIL PROTECTED]
 wrote: 
  
  Thanks gareth,
  I'll let u know if there's something new about EMS
  that you don't already know.
  
  tip: send the hex encoded tone in the UDH of the
  message and set the body of the message to hex
  destination port -1 and source port -1
  
  My question is about those fones that claim to
 support
  IMY, but not via EMS. for instance
 SGH-SAMSUNG-A300
  I've sent an EMS tone to that fone but it doesn't
  work, I've sent plain IMY but nothing happened
 I've
  sent even rtttl but nothing.
  
  I'm just asking if there's something I have to do
 to
  send IMY.
  
  Regards,
  Mike
  
  --- Gareth Reakes [EMAIL PROTECTED]
 wrote:
  
   Hey Mike,
  
   We are doing stuff with EMS and have been having
   problems as well. We
   have not established exactly what is happening
 in
   all cases, but does
   depend on you smsc as well. One of our suppliers
   (over http) had to
   change their end to make it work properly. We
 have
   still not got it to
   work with clickatell. You need to check the
 format
   they expect very
   carefully. If you make any progress I would
   appreciate if you would
   share your knowledge!
  
   Cheers,
  
   Gareth
  
  
   Mike Nwaogu wrote:
Sorry Guys I have a question along this line
 too,
   I'm
want to send an IMY [Imelody] text via SMS do
 I
   have
to convert it to hex? is there something I
 have to
   do
to make the recieving phone understand that
 I'm
sending a ringing tone?
   
I've tried sending it as is, but the phones
 don't
recognize it. Yet not all the phones that
 claim
   EMS
support actually support it. I hope I'm doing
something wrong.
   
Regards,
Mike
   
--- Ricky Wibowo [EMAIL PROTECTED] wrote:
   
   
   OK...
   If just only an URL that refer to a file,
 how
   about i'm using apache
   running wap protocol?
   it's same if we run wapbox?
   
   
   Ady Wicaksono wrote:
   
   
   No,
   
   WAP Push simply send a SMS contain an URL of
 your
   
   file (could be jar
   
   file, midi file, ... others) to fetch by
 phone
   
   over WAP
   
   please open

www.openmobilealliance.orghttp://www.openmobilealliance.org
   
   Thx
   
   Ricky Wibowo wrote:
   
   
   how??
   is the file need to be converted into
 another
   
   file type??
   
   Ady Wicaksono wrote:
   
   
   You should send it using WAP Push
   Ricky Wibowo wrote:
   
   
   Dear all,
   I wonder to know how to send a file (.jar
 ,
   
   .mid, etc) into
   
   handphone using SMS?
   Any one know??
   
   thanx
   
   
   
   
   
   
   
   
   
   
   
Mike Nwaogu
Metro Technologies  Resources Ltd.
48 Tunde Idiagbon Road, Tanke, Ilorin.
   
   
 __
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam
   protection around
http://mail.yahoo.com
   
   
  
   --
   Gareth Reakes, Managing Director Embrace
   Mobile
   +44-1865-811197
   http://www.embracemobile.com
  
  
  
  
  Mike Nwaogu
  Metro Technologies  Resources Ltd.
  48 Tunde Idiagbon Road, Tanke, Ilorin.
  
  __
  Do You Yahoo!?
  Tired of spam? Yahoo! Mail has the best spam
 protection around
  http://mail.yahoo.com
  
  
 
 
 -- 
 Alejandro Guerrieri
 
=== message truncated ===


Mike Nwaogu
Metro Technologies  Resources Ltd.
48 Tunde Idiagbon Road, Tanke, Ilorin.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



Re: Kannel 1.4.0 on Trustix 2.2

2005-08-02 Thread Alejandro Guerrieri
Where is your mysql.h ? Maybe you need to point ./configure to find it ? If you use --with-mysql-dir=/usr then mysql.h should be in /usr/include/mysql.h

Please paste part of the output where the error arises, maybe the answer is there...

Regards,
On 8/2/05, Willy Mularto [EMAIL PROTECTED] wrote:

Hi,
I have all mysql packages installed, including devel, client, libs, share, bench and mysql it self. But still it doesn't work. I also have dig the list arch, I found a post by K. Naren he said that the ./configure shipped with 
1.4.0 has error in it. Thankyou for any reply.

Regards

Willy Mularto

- Original Message - 

From: 
Alejandro Guerrieri 
To: users@kannel.org 
Sent: Thursday, July 28, 2005 9:54 AM
Subject: Re: Kannel 1.4.0 on Trustix 2.2

Do you have the mysql-devel package installed?

Hope it helps,

PS: I'm feeling a sort of dejà vu about this question being asked and answereda zillion times on this very list (I account for 4 or 5 times). I think this should be clarified in the documentation/FAQ, since it seems to be a very common mistake... 



On 7/28/05, Willy Mularto [EMAIL PROTECTED]
 wrote: 
Hi,Any of you has successfully install Kannel 1.4.0 from source (.gz) onTrustix 2.2 with MySQL support enabled? Because I always get this error 
message configure: error: Unable to find MySQL client libraries fromcommand./configure --prefix=/usr --sysconfdir=/etc --with-mysql --with-mysql-dir=/usr--disable-ssl --enable-start-stop-daemon --with-defaults=speed --with-malloc=native 
--disable-assertions. I have tried to copy all libmysql* in /usr/lib into/usr/lib/mysql but still no lucky. FYI I also have installed all MySQLpackage. Thank you for any reply.RegardsWilly
-- Alejandro GuerrieriMagicomhttp://www.magicom-bcn.net/
-- Alejandro GuerrieriMagicomhttp://www.magicom-bcn.net/


Re: libmysqlclient failed even with all mysql packages installed

2005-08-02 Thread Alejandro Guerrieri
Ah, mysql 4.

I'm not sure about kannel supporting mysql 4 directly. Surely someone else knowns better about this issue.

I've never tried, but you could try to install the mysql-compat packages to provide the client librariesbackward-compatible with mysql 3. It works with PHP, it should work with any client I suppose...

If it works, you may also need to use the old password method on mysql4 to allow authentication with 3.x clients (mysql4 uses a different, more securehashing for passwords that 3.x clients can't understand, so you have to make your passwords using the old hashing).


Hope it helps,

Alejandro


On 8/2/05, Willy Mularto [EMAIL PROTECTED] wrote:
Hi all,I have install all mysql packages installed :mysql-shared-4.1.13-2trmysql-4.1.13-2tr
php-mysql-5.0.4-7trmysql-libs-4.1.13-2trmysql-client-4.1.13-2trmysql-devel-4.1.13-2trAnd doing ./configure Configuring DB support ...checking whether to compile with MySQL support... searching
checking for mysql_config... /usr/bin/mysql_configchecking mysql version... 4.1.13checking mysql reentrantlibs...-L/usr/lib/mysql -lmysqlclient_r -lz -lpthread -lcrypt -lnsl -lm -lpthread-L/usr/lib -lssl -lcrypto
checking for mysql_init in -lmysqlclient_r... nochecking mysqllibs...-L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib -lssl-lcryptochecking for mysql_init in -lmysqlclient... noconfigure: error: Unable to find MySQL client libraries
Is there something miss here?RegardsWilly-- Alejandro GuerrieriMagicomhttp://www.magicom-bcn.net/



Re: Send file over SMS

2005-08-02 Thread Alejandro Guerrieri
Mike,

For EMS, you'd send something like (only UDH, NO Text):

http://localhost:12345/cgi-bin/sendsms?from=..udh=%82%0C%80%0D%0A

You can concatenate many messages (usually up to 3) using special udh headers.

For Text iMELODY (NO UDH, only text)


http://localhost:12345/cgi-bin/sendsms?from=..text=%42%45%47%0D%0A

You CAN'T concatenate text imelody messages. Remember this is usually for legacy terminals (Motorola V60's andV120's, that kind of antiques ;) ).

In fact, this is the BEGIN:iMELODY END:... text encoded as HEX. It's not really necessary to encode the ascii characters, but since you're going to encode the newlines and special characters anyway, I've usually encode the whole message and never have had any problems.


Note: You can use %0D only instead of %0D%0A, it will save you a few but yet precious bytes for more notes :)

Hope it helps,

Alejandro.


On 8/2/05, Mike Nwaogu [EMAIL PROTECTED] wrote:
Just to get u straight Sir, you mean send thefollowing line below in the body of the message forsending IMELODY?
but EMS will be with the % after every 2 Xters?820C8000424547494E3A494D454C4F44590D0A56455253494F4E3A312E320D0A464F524D41543A434C415353312E300D0A424541543A39300D0A4D454C4F44593A2A32653265336433633267326133673367336633653165326633673361326732663364336533236633673165326533643363320D0A454E443A494D454C4F44590D0A
--- Alejandro Guerrieri[EMAIL PROTECTED] wrote: For EMS messages, you must send the whole message as a big UDH with no text
 content at all. I suggest you to use ringtonetools (An open source ringtone converter) to create the EMS file. Encode it as binary and send it using %For iMELODY messages, you must send the .imy file
 as a text message (I recommend you to hex encode the characters and newlines). This is mainly for legacy phones (mostly Motorolas). Put a newline as last character or it wont work.
Hope it helps,AlejandroOn 8/2/05, Mike Nwaogu [EMAIL PROTECTED] wrote:   Thanks gareth,
  I'll let u know if there's something new about EMS  that you don't already know.   tip: send the hex encoded tone in the UDH of the  message and set the body of the message to hex
  destination port -1 and source port -1   My question is about those fones that claim to support  IMY, but not via EMS. for instance SGH-SAMSUNG-A300  I've sent an EMS tone to that fone but it doesn't
  work, I've sent plain IMY but nothing happened I've  sent even rtttl but nothing.   I'm just asking if there's something I have to do to  send IMY.
   Regards,  Mike   --- Gareth Reakes [EMAIL PROTECTED] wrote:Hey Mike,
 We are doing stuff with EMS and have been having   problems as well. We   have not established exactly what is happening in   all cases, but does
   depend on you smsc as well. One of our suppliers   (over http) had to   change their end to make it work properly. We have   still not got it to
   work with clickatell. You need to check the format   they expect very   carefully. If you make any progress I would   appreciate if you would   share your knowledge!
 Cheers, Gareth   Mike Nwaogu wrote:Sorry Guys I have a question along this line
 too,   I'mwant to send an IMY [Imelody] text via SMS do I   haveto convert it to hex? is there something I have to
   doto make the recieving phone understand that I'msending a ringing tone?   I've tried sending it as is, but the phones
 don'trecognize it. Yet not all the phones that claim   EMSsupport actually support it. I hope I'm doingsomething wrong.
   Regards,Mike   --- Ricky Wibowo [EMAIL PROTECTED] wrote:
 OK...   If just only an URL that refer to a file, how   about i'm using apache   running wap protocol?
   it's same if we run wapbox? Ady Wicaksono wrote: No,
  WAP Push simply send a SMS contain an URL of your  file (could be jar   
   file, midi file, ... others) to fetch by phone  over WAP  please open
www.openmobilealliance.orghttp://www.openmobilealliance.org  Thx
  Ricky Wibowo wrote: how??   is the file need to be converted into
 another  file type??  Ady Wicaksono wrote:  
   You should send it using WAP Push   Ricky Wibowo wrote: Dear all,
   I wonder to know how to send a file (.jar ,  .mid, etc) into  handphone using SMS?
   Any one know??  thanx  
  
 Mike NwaoguMetro Technologies  Resources Ltd.48 Tunde Idiagbon Road, Tanke, Ilorin.
   __Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam   protection around
http://mail.yahoo.com   --   Gareth Reakes, Managing Director Embrace
   Mobile   +44-1865-811197   http://www.embracemobile.comMike Nwaogu
  Metro Technologies  Resources Ltd.  48 Tunde Idiagbon Road, Tanke, Ilorin.   __  Do You Yahoo!?  Tired of spam? Yahoo! Mail has the best spam
 protection 

Re: esm_class

2005-08-02 Thread Anand Gupta
Thx a lot.

 That is because kannel makes a transformation to GSM charset and the
 character
 ' does not exist in GSM charset.


 On Saturday 30 July 2005 08:37, Anand Gupta wrote:
 Anyone ?

 Here is what i am using to kannel
 
 lynx --dump
 http://127.0.0.1:13030/cgi-bin/sendsms?username=testpassword=footo=
 11text=%60Hi%60from=anandcoding=0
 
 The message shown in kannel logs is ?Hi? :((

 I am really stuck here.



-- 
regards,

Anand Gupta




Re: GSM Modem init-string

2005-08-02 Thread Jimmy McMillan
Follow up.  I had to set the init-string to init-string = 
AT+CNMI=0,0,0,0,0
I found the Nokia AT doc's.  
http://simon.dehartog.nl/datasheets/protocols/Nokia_at_commands.pdf


They helped.



Jimmy McMillan wrote:

Hi all.  I'm currently using a Nokia 9500 as a GSM modem.  I have 
sucessfully used this phone with gnokii to send out a few SMS.  Now 
I'm working with kannel to get it working as a HTTP SMS service.  I 
thought i had my conf file perfect until i recieved the following 
message.


2005-08-02 15:28:20 [1209] [6] DEBUG: AT2[/dev/ttyACM0]: -- Nokia
2005-08-02 15:28:20 [1209] [6] DEBUG: AT2[/dev/ttyACM0]: -- OK
2005-08-02 15:28:20 [1209] [6] PANIC: Where are the modem definitions 
?!?!
2005-08-02 15:28:20 [1209] [6] PANIC: ./bearerbox(gw_panic+0x174) 
[0x80c9178]



So i read a little more about the 'modem definitions' and I setup a 
simple definition.


group = modems
id = 9500
detect-string = Nokia

Now when I start bearerbox it seems to get stuck in an endless loop of 
initazing the modem.  The error seems to be CMS ERROR: +CMS ERROR: 
301 (SMS service of ME reserved)  I'm not sure what I'm doing wrong, 
and where to go from here.  Any help would be appreciated.



The following is the output of the loop.


2005-08-02 15:32:18 [1247] [0] INFO: HTTP: Opening server at port 13000.
2005-08-02 15:32:18 [1247] [0] DEBUG: Started thread 1 
(gwlib/fdset.c:poller)
2005-08-02 15:32:18 [1247] [0] DEBUG: Started thread 2 
(gwlib/http.c:server_thread)
2005-08-02 15:32:18 [1247] [0] DEBUG: Started thread 3 
(gw/bb_http.c:httpadmin_run)

2005-08-02 15:32:18 [1247] [0] DEBUG: starting smsbox connection module
2005-08-02 15:32:18 [1247] [0] INFO: BOXC: 'smsbox-max-pending' not 
set, using default (100).
2005-08-02 15:32:18 [1247] [0] DEBUG: Started thread 4 
(gw/bb_boxc.c:sms_to_smsboxes)
2005-08-02 15:32:18 [1247] [0] DEBUG: Started thread 5 
(gw/bb_boxc.c:smsboxc_run)
2005-08-02 15:32:18 [1247] [0] INFO: DLR rerouting for smsc id 
(null) disabled.
2005-08-02 15:32:18 [1247] [0] INFO: AT2[/dev/ttyACM0]: configuration 
doesn't show modemtype. will autodetect
2005-08-02 15:32:18 [1247] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) 
maps to pid 1247.
2005-08-02 15:32:18 [1247] [2] DEBUG: Thread 2 
(gwlib/http.c:server_thread) maps to pid 1247.
2005-08-02 15:32:18 [1247] [3] DEBUG: Thread 3 
(gw/bb_http.c:httpadmin_run) maps to pid 1247.
2005-08-02 15:32:18 [1247] [4] DEBUG: Thread 4 
(gw/bb_boxc.c:sms_to_smsboxes) maps to pid 1247.
2005-08-02 15:32:18 [1247] [5] DEBUG: Thread 5 
(gw/bb_boxc.c:smsboxc_run) maps to pid 1247.
2005-08-02 15:32:18 [1247] [0] DEBUG: Started thread 6 
(gw/smsc/smsc_at.c:at2_device_thread)
2005-08-02 15:32:18 [1247] [0] DEBUG: Started thread 7 
(gw/bb_smscconn.c:sms_router)
2005-08-02 15:32:18 [1247] [0] INFO: 

2005-08-02 15:32:18 [1247] [0] INFO: Kannel bearerbox II version 1.4.0 
starting
2005-08-02 15:32:18 [1247] [0] INFO: MAIN: Start-up done, entering 
mainloop

2005-08-02 15:32:18 [1247] [0] DEBUG: AT2[/dev/ttyACM0]: start called
2005-08-02 15:32:18 [1247] [6] DEBUG: Thread 6 
(gw/smsc/smsc_at.c:at2_device_thread) maps to pid 1247.
2005-08-02 15:32:18 [1247] [6] DEBUG: AT2[/dev/ttyACM0]: detecting 
modem speed.

2005-08-02 15:32:18 [1247] [6] INFO: AT2[/dev/ttyACM0]: opening device
2005-08-02 15:32:18 [1247] [7] DEBUG: Thread 7 
(gw/bb_smscconn.c:sms_router) maps to pid 1247.

2005-08-02 15:32:18 [1247] [7] DEBUG: sms_router: time to sleep
2005-08-02 15:32:18 [1247] [7] DEBUG: sms_router: list_len = 0
2005-08-02 15:32:18 [1247] [6] DEBUG: AT2[/dev/ttyACM0]: device opened
2005-08-02 15:32:19 [1247] [6] DEBUG: AT2[/dev/ttyACM0]: device opened
2005-08-02 15:32:19 [1247] [6] INFO: AT2[/dev/ttyACM0]: speed set to 
115200

2005-08-02 15:32:19 [1247] [6] DEBUG: AT2[/dev/ttyACM0]: -- ^M
2005-08-02 15:32:21 [1247] [6] DEBUG: AT2[/dev/ttyACM0]: -- AT^M
2005-08-02 15:32:21 [1247] [6] DEBUG: AT2[/dev/ttyACM0]: -- OK
2005-08-02 15:32:21 [1247] [6] INFO: AT2[/dev/ttyACM0]: closing device
2005-08-02 15:32:21 [1247] [6] INFO: AT2[/dev/ttyACM0]: detect speed 
is 115200
2005-08-02 15:32:21 [1247] [6] DEBUG: AT2[/dev/ttyACM0]: detecting 
modem type

2005-08-02 15:32:21 [1247] [6] INFO: AT2[/dev/ttyACM0]: opening device
2005-08-02 15:32:21 [1247] [6] DEBUG: AT2[/dev/ttyACM0]: device opened
2005-08-02 15:32:22 [1247] [6] DEBUG: AT2[/dev/ttyACM0]: device opened
2005-08-02 15:32:22 [1247] [6] INFO: AT2[/dev/ttyACM0]: speed set to 
115200

2005-08-02 15:32:22 [1247] [6] DEBUG: AT2[/dev/ttyACM0]: -- ^M
2005-08-02 15:32:24 [1247] [6] DEBUG: AT2[/dev/ttyACM0]: -- AT^M
2005-08-02 15:32:24 [1247] [6] DEBUG: AT2[/dev/ttyACM0]: -- OK
2005-08-02 15:32:24 [1247] [6] DEBUG: AT2[/dev/ttyACM0]: -- ATF^M
2005-08-02 15:32:24 [1247] [6] DEBUG: AT2[/dev/ttyACM0]: -- OK
2005-08-02 15:32:24 [1247] [6] DEBUG: AT2[/dev/ttyACM0]: -- ATE0^M
2005-08-02 15:32:24 [1247] [6] DEBUG: AT2[/dev/ttyACM0]: -- ATE0
2005-08-02 15:32:24 [1247] [6] DEBUG: AT2[/dev/ttyACM0]: -- OK
2005-08-02 15:32:24