[Serusers] Setting up announcement on reply to 4xx 5xx 6xx messages

Hendrik Scholz hscholz at raisdorf.net
Thu Mar 30 21:44:13 CEST 2006


Hi!

hgaillac-sip at yahoo.fr wrote:
> I wish to play a recorded announcement on reply to 4xx
> 5xx 6xx messages .

Use t_on_failure() to trigger the transaction stateful handling
of failures in SER. Inside your failure route use something like this:

if (t_check_status("480")) {
   rewriteuser("someannouncementindicator");
   t_relay_to_udp("10.1.1.1", "5060"); # add your Asterisk here
   break;
}

This has been documented on onsip.org.

Cheers,
  Hendrik

P.S. Please refrain from crossposting! (asterisk-users@ removed)

-- 
Hendrik Scholz - <hscholz at raisdorf.net> - http://www.wormulon.net/




More information about the sr-users mailing list