[OpenSIPS-Users] Need Hint for Opensips as UDP/TCP Proxy

Binan AL Halabi binanalhalabi at yahoo.com
Mon Oct 8 22:43:36 CEST 2012


Hi Spady,


You need something like true or false.

Use a dialog flag in this way:

flag idx is set    --->    The call is hold on    <---->    a=Inactive
If (is_dlg_flag_set(idx)) && (status==200)

{
    # Rewrite SDP

}


http://www.opensips.org/html/docs/modules/devel/dialog.html

Dont forget to set the flag idx when receive Invite with a=Inactive.
and reset it when receive a=sendrecv.


// Binan


________________________________
 Från: spady <spady77 at gmail.com>
Till: users at lists.opensips.org 
Skickat: måndag, 8 oktober 2012 19:42
Ämne: [OpenSIPS-Users] Need Hint for Opensips as UDP/TCP Proxy
 
Hi all, i am trying to realize a TCP/UDP gateway, using Opensips 1.8.1, to
connect a IPPBX to Lync Server 2010.

IPPBX<-------(Trunk SIP)------->OPENSIPS<-------(Trunk SIP)------->LYNC

Ip pbx does not support TCP protocol and Lync does support only TCP and TLS
so i need a proxy to do this job.
For now calls can go in both direction but problem comes when from Lync side
i try to put on hold the call.
Lync, for putting on hold, send a new INVITE with a=inactive in SDP body. IP
Pbx does not support/understand this parameter and call can't go on hold. Ip
PBX replies to this INVITE whit a 200 OK with a=sendrecv in SDP.
What I thought is using " if (status== 200) "  then rewrite SDP body from
a=sendrecv ( PBX Side ) to a=inactive so that Lync can understand it and
call goes on hold. 
The problem is when Lync user wants to retrive call. Lync send again another
INVITE, with a=sendrecv, IP PBX then reply with 200 OK and a=sendrecv BUT (
here is the problem ) Opensips code ( that i used before ) rewrite again 200
OK message changing a=sendrecv to a=inactive and RTP flow does not start (
as aspected ).
Does anyone have some good idea to solve this problem? Any ideas?
Hope I explained in a clear manner :-)

Thanks to all



--
View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Need-Hint-for-Opensips-as-UDP-TCP-Proxy-tp7582137.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

_______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20121008/7f68cddc/attachment-0001.htm>


More information about the Users mailing list