Colleagues, please tell me how to properly overcome the asynchronicity
of launch of the function and its output to the console. The function
launched by the command interpreter calls the pjsua_acc_set_registration
function to register on the SIP server or to stop registration. The
function returns control to the command interpreter and it do a line
feed and displays its prompt for entering a new command. At this time, a
message about successful registration appears on the screen. On the same
line. Many blondes do not understand what is happening.
If I understand the technical meaning of what is happening correctly,
then when the pjsua_acc_set_registration function is called, control is
immediately returned to the program and a pthread is started, which
performs registration. They are asynchronous.
Is it possible to somehow synchronize these processes so that
registration and output to the console occurs first, and then control is
returned. Or get a signal for the command line editor to again do a line
feed and once again display the prompt?
---
Thank you for your advice on the topic of the question,
Ogogon.
_______________________________________________
Visit our blog: http://blog.pjsip.org
pjsip mailing list -- pjsip@xxxxxxxxxxxxxxx
To unsubscribe send an email to pjsip-leave@xxxxxxxxxxxxxxx