I have been using engage_media_proxy in my script, but it seems to cause
problems when I failover in the dynamic routing module.
This is the scenario:

1. Incoming call
2. Engage media proxy
3. Try first GW (which is down)
4. Failure route
5. Try next GW
6. Next GW sends Session progress & invite
7. Media proxy module 'fixes' my SDP contact twice

My SIP message end up with duplicated SDP contact info.  For example: c=IN
IP4 33.66.22.1133.66.22.11

If the first gateway works, this does not happen.  In fact it works
perfectly.  But I guess engage_media_proxy or the dialog module is having
an issue with a failure scenario?

My failure route is pretty simple:

failure_route[4] {
        xlog("L_INFO", "Failure Route: $rm,  $fu,  $ru\n");

        if (use_next_gw()) {
                xlog("L_INFO", "Trying next gateway" );
                t_relay();
                exit;
        } else {
                xlog( "L_INFO", "Exhausted gateway list" );
                t_reply ("503", "Service not available");
                exit;
        }
}

Should I switch to use_media_proxy/end_media_session if I want to expect
failovers?  Or could I be doing something wrong?

Thanks guys
Charles
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to