[OpenSIPS-Users] conditional call forwarding and mediaproxy

dragos at sctp.ro dragos at sctp.ro
Fri Jan 20 11:26:16 CET 2012


Hello

> Hi,
>
> On Jan 19, 2012, at 9:03 PM, dragos at sctp.ro wrote:
>
>> Hi
>>
>> I am trying to do conditional call-forwarding with opensips and I am
>> using
>> mediaproxy as RTP relay. All good until it comes to media.
>> When callee(after call forwarding) sends early media it suddenly
>> silences
>> ringback tone at caller side. I believe something wrong happens with
>> media-proxy when opensips receives '183 Session Progress' with SDP. It
>> looks like mediaproxy cannot connect the RTP streams 'callee->opensips'
>> with 'opensips->caller'. I cannot hear anything after "200 OK" as well.
>>
>
> Are you calling use_media_proxy also for the replies?

Yes. I am. I am sure the function gets called, because I use append_hf()
to add a special P-hint header in onreply_route, and I cand see it with
ngrep in the relay-ed reply.
The 'normal' calls have media through mediaproxy both ways - they are okay.


>
>> I am using "use_media_proxy()" only once in the SIP dialog, if I use
>> this
>> function twice it just concatenates IPs and ports in SDP's "c=" and "m="
>> lines ( even if I call end_media_proxy() before using use_media_proxy()
>> the second time it does the same). This is obviously wrong.
>>
>
> Yes, you must not call use_media_proxy twice for the same request.

So if I use it once it will know how to handle IP:port pair for the second
INVITE ? (with other RURI - since I have this issue only on conditional
call forwarding).

>
> Have you tried using engage_media_proxy? It's easier to use and together
> with the dialog module it will take care of the NAT for both requests and
> replies automagically.
>

Not yet. Will do eventually. Any special things to take care of for call
forwarding while using engage_media_proxy() ?

Thank you very much.
Dragos

>
> Regards,
>
> --
> Saúl Ibarra Corretgé
> AG Projects
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>





More information about the Users mailing list