Displaying 5 results from an estimated 5 matches for "failure_route".
2005 Mar 06
1
SER -> Asterisk voicemail on busy/unavailable. Anyone did it? (googling says NO)
...tflag (1);
break;
}
if (!t_relay()) {
sl_send_reply("404", "Not Found");
break;
};
# };
break;
};
failure_route[1] {
revert_uri();
forward(69.70.x.x,5060);
break();
}
Asterisk sip.conf:
[ser]
host=69.70.x.x
context=ser
type=friend
disallow=all
allow=ulaw
allow=alaw
allow=g729
allow=g723.1
allow=gsm
allow=ilbc
nat=yes
extensions.conf:
[ser]
include => vm
include => messagecen...
2007 Jan 05
1
integrating with Asterisk and OpenSER for Voicemail
...quot;);
# backup R-URI
avp_write("$ruri","$avp(inv)");
setflag(2);
};
..............
....
route(1);
}
route[1] {
if(isflagset(2))
{
t_on_failure("1");
};
}
failure_route[1] {
log("----------------------------------------- \n");
if (t_was_cancelled()) {
xdbg("transaction was cancelled by UAC\n");
return;
}
# restore initial uri
avp_pushto("$ruri", "$avp(inv)&qu...
2005 Jul 12
0
Asterisk not accepting user input .. pls help !!
...if (!lookup("location")) {
sl_send_reply("404", "Not Found");
break;
};
timeout occurred ... now to forward to Asterisk's voicemail service
if(method == "INVITE")
{
t_on_failure("1");
};
};
t_relay();
# leave voicemail
#
failure_route[1] {
log(1,"Activating voicemail!!\n");
revert_uri();
# redirect now to Asterisk (on the same machine) !
rewritehostport("202.125.25.102:5061");
append_branch();
t_relay_to_udp("202.125.25.106","5061");
}
--------------------
2) Asterisk
-...
2005 Sep 28
0
Problem redirecting to voicemail through a SIP proxy (Looks like a bug)
...ite or reinvite going to the gateway which I think
may be what is confusing it.
(I know this is the asterisk users list, but here is a Ser.cfg excerpt for
anyone with experience with both. )
##
# User did not answer phone, or could not connect, or is on the phone and
does not use call waiting.
##
failure_route[3] {
if(isflagset(10)) {
if(t_check_status("486")) {
if (!subst_user('/^/*voicemail-busy-/')){
log(1,"Err in subst_user\n");
}
xlog("L_ERR", "Relaying to voicemail Busy...
2005 Jul 06
0
Asterisk voicemail
...uot;1");
};
};
route(1);
}
# -------------------------------
# Route Processing
# -------------------------------
route[1]{
if(!t_relay()){
sl_reply_error();
};
}
route[2]{
if(!save("location")){
sl_reply_error();
}
}
# voicemail activation!!
#
failure_route[1] {
log(1,"Activating voicemail!!\n");
forward(202.122.25.106, 5061);
}
---------------------------
--------
--------
ASTERISK
--------
--------
voicemail.conf
---------------
[default]
1012 => 1234, YY, ylim@test.net
sip.conf
-----------
port=5061 ; UDP Port to bind t...