[Serusers] ser and * voicemail

Rick Thompson rthompson at vir2com.com
Fri Sep 30 21:57:46 CEST 2005


Hi All

 

I'm working with a ser script, written by someone that's gone now, that
routes inbound calls to an asterisk server for voicemail. The
failure_route[1], sends calls to asterisk and the IVR plays if the ua is
unreachable (not in location) "404", "408" or  the ua is busy "486" but it
doesn't when the inv time exceeds 30 sec (rings for 30 sec or more). The
call just stops ringing and 10 sec later gets a fast busy. Any ideas from
anyone would be greatly appreciated. Here is the code I'm working with.

 

 

failure_route[1] {

            xlog("L_ALERT", "%Tf %mf ****** Failure Route 1: <%rm> <%rr>
<%rs>\n");

            if(t_check_status("487")) {

                        break;

            };

 

            if(method=="INVITE" && (t_check_status("486|408|404|480"))) {

                        if(avp_db_load("$ruri", "s:mailbox"))

                                    avp_pushto("$ruri/username",
"s:mailbox");

                        prefix("V");

                        rewritehostport("A.B.C.D:5060");

                        append_branch();

                        xlog("L_ALERT", "****** Transfering to
Voicemail\n");

                        t_on_reply("1");

                        t_relay();

            };

}

Thanks

 

Rick

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20050930/26270834/attachment.htm>


More information about the sr-users mailing list