PJSIP continuously waiting for call

CI
CalvIA IA
Tue, Oct 7, 2008 8:48 AM

Hi all,
Has anyone implement voip client for WM 6 using PJSIP not PJSUA?

According to the simpleua.c example,

/* Loop until one call is completed */
for (;!g_complete;) {

pj_time_val timeout = {0, 10};
pjsip_endpt_handle_events(g_endpt, &timeout);
}

the loop and hangs my GUI.

I have tried using worker thread to hold the loop but it didn't work; the
Application closes upon loaded.

Anyone can help?

Regards,
Calvin

Hi all, Has anyone implement voip client for WM 6 using PJSIP not PJSUA? According to the simpleua.c example, /* Loop until one call is completed */ for (;!g_complete;) { pj_time_val timeout = {0, 10}; pjsip_endpt_handle_events(g_endpt, &timeout); } the loop and hangs my GUI. I have tried using worker thread to hold the loop but it didn't work; the Application closes upon loaded. Anyone can help? Regards, Calvin
BP
Benny Prijono
Tue, Oct 7, 2008 12:23 PM

On Tue, Oct 7, 2008 at 9:48 AM, CalvIA IA calvia08@gmail.com wrote:

Hi all,
Has anyone implement voip client for WM 6 using PJSIP not PJSUA?

According to the simpleua.c example,

 /* Loop until one call is completed */
 for (;!g_complete;) {

pj_time_val timeout = {0, 10};
pjsip_endpt_handle_events(g_endpt, &timeout);
}

the loop and hangs my GUI.

If you execute that in the main thread, then of course!

I have tried using worker thread to hold the loop but it didn't work; the
Application closes upon loaded.

Anyone can help?

Perhaps now is the time to use that Debug button of Visual Studio? ;-)

Cheers
Benny

On Tue, Oct 7, 2008 at 9:48 AM, CalvIA IA <calvia08@gmail.com> wrote: > Hi all, > Has anyone implement voip client for WM 6 using PJSIP not PJSUA? > > According to the simpleua.c example, > > /* Loop until one call is completed */ > for (;!g_complete;) { > pj_time_val timeout = {0, 10}; > pjsip_endpt_handle_events(g_endpt, &timeout); > } > > the loop and hangs my GUI. > > If you execute that in the main thread, then of course! > I have tried using worker thread to hold the loop but it didn't work; the > Application closes upon loaded. > > Anyone can help? > > Perhaps now is the time to use that Debug button of Visual Studio? ;-) Cheers Benny > Regards, > Calvin > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >