Destroy and Recreate Transports

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

 



Hey all,

I'm working with an application using TLS transports to talk to a SIP endpoint. The app is running on a mobile device, and I'm trying to destroy and recreate transports in response to reachability change notifications so I can transition between LTE and WiFi for calls.

Currently, I have code that basically runs pjsua_enum_transports(), and calls pjsua_transport_close() on each of them. Then, immediately after, it recreates the transports using the same configuration that was used when the device is configured. Finally, after the transports are recreated, I send re-invites for all active calls.

My problem here is that the re-invites seem to not use the new transports. Rather, for whatever reason, they seem to want to hang up to transports that should already be destroyed, and try sending out through those.

Can anyone point me in the direction of the right way to handle this? The IP address change document on the site focuses only on registrations - however, I'm not using registrations in my app.

Best,
Colin
_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

[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