<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Some domain name which is not DNS resolvable by opensips? check the
logs.<br>
<br>
Regards,<br>
Bogdan<br>
<br>
On 04/11/2012 04:54 PM, Miha wrote:
<blockquote cite="mid:4F858D1C.1050203@softnet.si" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<small>HI,<br>
<br>
can someone help me out why I am getting:<br>
<br>
Status: 476 Unresolvable destination (476/TM) <br>
<br>
Thanks!<br>
<br>
Miha<br>
<br>
####### Global Parameters #########<br>
<br>
debug=3<br>
log_stderror=yes<br>
log_facility=LOG_LOCAL0<br>
<br>
fork=yes<br>
children=4<br>
<br>
disable_tcp=no<br>
<br>
dns_try_ipv6=no<br>
<br>
auto_aliases=no<br>
<br>
/* bind on the machine's virtual ip (note: enable
sys.net.ipv4.ip_nonlocal_bind) */<br>
listen=udp:xxx.xxx.xxx.xxx:5060<br>
listen=tcp:</small><small>xxx.xxx.xxx.xxx</small><small>:5060<br>
<br>
####### Modules Section ########<br>
<br>
#set module path<br>
mpath="/usr/local/lib/opensips/modules/"<br>
<br>
loadmodule "db_mysql.so"<br>
loadmodule "signaling.so"<br>
loadmodule "sl.so"<br>
loadmodule "tm.so"<br>
loadmodule "rr.so"<br>
loadmodule "uri.so"<br>
loadmodule "dialog.so"<br>
loadmodule "maxfwd.so"<br>
loadmodule "textops.so"<br>
loadmodule "mi_fifo.so"<br>
loadmodule "dispatcher.so"<br>
loadmodule "load_balancer.so"<br>
<br>
# ----------------- setting module-specific parameters
---------------<br>
<br>
modparam("mi_fifo", "fifo_name", "/tmp/opensips_fifo")<br>
<br>
modparam("dialog", "db_mode", 1)<br>
modparam("dialog", "db_url",
"mysql://opensips:opensips@localhost/opensips")<br>
<br>
modparam("rr", "enable_double_rr", 1)<br>
modparam("rr", "append_fromtag", 1)<br>
<br>
modparam("tm", "fr_timer", 2)<br>
<br>
modparam("dispatcher", "db_url",
"mysql://opensips:opensips@localhost/opensips")<br>
modparam("dispatcher", "ds_ping_method", "OPTIONS")<br>
modparam("dispatcher", "ds_ping_interval", 5)<br>
modparam("dispatcher", "ds_probing_threshhold", 2)<br>
modparam("dispatcher", "ds_probing_mode", 1)<br>
<br>
modparam("load_balancer", "db_url",
"mysql://opensips:opensips@localhost/opensips")<br>
modparam("load_balancer", "probing_method", "OPTIONS")<br>
modparam("load_balancer", "probing_interval", 5)<br>
<br>
####### Routing Logic ########<br>
<br>
# based on <a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="http://www.opensips.org/index.php?n=Resources.DocsTutLoadbalancing">http://www.opensips.org/index.php?n=Resources.DocsTutLoadbalancing</a><br>
route{<br>
<br>
<br>
<br>
if (!mf_process_maxfwd_header("10")) {<br>
sl_send_reply("483","Too Many Hops");<br>
exit;<br>
}<br>
if (!has_totag()) {<br>
# initial request<br>
record_route();<br>
}<br>
else {<br>
# sequential request - obey the indicated route<br>
loose_route();<br>
t_relay();<br>
exit;<br>
}<br>
<br>
# handle cancel and re-transmissions<br>
if ( is_method("CANCEL") ) {<br>
if ( t_check_trans() )<br>
t_relay();<br>
exit;<br>
}<br>
<br>
# from now on we have only the initial requests<br>
<br>
# select the node that'll handle the call (load
balanced)<br>
# the method used is different for invite/register
requests<br>
# unknown methods are rejected here<br>
<br>
if(src_ip==</small><small>xxx.xxx.xxx.xxx</small><small>) {<br>
<br>
if (is_method("INVITE")) {<br>
<br>
<br>
<br>
if (!load_balance("1","pstn","1")) {<br>
send_reply("503","Service
Unavailable");<br>
exit;<br>
}<br>
<br>
}<br>
else <br>
<br>
if (is_method("REGISTER")) {<br>
if (!ds_select_dst("1", "0")) {<br>
send_reply("503","Service Unavailable");<br>
exit;<br>
}<br>
}<br>
else {<br>
send_reply("405","Method Not Allowed");<br>
exit;<br>
}<br>
<br>
# route the request<br>
if (!t_relay()) {<br>
sl_reply_error();<br>
}<br>
}<br>
<br>
else {<br>
$du = "</small><small>xxx.xxx.xxx.xxx</small><small>"; <br>
t_relay();<br>
}<br>
<br>
}</small>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
</body>
</html>