Nikos
I gladly will write a little text to add in userguide about receiving
sms with modems. however, I don't know how to generate the patch and
just yesterday my linux machine mainboar died, so I'll write it in
word or other text editor and post it so someone can added it to the
userguide.
Tilani
Some modems (some nokia) does not support CNMI command, therefore you
need to tell kannel to look periodically for messages in the modem.
This is achieved with the sim-buffering parameter in the modem/smsc_at
sections
check userguide for details
Regards
Alvaro
|-----------------------------------------------------------------------------------------------------------------|
Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
celular y Nextel
en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via
SMS y GPRS online
Visitenos en www.perusms.NET www.smsglobal.com.mx y
www.pravcom.com
2010/3/12 Nikos Balkanas <[email protected]>:
> *Sigh*... The same dreaded CNMI problem. Maybe it would save lots of emails
> if it went to the user guide. What do you say Alvaro? As one of the most
> experienced contributors for modems, would you like to make the honors? Or
> should I?
>
> Tilani,
>
> You need to tell your modem what to do with incoming SMS. This is achieved
> by including the "AT + CNMI" command in your init-string. This is modem
> specific. Sometimes you can get it with wvdialconf (if using linux).
> Otherwise you will have to consult your modem's manual or contact its
> manufacturer. If you search the mail archives, you will get plenty of
> answers to "CNMI".
>
> If after all this, you still have problems, please post relevant detailed bb
> logs to this list.
>
> BR,
> Nikos
> ----- Original Message ----- From: "Tilani gunawardena" <[email protected]>
> To: <[email protected]>
> Sent: Friday, March 12, 2010 6:14 AM
> Subject: Cant receive messages Please HELP
>
>
>> hi im trying to "RECEIVE " message from kannel few weeks .i went
>> thought USER manual and lot other documentations.i can "send sms" with
>> no problem.can anyone help with this problem.im running appache server
>> and here is my kannel.conf file
>>
>> # Default kannel configuration file
>> group = core
>> admin-port = 13000
>> admin-password = changemenow
>> status-password = changemetoo
>> admin-deny-ip = "*.*.*.*"
>> admin-allow-ip = "127.0.0.1"
>> smsbox-port = 13001
>> #wapbox-port = 13002
>> box-deny-ip = "*.*.*.*"
>> box-allow-ip = "127.0.0.1"
>> wdp-interface-name = "*"
>> log-file = "/var/log/kannel/bearerbox.log"
>> log-level = 1
>>
>> group = smsc
>> smsc = at
>> modemtype = auto
>> device = /dev/ttyUSB1
>> my-number = "+94772246333"
>> #speed = 460800
>> #pin = 1234
>> #sim-buffering = true
>> log-level = 0
>>
>> # MODEM DEFINITIONS
>> group = modems
>> id = huawei
>> name = "Huawei E220"
>> detect-string = "huawei"
>> init-string = "ATZ"
>> init-string = "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
>> #message-storage = "EM"
>>
>> group = smsbox
>> bearerbox-host = 127.0.0.1
>> #we use sendsms-port for sending sms (http)
>> sendsms-port = 13013
>> global-sender = "+919994989838"
>> log-file = /var/log/kannel/smsbox.log
>> log-level = 0
>>
>> group = sendsms-user
>> username = kannel
>> password = hard2guess
>> concatenation = true
>> max-messages = 10
>>
>> group = sms-service
>> keyword-regex = .*
>> catch-all = yes
>> max-messages = 0
>> get-url = "http://localhost/sms?phone=%p&text=%a"
>>
>> *******************************************************************
>>
>> im new to kannel and i want to know that where i should store any php
>> code relavant to this . i want to get receiving message to a txt file
>> or to a database .when i send sms to a GSM modem there is no log
>> saying that it received .
>> i have several other problems too
>>
>> 1)if i receive messages , is web browser automatically pop up ? or
>> 2)should i write a php code to pop up web page
>> 3) should i run appache or some server before receiving message
>> 4) can i get help with AT command with kannel & if so where ?
>> 5) in my sms-service group
>> get-url = "http://localhost/sms?phone=%p&text=%a
>> should i write some php code for getting message ? if so where
>> should i store it ?
>>
>> thanx
>>
>
>