[SR-Users] AliasDB module & Forking

Marino Mileti marino.mileti at alice.it
Mon Nov 3 10:26:22 CET 2014


Hi guys,

i've implemented a parallel forking using aliasdb module. Everything is
working good if the first client (first row in dbaliases table) in online.
When I try to make a call to a specific number three clients rings together.

If the first client isn't online no call is forwarded to other clients :( I
know that with alias_db_lookup() the first record from DB is the new R-URI
and the others are added like branches. But if the R-URI in unreachable how
can try to call the other branches?

This is location script..

if(alias_db_lookup("dbaliases")){                                                     
        $sht(a=>$ci) = $sel(contact.uri);                      
}                                                                                                                                                                                                                                            
$avp(oexten) = $rU;                                                    
if (!lookup("location")) {                                  
        $var(rc) = $rc;                                                                 
        t_newtran();                                                                           
        switch ($var(rc)) {                                                                    
                 case -1:                                                                       
                          xlog("L_INFO","No contact found\n");                                   
                          exit;                                                                  
                 case -3:                                                                       
                          send_reply("404", "Erorr");    
                          exit;                                                      
                 case -2:                                        
                          send_reply("405", "Method Not Allowed");
                          exit;                       
        }                                            
}

Any suggest? 
My script still log "No contanct found" until timeout :(

Many thanks



-----
Marino Mileti
--
View this message in context: http://sip-router.1086192.n5.nabble.com/AliasDB-module-Forking-tp132128.html
Sent from the Users mailing list archive at Nabble.com.



More information about the sr-users mailing list