That's a bummer. I recently had my motherboard replaced, too. Had to
reformat, and reinstall from scratch. Luckily my hard disk survived and i
used it as backup.
I'll tell you what. Let me write it over the weekend. When I submit the
patch, you can add your comments.
This is my sample script for generating patches according to the list. You
run it from anywhere (just make sure you specify the correct kannelDir) and
takes the file or list of files as arguments (as they are called from the
gateway directory):
-> cvsdiff gw/wap-appl.c
Sources are identical. Patch "~/wap-appl.diff" not created
BR,
Nikos
-> cat bin/cvsdiff
#!/bin/bash
kannelDir="kannel/gateway"
if [ $# -lt 1 ]; then
echo "Please supply changed file(s)!"
exit
fi
cd $kannelDir >/dev/null
let multi=0
for i in $@; do
let multi="$multi + 1"
if [ $multi -gt 1 ]; then
break
fi
done
if [ $multi -eq 1 ]; then
output=${1##*/}
output=${output%.*}
if [ -z "$output" ]; then
output="kannel"
fi
else
output="kannel"
fi
cvs diff -Nau $@ > ~/${output}.diff
let res="$?"
if [ $res -eq 1 ]; then
echo "Kannel patch \"~/${output}.diff\" succesfully created"
elif [ $res -eq 0 ]; then
echo "Sources are identical. Patch \"~/${output}.diff\" not created"
\rm -f ~/${output}.diff
else
echo "Failed to create kannel patch \"~/${output}.diff\" ($res)"
fi
----- Original Message -----
From: "Alvaro Cornejo" <[email protected]>
To: "Nikos Balkanas" <[email protected]>; "Tilani gunawardena"
<[email protected]>
Cc: <[email protected]>
Sent: Friday, March 12, 2010 3:51 PM
Subject: Re: Cant receive messages Please HELP
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