[SR-Users] SMS module big error ????????????

Daniel-Constantin Mierla miconda at gmail.com
Wed Oct 27 11:36:40 CEST 2010



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... at 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20101027/f1f88991/attachment-0001.htm>


More information about the sr-users mailing list