[OpenSIPS-Users] where is has_sdp()

Jeff Chua jeff.chua.linux at gmail.com
Sun Apr 17 15:19:14 CEST 2011


On Sun, Apr 17, 2011 at 7:26 PM, Iñaki Baz Castillo <ibc at aliax.net> wrote:
> 2011/4/17 Jeff Chua <jeff.chua.linux at gmail.com>:
>> Thanks for the link. I'll try it out. Does anyone has a full
>> opensips.cfg that works with NAT? It seems the "codes" are ...
>> partially shown only ... and I can't seems to figure it out as a whole
>
> What is your problem exactly? What does it mean "codes are partially shown"?

My problem is I'm new to opensips and when I looked at the rtpproxy
module, there's are partial codes in the as shown. I just don't know
how to put it all together.


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();
...
}


Thanks,
Jeff



More information about the Users mailing list