[Kamailio-Users] Kamailio RTP Proxy issues

Klaus Darilion klaus.mailinglists at pernau.at
Fri Oct 30 08:33:31 CET 2009



General Lee schrieb:
> Thank you Alex.
> 
> If the rtpproxy_offer/answer functions do not work, do you have any ideas on
> how I should route an INVITE without SDP and ACK with SDP using
> force_rtp_proxy similar to the example below?

It is the s flag which was originally used (should be now deprecated, 
but people report that offer/answer does not work).


> route {
> ...
>     if (is_method("INVITE")) {
>         if (has_sdp()) {
>             if (rtpproxy_offer())

here: force_rtpproxy();

>                 t_on_reply("1");
>         } else {
>             t_on_reply("2");
>         }
>     }
>     if (is_method("ACK") && has_sdp())
>         rtpproxy_answer();

here: force_rtpproxy("s");

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

here: force_rtpproxy();

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

here: force_rtpproxy("s");

> ...
> }
> 



regards
klaus



More information about the Users mailing list