Python pjsua2 make_call() to multiple b-numbers

ME
Muhammad El-Sergani
Thu, May 23, 2019 3:16 AM

Hello everyone,

I'm trying to create a python application that would call 10 b-numbers
concurrently using pjsua2, play a wav file and then hangup.

So far I'm able to call one b-number, but that's it.

I've tried invoking the script more than once at the same time from bash,
but I get the famous Calling pjlib from unknown/external thread. You must "
"register external threads with pj_thread_register() error.

I've tried python threading module, but that got me no where, same as above.

Is it possible to achieve what I'm asking for? If yes, help would be highly
appreciated.

If not, should I look into userless accounts? Again, how?

And if I go with userless accounts, would I be able to answer calls too?

Thanks
//M

Hello everyone, I'm trying to create a python application that would call 10 b-numbers concurrently using pjsua2, play a wav file and then hangup. So far I'm able to call one b-number, but that's it. I've tried invoking the script more than once at the same time from bash, but I get the famous Calling pjlib from unknown/external thread. You must " "register external threads with pj_thread_register() error. I've tried python threading module, but that got me no where, same as above. Is it possible to achieve what I'm asking for? If yes, help would be highly appreciated. If not, should I look into userless accounts? Again, how? And if I go with userless accounts, would I be able to answer calls too? Thanks //M