How to pause PJSIP transports and resume them later ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

I have task - do pause PJSIP transports (at least UDP transports as I use
only them for now) when connection to application services is lost.

I tried to do pjsua_destroy() on connection lost and init library after
connection ready, but there was asserts about "unknown thread" (but thread
was registered and works well before pjsua_destroy).

Then I found in https://trac.pjsip.org/repos/ticket/337 that PJSIP has
pjsip_udp_transport_pause()
and pjsip_udp_transport_restart() functions. But I cannot find any function
to get pjsip_transport pointer by pjsua_transport_id identifier.

What is recommended way to pause library transports and then resume them
later in PJSIP?

--
Best regards, Aleksei.
mailto:akharlov at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20150313/752c2c63/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux