Re: Restart ICE Session

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

 



Hi Colin,

Please check out this code... this will destroy the whole pjsua stack, then you can rebuild it ?

    // we could be in another thread... make sure we init pjsua within it
    pj_thread_desc thread_desc;
    pj_bzero(&thread_desc, sizeof(pj_thread_desc));
    pj_thread_t *thread = 0;
    pj_status_t status;
    status = pj_thread_register("OnTimer", thread_desc, &thread);                           
   
    pj_init();

    pj_shutdown();
    PJDestroy();
    PJCreate();


Colin Morelli wrote:
Hey all,

Is there any way to restart the ICE session after a call has been started? Aside from what happens when the STUN-mapped address changes.

Assuming there's not (I don't think there is), what's the right way to destroy and recreate media transports for an active call? I assume this should work?

Best,
Colin

_______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@xxxxxxxxxxxxxxx http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
_______________________________________________
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