<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:10pt"><div><span>Hi Spady,<br></span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span>You need something like true or false.</span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span>Use a dialog flag in this way:</span></div><div style="color:
rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span><br></span></div><div class="yui_3_2_0_19_1349726509899159" style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span>flag idx is set ---> The call is hold on <----> a=Inactive</span></div><div class="yui_3_2_0_19_1349726509899164" style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">If (is_dlg_flag_set(idx)) && (status==200)<br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span></span></div><div
class="yui_3_2_0_19_134972650989952" style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">{</div><div class="yui_3_2_0_19_134972650989952" style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"> # Rewrite SDP<br></div><div class="yui_3_2_0_19_134972650989952" style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">}<br></div><div class="yui_3_2_0_19_134972650989952" style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><a href="http://www.opensips.org/html/docs/modules/devel/dialog.html"><br></a></div><div style="color: rgb(0, 0, 255); font-size:
13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><a href="http://www.opensips.org/html/docs/modules/devel/dialog.html">http://www.opensips.org/html/docs/modules/devel/dialog.html</a></div><div><br></div><div>Dont forget to set the flag idx when receive Invite with a=Inactive.</div><div>and reset it when receive a=sendrecv.<br></div><div><br></div><div>// Binan<br></div> <div style="font-family: times new roman, new york, times, serif; font-size: 10pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1"> <b><span style="font-weight:bold;">Från:</span></b> spady <spady77@gmail.com><br> <b><span style="font-weight: bold;">Till:</span></b> users@lists.opensips.org <br> <b><span style="font-weight: bold;">Skickat:</span></b> måndag, 8 oktober 2012 19:42<br> <b><span style="font-weight:
bold;">Ämne:</span></b> [OpenSIPS-Users] Need Hint for Opensips as UDP/TCP Proxy<br> </font> </div> <br>
Hi all, i am trying to realize a TCP/UDP gateway, using Opensips 1.8.1, to<br>connect a IPPBX to Lync Server 2010.<br><br>IPPBX<-------(Trunk SIP)------->OPENSIPS<-------(Trunk SIP)------->LYNC<br><br>Ip pbx does not support TCP protocol and Lync does support only TCP and TLS<br>so i need a proxy to do this job.<br>For now calls can go in both direction but problem comes when from Lync side<br>i try to put on hold the call.<br>Lync, for putting on hold, send a new INVITE with a=inactive in SDP body. IP<br>Pbx does not support/understand this parameter and call can't go on hold. Ip<br>PBX replies to this INVITE whit a 200 OK with a=sendrecv in SDP.<br>What I thought is using " if (status== 200) " then rewrite SDP body from<br>a=sendrecv ( PBX Side ) to a=inactive so that Lync can understand it and<br>call goes on hold. <br>The problem is when Lync user wants to retrive call. Lync send again another<br>INVITE, with a=sendrecv, IP PBX then
reply with 200 OK and a=sendrecv BUT (<br>here is the problem ) Opensips code ( that i used before ) rewrite again 200<br>OK message changing a=sendrecv to a=inactive and RTP flow does not start (<br>as aspected ).<br>Does anyone have some good idea to solve this problem? Any ideas?<br>Hope I explained in a clear manner :-)<br><br>Thanks to all<br><br><br><br>--<br>View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Need-Hint-for-Opensips-as-UDP-TCP-Proxy-tp7582137.html<br>Sent from the OpenSIPS - Users mailing list archive at <a target="_blank" href="http://nabble.com/">Nabble.com</a>.<br><br>_______________________________________________<br>Users mailing list<br><a ymailto="mailto:Users@lists.opensips.org" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>http://lists.opensips.org/cgi-bin/mailman/listinfo/users<br><br><br> </div> </div> </div></body></html>