Andrew,

I am trying to use rtpproxy_offer/answer on the ONREPLY ROUTE but I am
having some syntax issues. Here is the example I am using. Any help
with the syntax appreciated.


route {
...
    if (is_method("INVITE")) {
        if (has_sdp()) {
            if (rtpproxy_offer())
                t_on_reply("1");
        } else {
            t_on_reply("2");
        }
    }
    if (is_method("ACK") && has_sdp())
        rtpproxy_answer();
...
}

onreply_route[1]
{
...
    if (has_sdp())
        rtpproxy_answer();
...
}

onreply_route[2]
{
...
    if (has_sdp())
        rtpproxy_offer();
...
}

On Mon, Jun 6, 2011 at 5:37 AM, Andrew Pogrebennyk
<andrew.pogreben...@portaone.com> wrote:
> Mokhtar, could you please make sure that you are calling route(RTPPROXY) in
> reply route as well, as Alex suggested?
>
> On 03.06.2011 16:33, Mokhtar Bengana wrote:
>>
>> This is how I configured rtpproxy. Not sure why rtpproxy is not
>> engaged both ways. Thanks for your help.
>
> --
> Sincerely,
> Andrew Pogrebennyk
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to