Yes, it's ok with me, beacuse my place is 500 km away from the sms server and i can easily remote it using ssh, to restart the bearerbox and smsbox ( kannel ) i'm using bash script, so it's not a problem at all. if i'm lazy to login using ssh and execute the script, right now i'm planning to execute the script to run from URL by using the exec function (PHP). And also i have this idea. i write a bash script to stop kannel, then check the credit (using atd*888#) then write the result to file then start kannel then execute this command : /usr/local/php/bin/php -q sms.php inside sms.php <? exec ('GET -e "http:localhost:13131/cgi-bin/sendsms?user=.............text=$file"'); ?> all of this done by sending a sms to kannel, then kannel run my bash script. done!, i get the result in my mobile phone. thats the idea, i'll perfect it when i'm doing it (if you see some flaw in the idea) will working with it soon.
"info.ubichip" <[EMAIL PROTECTED]> wrote: v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} Yes but in this solution, you have to stop kannel and then make your kermit stuff, isnt it ? --------------------------------- From: Luki Lusiano [mailto:[EMAIL PROTECTED] Sent: mardi 20 novembre 2007 01:42 To: users@kannel.org Subject: Re: can kannel check my credit using *888# command Hi Alvaro Cornejo Problem solved!!! Thank you for pointing to me to use terminal sw, i'm using kermit. and this is my command, hope this will help other who face the same problem ( my modem speed is 19200 using ttyS0) run this : # kermit (press enter) C-Kermit> set line /dev/ttyS0 (press enter) C-Kermit> set speed 19200 (press enter) C-Kermit> set carrier-watch off (press enter) C-Kermit> set modem type generic (press enter) C-Kermit> set dial display on (press enter) C-Kermit> c (press enter) (after you press enter this line will show up) Connecting to /dev/ttyS0, speed 19200 Escape character: Ctrl-\ (ASCII 28, FS): enabled Type the escape character followed by C to get back, or followed by ? to see other options. ---------------------------------------------------- (here you type atd*888#) atd*888# (hoaaa!!! you see the result) ______________________________ * to quit press ctrl+\ then release both key and then press c Thank you all hope this will someone. Alvaro Cornejo <[EMAIL PROTECTED]> wrote: Hi Luki If you don´t use it now, you can setup kannel´s keepalive config of the smsc to send the AT equivalent command to the *888# to the modem ( I don´t know its equivalent) and set the keepalive retry to whatever interval you need. The result of the command can be viewed in kannel log (debug level). Since kannel has no way -as far as I know- to interact with the modem with other commands other than the buit-in -unless you patch smsc_at- you might need to stop kannel, access the modem through cu, minicom, getty or other terminal sw, enter the command(s) needed and then restart kannel. Regards Alvaro On 11/19/07, Luki Lusiano wrote: > Hi, i'm using kannel for 2 years now and I thank you for this great program. > I hope this question is never been asked before, try to search it, but no > luck. > The question is : > > can kannel check my credit using *888# command > > i'm using prepaid mobile phone, thats mean that i have to buy voucher and > put the code to the mobilephone to continue to use the phone, from the > voucher i get my credit to make call or send sms. > > But the problem is, the my web and sms server is located at different island > (500 KM from my place). > > To know that my mobile is still active i'm using this command at the phone > *888# > and receive this reply "your credit is "_some_number_" and you active > periode until "_some_date_" " > > can i login remotely by using ssh and type some command at the server and i > receive the answer from the phone? > What is the command or the code? > > if it can, i'm planning make a script to check and send it using sms to my > mobile phone. > > Thank You All. > > ________________________________ > Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See how. > > -- |-----------------------------------------------------------------------------------------------------------------| Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier celular y Nextel en México y en mas de 180 paises. Use aplicaciones 2 vias via SMS y GPRS online Visitenos en www.smsglobal.com.mx y www.pravcom.com --------------------------------- Get easy, one-click access to your favorites. Make Yahoo! your homepage. --------------------------------- Antivirus avast!: message Sortant sain. Base de donnees virale (VPS) : 071120-0, 20/11/2007 Analyse le : 20/11/2007 11:10:35 avast! - copyright (c) 1988-2007 ALWIL Software. --------------------------------- Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try it now.