<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<br><br>

  
<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">
    
  
  
    Hello,<br>
    <br>
    On 10/25/10 12:34 PM, peter_green lion wrote:
    <blockquote cite="mid:SNT121-W361FA5B2230574157ADED2BC410@phx.gbl">
      <style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}

</style>
      hi all,<br>
      i am a new bie in kamailio. i use SMS module to send message to
      GSM net work.<br>
      <br>
      my kamailio.cfg is :<br>
      <br>
      modparam("sms", "modems",
      "wavecom[d=/dev/ttyS;c=+84900000022;b=57600; m=new;l=20]")<br>
      modparam("sms", "networks", "D1[m=10]; d2[m=10]")<br>
      modparam("sms", "links", "wavecom[D1;d2]")<br>
      modparam("sms", "default_net", "localhost")<br>
      modparam("sms", "domain_str", "D1.d2")<br>
      modparam("sms", "max_sms_parts", 10)<br>
      modparam("sms", "use_contact", 1)<br>
      modparam("sms", "sms_report_type", 1)<br>
      <br>
      <br>
      if(method == "MESSAGE"){<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(has_body("text/plain")){<br>
      <br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font style="" color="#548dd4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        sms_send_msg_to_net("D1")</font>;<br>
      <br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
      <br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
      <br>
      <br>
      <br>
      but when i start kamailio <br>
      the log show :<br>
      Oct 25 06:28:26 localhost kamailio: ERROR: &lt;core&gt;
      [modparam.c:143]: set_mod_param_regex: parameter
      &lt;domain_str&gt; not found in module &lt;sms&gt;<br>
      Oct 25 06:28:26 localhost kamailio: : &lt;core&gt; [cfg.y:3333]:
      parse error in config file /usr/local/etc/kamailio/kamailio.cfg,
      line 173, column 42: Can't set module parameter<br>
    </blockquote>
    looking in the sources, I see the parameter is exported under name
    "domain".<br>
    <br>
    Try:<br>
    modparam("sms", "domain", ".....")<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br><br>thanks Daniel,<br>i have fix it, but i have another problem that my NOKIA phone doesn`t support full AT command.<br>so can anyone suggest me which model nokia phone support full AT command or use as GSM modem in SMS module????<br>thanks all for help me.<br>Peter Green<br>
    <pre class="ecxmoz-signature">-- <br>Daniel-Constantin Mierla<br><a class="ecxmoz-txt-link-freetext" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a></pre>                                               </body>
</html>