[Serusers] two gateways
Steve Blair
blairs at isc.upenn.edu
Thu Dec 2 14:14:42 CET 2004
Ron:
The failure_route will be activated when a transaction fails. This is
different
than a route because it is triggered by the failure of a previously executed
command. The reason I asked about the word "automatically" is that a
failure_route is activated after an initial attempt, in this case a
t_relay command,
fails. It will not be activated when an invite for a user is first
received by
the proxy. An example follows:
#
# Redirect user to vm if not availabile?
#
if (is_user_in("Request-URI", "voicemail")) {
t_on_failure("6");
setflag(6);
log(1, "[SER]: Flag for VM redirect successful. \n");
};
failure_route[6] {
xlog("L_INFO", "\n[SER]: START FAILURE BLOCK #6 Unavailable user:
Time: [%Tf] Method: <%rm> From uri <%fu> To < %tu> IP source
address <%is>
R-uri: <%ru> Contact Header: <%ct> \n\n");
revert_uri();
rewritehostport("voicemailserver.myco.com:5070");
append_branch();
t_relay_to_udp("voicemailserver.myco.com", "5070");
break;
}
-Steve
Ron Ramos wrote:
>No idea what a failure_route do. But that sounds like what I need.
>Do you have any sample configuration for that. Thank you
>
>-----Original Message-----
>From: Steve Blair [mailto:blairs at isc.upenn.edu]
>Sent: Thursday, December 02, 2004 4:44 AM
>To: Klaus Darilion
>Cc: ron at silverbackasp.com; serusers at lists.iptel.org
>Subject: Re: [Serusers] two gateways
>
>
>
> That is what I do too but I am not sure if this fits with Ron's
>definition of "automatically". Does it Ron?
>
>Klaus Darilion wrote:
>
>
>
>>use a failure_route
>>
>>klaus
>>
>>Ronald Ramos wrote:
>>
>>
>>
>>>hi,
>>>
>>>How can i configure my sip proxy to automatically know that the PSTN
>>>gateway
>>>is down and transfer all calls to another gateway?
>>>
>>>thank you
>>>
>>>regards,
>>>ron
>>>
>>>_______________________________________________
>>>Serusers mailing list
>>>serusers at lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
>>>
>>>
>>>
>>>
>>_______________________________________________
>>Serusers mailing list
>>serusers at lists.iptel.org
>>http://lists.iptel.org/mailman/listinfo/serusers
>>
>>
--
ISC Network Engineering
The University of Pennsylvania
3401 Walnut Street, Suite 221A
Philadelphia, PA 19104
voice: 215-573-8396
215-746-8001
fax: 215-898-9348
sip:blairs at upenn.edu
More information about the sr-users
mailing list