Hello,
can you run in debug=7 and log_stderror=yes and watch the debug
messages? If you have issues understanding what is happening, then just
forward it to me along with dispatcher.list file.
Daniel
On 08/01/07 15:56, Thomas Deillon wrote:
Hi,
I'm using OpenSER as PROXY and REGISTRAR server, a Cisco as Gateway
and 2 Asterisks (using dispatcher) as Voicemail and conference Servers.
It works perfectly on load-balancing, but not in failover because I
never go on the failure route.
Do you have a idea (a part of my config file below) ?
rq: Just for information, the 12 is the milliwatt() function on Asterisks.
my openser.cfg
modparam("mi_fifo", "fifo_name", "/tmp/openser_fifo")
modparam("usrloc", "db_url",
"mysql://openser:openser@localhost/openser")
modparam("usrloc", "db_mode", 1)
modparam("dispatcher","list_file","/usr/local/etc/openser/dispatcher.list")
modparam("dispatcher","flags",2)
modparam("dispatcher", "dst_avp", "$avp(i:271)")
modparam("dispatcher", "grp_avp", "$avp(i:272)")
modparam("dispatcher", "cnt_avp", "$avp(i:273)")
modparam("dispatcher", "force_dst", 1)
route {
[...]
if (method=="INVITE")
{
if (uri=~"sip:12@.*")
{
xlog( "L_ERR", "A: $rm $fu:$op -> $du AVP: $avp(i:271),
$avp(i:272), $avp(i:273)\n" );
ds_select_dst("1", "4");
#t_relay();
xlog( "L_ERR", "B: $rm $fu:$op -> $du AVP: $avp(i:271),
$avp(i:272), $avp(i:273)\n" );
t_on_failure("1");
}
}
[...]
}
failure_route[1]
{
xlog( "L_ERR", "C: $rm $fu:$op -> $du\n" );
if(t_check_status("408"))
{
ds_mark_dst();
ds_next_dst();
}
else { t_reply("501", "Not Implemented"); }
xlog( "L_ERR", "D: $rm $fu:$op -> $du\n" );
}
Cheers,
Thomas
------------------------------------------------------------------------
_______________________________________________
Users mailing list
Users(a)openser.org
http://openser.org/cgi-bin/mailman/listinfo/users