On 10/26/10 11:39 AM, peter_green lion wrote:
hi all,
i have configure SMS module and have some error. please help to fix it.
my configure in kamailio :
modparam("sms", "modems",
"nokia[d=/dev/ttyUSB0;p=0000;m=old;s=1;l=10;r=20]")
modparam("sms", "networks", "MOBIFONE[m=10]")
modparam("sms", "links", "nokia[MOBIFONE]")
if(method == "MESSAGE"){
if(has_body("text/plain")){
sms_send_msg_to_net("MOBIFONE");
}
}
but i start kamailio, log show that:
Oct 26 05:32:35 localhost /usr/local/sbin/kamailio[13594]: ERROR: sms
[libsms_modem.c:282]: Modem is not registered to the network
Oct 26 05:32:35 localhost /usr/local/sbin/kamailio[13594]: WARNING:
sms [libsms_getsms.c:256]: something happend with the modem -> was
reinit -> let's retry
Oct 26 05:32:36 localhost /usr/local/sbin/kamailio[13594]: WARNING:
sms [libsms_modem.c:356]: modem wants the PIN again!
Oct 26 05:32:36 localhost /usr/local/sbin/kamailio[13594]: WARNING:
sms [libsms_modem.c:370]: re -init the modem!!
Oct 26 05:32:36 localhost /usr/local/sbin/kamailio[13594]: INFO: sms
[libsms_modem.c:221]: init modem nokia on /dev/ttyUSB0.
Oct 26 05:32:37 localhost /usr/local/sbin/kamailio[13594]: INFO: sms
[libsms_modem.c:250]: Checking if Modem is registered to the network
Oct 26 05:32:38 localhost /usr/local/sbin/kamailio[13594]: NOTICE: sms
[libsms_modem.c:275]: Waiting 2 sec. before retrying
Oct 26 05:33:09 localhost last message repeated 10 times
Oct 26 05:33:38 localhost last message repeated 9 times
Oct 26 05:33:40 localhost /usr/local/sbin/kamailio[13594]: ERROR: sms
[libsms_modem.c:282]: Modem is not registered to the network
Oct 26 05:33:40 localhost /usr/local/sbin/kamailio[13594]: WARNING:
sms [libsms_getsms.c:256]: something happend with the modem -> was
reinit -> let's retry
Oct 26 05:33:41 localhost /usr/local/sbin/kamailio[13594]: WARNING:
sms [libsms_modem.c:356]: modem wants the PIN again!
Oct 26 05:33:41 localhost /usr/local/sbin/kamailio[13594]: WARNING:
sms [libsms_modem.c:370]: re -init the modem!!
Oct 26 05:33:41 localhost /usr/local/sbin/kamailio[13594]: INFO: sms
[libsms_modem.c:221]: init modem nokia on /dev/ttyUSB0.
Oct 26 05:33:41 localhost /usr/local/sbin/kamailio[13594]: INFO: sms
[libsms_modem.c:250]: Checking if Modem is registered to the network
Oct 26 05:33:42 localhost /usr/local/sbin/kamailio[13594]: NOTICE: sms
[libsms_modem.c:275]: Waiting 2 sec. before retrying
so i cannot send ok receive sms.
with contact :+84...@sipdomain
my nokia phone :6020
i can send sms via nokia by gnokii.
please help or suggest to get it wok.
First messages are related to the fact the modem is not initialized. So
you have to check in the logs of modem's driver why is not connecting to
the network.
Cheers,
Daniel
--
Daniel-Constantin Mierla
http://www.asipto.com