Hello, For the first point, you can read the Roberto Perez' question (16/04) and the Benny's answer (17/04): https://trac.pjsip.org/repos/wiki/IPAddressChange Regarding the second point, you can find the keepAliveFunction function in pjsua_app.c (line 158) Best regards Samuel Le 04/05/12 17:04, Aytunc Aytunc a ?crit : > Hello all, > > i am working on an iPhone/iPad client and it is about to be finalized > soon. however i am having issues with the background mode. i would be > glad if you can clarify these issues: > > a- When the mobile device switches transport medium (3G / WiFi / Edge) > i believe a re-registration needs to be sent to the sip server with > the new info. But how do i know if transport medium is changed > programatically? is there a pjsip callback for this or an IOS callback > and what is it? > > b- in the sample ipjsua code there is a function > - (void)keepAlive { > if (!pj_thread_is_registered()) > { > pj_thread_register("ipjsua", a_thread_desc, &a_thread); > } > keepAliveFunction(KEEP_ALIVE_INTERVAL); > } > > as i understand, this function fires every 600 seconds (the least > amount of time allowed by IOS). what should we put in this > keepAliveFunction?? my guess is we need to 1) re-subscribe for buddy > presence 2) re-register to server and 3) re-publish for our presence. > IS there a sample keepAliveFunction that i can look at? > > > > > Thank you, > > Aytunc Isseven > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20120505/ff4a6927/attachment.html>