El Miércoles, 26 de Noviembre de 2008, Brett Nemeroff escribió: > Why not just call a normal route after you send your negative reply?
Because I've already coded the needed logic in a failure_route that would be runned when a negative reply comes from the callee. But I want the same behaviour when I (OpenSIPS) send the negative reply. I could do the following (but it's not very cool): --------- route[TO_USER] { t_on_failure("TO_USER"); # some_custom_query... if $rc = ... { # I decide to reject the call # First create the transaction ("failure_route" could have sense) t_newtran(); route(FAILURE); exit; } # do loockup and so... t_relay(); } failure_route[TO_USER] { route(FAILURE); } route[FAILURE] { if $fU == "alice" { $ru = "sip:[EMAIL PROTECTED]"; append_branch(); } } --------- -- Iñaki Baz Castillo _______________________________________________ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users