[SR-Users] SMS module not found parameter.

peter_green lion betergreen at live.com
Tue Nov 2 06:32:13 CET 2010






  


    
  
  
    Hello,

    

    On 10/25/10 12:34 PM, peter_green lion wrote:
    
      
      hi all,

      i am a new bie in kamailio. i use SMS module to send message to
      GSM net work.

      

      my kamailio.cfg is :

      

      modparam("sms", "modems",
      "wavecom[d=/dev/ttyS;c=+84900000022;b=57600; m=new;l=20]")

      modparam("sms", "networks", "D1[m=10]; d2[m=10]")

      modparam("sms", "links", "wavecom[D1;d2]")

      modparam("sms", "default_net", "localhost")

      modparam("sms", "domain_str", "D1.d2")

      modparam("sms", "max_sms_parts", 10)

      modparam("sms", "use_contact", 1)

      modparam("sms", "sms_report_type", 1)

      

      

      if(method == "MESSAGE"){

                      if(has_body("text/plain")){

      

                             
        sms_send_msg_to_net("D1");

      

                     

                      }

      

              }

      

      

      

      but when i start kamailio 

      the log show :

      Oct 25 06:28:26 localhost kamailio: ERROR: <core>
      [modparam.c:143]: set_mod_param_regex: parameter
      <domain_str> not found in module <sms>

      Oct 25 06:28:26 localhost kamailio: : <core> [cfg.y:3333]:
      parse error in config file /usr/local/etc/kamailio/kamailio.cfg,
      line 173, column 42: Can't set module parameter

    
    looking in the sources, I see the parameter is exported under name
    "domain".

    

    Try:

    modparam("sms", "domain", ".....")

    

    Cheers,

    Daniel

    

thanks Daniel,
i have fix it, but i have another problem that my NOKIA phone doesn`t support full AT command.
so can anyone suggest me which model nokia phone support full AT command or use as GSM modem in SMS module????
thanks all for help me.
Peter Green

    -- 
Daniel-Constantin Mierla
http://www.asipto.com 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20101102/6e326225/attachment.htm>


More information about the sr-users mailing list