[Serusers] Missed Call Return

Andreas Granig andreas.granig at inode.info
Tue Oct 11 17:41:26 CEST 2005


I wrote:
> So you're right, it would be nicer to call avp_db_delete before 
> avp_db_store in failure_route.

So finally the corrected failure-route looks like this (needs an 
additional DB query though):

failure_route[2] {
     if(t_check_status("480|486") && method == "INVITE") {
         avp_write("$from", "$callback");
         revert_uri();
         avp_db_delete("$ruri", "$callback/callback");
         avp_db_store("$ruri", "$callback/callback");
         avp_delete("$callback");
     }
}

Andy




More information about the sr-users mailing list