Thanks once again Jan,
Actually my gateway does not proxy media. After reading your answer, I searched and found that CloseLogicalChannel has a parameter fromRemote. Is that what you are talking about? This would send a request channel close, right? Regards,
Diego Carvalho Domingos
System Development Specialist
+55.19 3112-1200-1286
DaitanGroup | www.daitangroup.com | Accelerating.T
Privileged and confidential. If this message has been received in error, please notify sender and delete it immediately.
Conteúdo confidencial. Se esta mensagem foi recebida por engano, favor avisar o remetente e apagá-la imediatamente.
-----Original Message-----
From: Jan Willamowius [mailto:***@willamowius.de]
Sent: quarta-feira, 19 de abril de 2017 12:53
To: Diego Carvalho Domingos <***@daitangroup.com>
Subject: Re: [h323plus] Renegotiate media port
The ports you receive media on affect both your sending and receiving media channels (the channel where you send media is in the same RTP session as the receiving channel and thus the RTCP ports should match).
So you would have to close sending and receiving channels and hope that the other side re-opens their sending channel.
Sending a TCS0 and doing a full re-negotiation seems like a good choice.
But as I said on the board, since your gateway proxies media, I'd try to keep the port the same during the call and eg. copy the data from the SIP side from one port to the other etc. Thats probably a lot of work, too, but better than closing and re-opening channels.
Regards,
Jan
Post by Diego Carvalho DomingosThanks for answering Jan,
I tried that but then I realized that the port that the H323 device should send media to goes in the OLCA, so closing and reopening my local OLC does not help. I'm missing something here?
After realizing that reopening the OLC would not help, I restarted the
whole negotiation by sending an empty TCS and, after receiving the TCS
Ack, a non-empty TCS. This in fact worked but I thought it's too
complex. Would reverse logical channel parameters help here? If so,
can you point me how to set that? I use (a subclass of)
H323_ExternalRTPChannel. Thanks again. Regards,
Diego Carvalho Domingos
-----Original Message-----
Sent: quarta-feira, 19 de abril de 2017 12:10
Subject: Re: [h323plus] Renegotiate media port
Hi Tarmo,
if you look closely, Diego is doing video.
To my knowledge there is no free H.323-SIP gateway that supports video.
The only way to change the ports is to close the logical channel and
to open a new one. (as we discussed on the Packetizer board)
Regards,
Jan
--
Website: https://www.gnugk.org
Support: https://www.willamowius.com/gnugk-support.html
Relaxed Communications GmbH
Frahmredder 91
22393 Hamburg
Geschäftsführer: Jan Willamowius
HRB 125261 (Amtsgericht Hamburg)
USt-IdNr: DE286003584
Post by kalazeezThere is no need to reinvent the wheel. Use something existing and most fitting Your needs. For similar cases iI usually use Freeswitch. Just works, out of the box.
Tarmo
Post by Diego Carvalho DomingosHi all,
At some point after the call has been successfully set up, I need to renegotiate the audio (it could be video as well) media port. In my case, I developed a H323-SIP gateway (that does not handle media, only signaling conversion) and the SIP side sent a reinvite with a different audio port, so I need to make the H323 device send media to this new port. How can I accomplish this? (both in terms of the H323 protocol itself and implementing the solution using H323Plus). I appreciate any help, thanks.
Diego Carvalho Domingos