[OpenSER-Users] Dispatcher
    Thomas Deillon 
    tdeillon at gmail.com
       
    Wed Aug  1 14:56:20 CEST 2007
    
    
  
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 at .*")
  {
   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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/users/attachments/20070801/6d5aa8b6/attachment.htm 
    
    
More information about the Users
mailing list