[OpenSIPS-Users] Getting Error when using NATHELPER module
Hi, I've configured OpenSIPs with Radius and now working to configure NAT on OpenSIPs using module mod_nathelper. After configuring, I'm getting following errors as listed down below; Apr 1 11:53:31 rose /usr/local/sbin/opensips[11386]: ERROR:nathelper:select_rtpp_node: script error -no valid set selected Apr 1 11:53:31 rose /usr/local/sbin/opensips[11386]: ERROR:nathelper:force_rtp_proxy_body: no available proxies Apr 1 11:53:46 rose /usr/local/sbin/opensips[11382]: ERROR:nathelper:select_rtpp_node: script error -no valid set selected Apr 1 11:53:46 rose /usr/local/sbin/opensips[11382]: ERROR:nathelper:unforce_rtp_proxy_f: no available proxies Apr 1 11:53:46 rose /usr/local/sbin/opensips[11386]: ERROR:nathelper:force_rtp_proxy: Unable to parse body And the configuration of OpenSIPs is listed below; loadmodule "dispatcher.so" #loadmodule "auth_diameter.so" loadmodule "aaa_radius.so" loadmodule "auth_aaa.so" loadmodule "permissions.so" loadmodule "nathelper.so" #Settings For Radius- #modparam("auth_diameter", "diameter_client_host", "localhost") modparam("aaa_radius", "radius_config","/usr/etc/radiusclient-ng/radiusclient.conf") modparam("acc", "aaa_url", "radius:/usr/etc/radiusclient-ng/radiusclient.conf") modparam("acc", "aaa_flag", 2) modparam("acc", "aaa_missed_flag", 3) modparam("acc", "aaa_extra","User-Name=$Au; \ Calling-Station-Id=$from; \ Called-Station-Id=$to; \ Sip-Translated-Request-URI=$ruri; \ Sip-RPid=$avp(s:rpid); \ Source-IP=$si; \ Source-Port=$sp; \ Canonical-URI=$avp(s:can_uri); \ Billing-Party=$avp(s:billing_party); \ Divert-Reason=$avp(s:divert_reason); \ X-RTP-Stat=$hdr(X-RTP-Stat); \ Contact=$hdr(contact); \ Event=$hdr(event); \ SIP-Proxy-IP=$avp(s:sip_proxy_ip); \ ENUM-TLD=$avp(s:enum_tld)") modparam("auth_aaa","aaa_url","radius:/usr/etc/radiusclient-ng/radiusclient.conf") modparam("auth", "rpid_prefix", ";screen=yes;privacy=off") modparam("auth", "rpid_avp", "$avp(s:rpid)") #modparam("uri","service_type",10) # - setting module-specific parameters --- modparam("permissions", "db_url", "mysql://opensips:opensip...@localhost /opensips") #- setting NAT module parameters - modparam("nathelper","ping_nated_only",1) modparam("nathelper", "natping_interval", 30) modparam("nathelper","natping_processes",1) modparam("nathelper","rtpproxy_sock","") modparam("nathelper","received_avp","$avp(i:42)") #modparam("nathelper", "sipping_bflag", 7) modparam("usrloc", "nat_bflag", 6) route{ if (!mf_process_maxfwd_header("10")) { sl_send_reply("483","Too Many Hops"); exit; } #NAT detection log("# Go to Route 3 for NAT Detection #"); route(3); if (has_totag()) { if (loose_route()) { if (is_method("BYE")) { setflag(1); # do accounting ... setflag(3); # ... even if the transaction fails } else if (is_method("INVITE")) { record_route(); } route(1); } else { if ( is_method("ACK") ) { if ( t_check_trans() ) { t_relay(); exit; } else { exit; } } sl_send_reply("404","Not here"); } exit; } # CANCEL processing if (is_method("CANCEL")) { if (t_check_trans()) t_relay(); exit; } t_check_trans(); # authenticate if from local subscriber (uncomment to enable auth) # authenticate all initial non-REGISTER request that pretend to be # generated by local subscriber (domain from FROM URI is local) ##if (!(method=="REGISTER") && from_uri==myself) /*no multidomain version*/ ##if (!(method=="REGISTER") && is_from_local()) /*multidomain version*/ ##{ ## if (!proxy_authorize("", "subscriber")) { ## proxy_challenge("", "0"); ## exit; ##
[OpenSIPS-Users] Getting Error when using NATHELPER module
Hi, I'm getting error when I configured Nathelper on OpenSIPs, the errors are listed down below; May 3 05:44:43 newtest /usr/local/sbin/opensips[2999]: ERROR:nathelper:select_rtpp_node: script error -no valid set selected May 3 05:44:43 newtest /usr/local/sbin/opensips[2999]: ERROR:nathelper:force_rtp_proxy_body: no available proxies May 3 05:45:04 newtest /usr/local/sbin/opensips[2998]: ERROR:nathelper:force_rtp_proxy: Unable to parse body and my configuration of OpenSIPs is listed below; loadmodule "dispatcher.so" loadmodule "avpops.so" loadmodule "permissions.so" loadmodule "aaa_radius.so" loadmodule "auth_aaa.so" #loadmodule "auth_diameter.so" loadmodule "nathelper.so" #Settings For Radius- #modparam("auth_diameter", "diameter_client_host", "localhost") modparam("aaa_radius", "radius_config","/usr/local/etc/radiusclient-ng/radiusclient.conf") modparam("acc", "aaa_url", "radius:/usr/local/etc/radiusclient-ng/radiusclient.conf") modparam("acc", "aaa_flag", 2) modparam("acc", "aaa_missed_flag", 3) modparam("acc", "aaa_extra","User-Name=$Au; \ Calling-Station-Id=$from; \ Called-Station-Id=$to; \ Sip-Translated-Request-URI=$ruri; \ Sip-RPid=$avp(s:rpid); \ Source-IP=$si; \ Source-Port=$sp; \ Canonical-URI=$avp(s:can_uri); \ Billing-Party=$avp(s:billing_party); \ Divert-Reason=$avp(s:divert_reason); \ X-RTP-Stat=$hdr(X-RTP-Stat); \ Contact=$hdr(contact); \ Event=$hdr(event); \ SIP-Proxy-IP=$avp(s:sip_proxy_ip); \ ENUM-TLD=$avp(s:enum_tld)") modparam("auth_aaa","aaa_url","radius:/usr/local/etc/radiusclient-ng/radiusclient.conf") modparam("auth", "rpid_prefix", ";screen=yes;privacy=off") #modparam("auth", "rpid_suffix", "@203.215.179.54>;screen=yes;privacy=off") modparam("auth", "rpid_avp", "$avp(s:rpid)") #modparam("uri","service_type",10) # - setting module-specific parameters --- modparam("dispatcher", "db_url", "mysql://opensips:opensip...@localhost /opensips") modparam("permissions", "db_url", "mysql://opensips:opensip...@localhost /opensips") #- setting NAT module parameters - modparam("nathelper","ping_nated_only",1) modparam("nathelper", "natping_interval", 30) modparam("nathelper","natping_processes",1) #modparam("nathelper","rtpproxy_sock","udp:127.0.0.1:7890") modparam("nathelper","received_avp","$avp(i:42)") #modparam("nathelper", "sipping_bflag", 7) modparam("usrloc", "nat_bflag", 6) route{ if (!mf_process_maxfwd_header("10")) { sl_send_reply("483","Too Many Hops"); exit; } #NAT detection log("# Go to Route 3 for NAT Detection #"); route(3); if (has_totag()) { # sequential request withing a dialog should # take the path determined by record-routing if (loose_route()) { if (is_method("BYE")) { setflag(1); # do accounting ... setflag(3); # ... even if the transaction fails } else if (is_method("INVITE")) { record_route(); } route(1); } else { if ( is_method("ACK") ) { if ( t_check_trans() ) { t_relay(); exit; } else { exit; } } sl_send_reply("404","Not here"); } exit; } #initial requests # CANCEL processing if (is_method("CANCEL")) { if (t_check_trans()) t_relay(); exit; } t_check_trans(); if (loose_route()) { xlog("L_ERR", "Attempt to route with preloaded Route's [$fu/$tu/$ru/$ci]"); if (!is_method("ACK")) sl_send_reply("403","Preload Route denied"); exit; } # record routing if (!is_method("REGISTER|MESSAGE")) record_route(); $avp(s:checksrc) = check_source_address("0"); log("##
Re: [OpenSIPS-Users] Getting Error when using NATHELPER module
Hello Ahmed, you script does not configure any rtpproxy to be used - the rtpproxy_sock parameter is empty: modparam("nathelper","rtpproxy_sock","") You need to set a valid link to a running rtpproxy : http://www.opensips.org/html/docs/modules/1.6.x/nathelper.html#id228332 Regards, Bogdan Ahmed Munir wrote: > Hi, > > I've configured OpenSIPs with Radius and now working to configure NAT > on OpenSIPs using module mod_nathelper. After configuring, I'm > getting following errors as listed down below; > > Apr 1 11:53:31 rose /usr/local/sbin/opensips[11386]: > ERROR:nathelper:select_rtpp_node: script error -no valid set selected > Apr 1 11:53:31 rose /usr/local/sbin/opensips[11386]: > ERROR:nathelper:force_rtp_proxy_body: no available proxies > Apr 1 11:53:46 rose /usr/local/sbin/opensips[11382]: > ERROR:nathelper:select_rtpp_node: script error -no valid set selected > Apr 1 11:53:46 rose /usr/local/sbin/opensips[11382]: > ERROR:nathelper:unforce_rtp_proxy_f: no available proxies > Apr 1 11:53:46 rose /usr/local/sbin/opensips[11386]: > ERROR:nathelper:force_rtp_proxy: Unable to parse body > > And the configuration of OpenSIPs is listed below; > > [...] > > Kindly state, how can I resolve this error in my above configuration. > Please advise. > > -- > Regards, > > Ahmed Munir > > > > > ___ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > -- Bogdan-Andrei Iancu www.voice-system.ro ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users