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

-- 
Daniel-Constantin Mierla
http://www.asipto.com