[OpenSIPS-Users] Unresolvable destination

Miha miha at softnet.si
Wed Apr 11 15:54:36 CEST 2012


HI,

can someone help me out why I am getting:

Status: 476 Unresolvable destination (476/TM)

Thanks!

Miha

####### Global Parameters #########

debug=3
log_stderror=yes
log_facility=LOG_LOCAL0

fork=yes
children=4

disable_tcp=no

dns_try_ipv6=no

auto_aliases=no

/* bind on the machine's virtual ip (note: enable 
sys.net.ipv4.ip_nonlocal_bind) */
listen=udp:xxx.xxx.xxx.xxx:5060
listen=tcp:xxx.xxx.xxx.xxx:5060

####### Modules Section ########

#set module path
mpath="/usr/local/lib/opensips/modules/"

loadmodule "db_mysql.so"
loadmodule "signaling.so"
loadmodule "sl.so"
loadmodule "tm.so"
loadmodule "rr.so"
loadmodule "uri.so"
loadmodule "dialog.so"
loadmodule "maxfwd.so"
loadmodule "textops.so"
loadmodule "mi_fifo.so"
loadmodule "dispatcher.so"
loadmodule "load_balancer.so"

# ----------------- setting module-specific parameters ---------------

modparam("mi_fifo", "fifo_name", "/tmp/opensips_fifo")

modparam("dialog", "db_mode", 1)
modparam("dialog", "db_url", "mysql://opensips:opensips@localhost/opensips")

modparam("rr", "enable_double_rr", 1)
modparam("rr", "append_fromtag", 1)

modparam("tm", "fr_timer", 2)

modparam("dispatcher", "db_url", 
"mysql://opensips:opensips@localhost/opensips")
modparam("dispatcher", "ds_ping_method", "OPTIONS")
modparam("dispatcher", "ds_ping_interval", 5)
modparam("dispatcher", "ds_probing_threshhold", 2)
modparam("dispatcher", "ds_probing_mode", 1)

modparam("load_balancer", "db_url", 
"mysql://opensips:opensips@localhost/opensips")
modparam("load_balancer", "probing_method", "OPTIONS")
modparam("load_balancer", "probing_interval", 5)

####### Routing Logic ########

# based on 
http://www.opensips.org/index.php?n=Resources.DocsTutLoadbalancing
route{



         if (!mf_process_maxfwd_header("10")) {
                 sl_send_reply("483","Too Many Hops");
                 exit;
         }
         if (!has_totag()) {
                 # initial request
                 record_route();
         }
         else {
                 # sequential request - obey the indicated route
                 loose_route();
                 t_relay();
                 exit;
         }

         # handle cancel and re-transmissions
         if ( is_method("CANCEL") ) {
                 if ( t_check_trans() )
                         t_relay();
                 exit;
         }

         # from now on we have only the initial requests

         # select the node that'll handle the call (load balanced)
         # the method used is different for invite/register requests
         # unknown methods are rejected here

if(src_ip==xxx.xxx.xxx.xxx) {

         if (is_method("INVITE")) {



                         if (!load_balance("1","pstn","1")) {
                                 send_reply("503","Service Unavailable");
                                 exit;
                         }

         }
         else

                 if (is_method("REGISTER")) {
                 if (!ds_select_dst("1", "0")) {
                         send_reply("503","Service Unavailable");
                         exit;
                 }
         }
         else {
                 send_reply("405","Method Not Allowed");
                 exit;
         }

         # route the request
         if (!t_relay()) {
                 sl_reply_error();
         }
}

else {
         $du = "xxx.xxx.xxx.xxx";
         t_relay();
}

}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20120411/55d1873f/attachment.htm>


More information about the Users mailing list