[pjsip] Using pjlib with pjsua
nanang at pjsip.org
Tue May 6 05:27:57 EDT 2008
Please make sure you call any pjlib functions after pjsua_create() is called
(actually pj_init() which is inside the pjsua_create()).
And if you want to use pjlib in a thread other than main thread, you should
register that thread from inside that thread context, in case you haven't
seen pjlib-test/thread.c, this could be a simple example.
2008/5/6 MOSBAH ABDELKADER <abdelkader2006 at gmail.com>:
> Hello Benny,
> I am using pjsua in my project.
> I have tried to use some pjlib functions in my app but when running it it
> says that i have to register a thread before calling any pjlib function.
> I have tried to do what it says and also what was written in the mailing
> list threads but i don't succeed.
> So, please a simple example of code showing the use of pjlib with pjsua or
> any other example that may help (registering a thred to use a function from
> pjlib) is very thankful.
> Thanks in advance.
> Best regards
> Visit our blog: http://blog.pjsip.org
> pjsip mailing list
> pjsip at lists.pjsip.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the pjsip