[Serusers] Forwarding and mediaproxy

Shaun Hofer shaun.hofer at voxpak.com
Wed Jan 31 07:19:30 CET 2007


Hi,

I wish to forward busy and no answer calls to Asterisk, and have the RTP 
stream go through mediaproxy. At the moment, some calls use mediaproxy and 
some don't. If the call is not using mediaproxy to get it too. I have noticed 
that I can't call use_media_proxy() from failed route. I don't want to use 
mediaproxy for every call between UA's, if not needed. Any suggestions on how 
I might be able to get calls to use mediaproxy if forwarded ?

current fail route:

failure_route[1] {
        if (t_check_status("487")) {
                break;
        };
        if (isflagset(26) && t_check_status("486")) {
                avp_delete("s:fwdbusy");
                resetflag(26);
                revert_uri();
                rewritehostport("202.168.41.218:5060");
                append_branch();
                t_relay_to_udp("202.168.41.218", "5060");
                break;
        };
        if (isflagset(27) && t_check_status("408")) {
                avp_delete("s:fwdnoanswer");
                resetflag(27);
 		revert_uri();
                rewritehostport("202.168.41.218:5060");
                append_branch();
                t_relay_to_udp("202.168.41.218", "5060");
                break;
	};
        end_media_session();
}


Thanks
-- 
Shaun Hofer



More information about the sr-users mailing list