[Asterisk-Dev] Threads

Shugart, Jason jshugart at alpineaccess.com
Fri Jun 13 14:52:04 MST 2003


Hello,

I have been working on an application that makes many outbound calls.  I
have been using the manager interface and the Originate action.  I found
that if I left the sync flag set to 0 in the call to
ast_pbx_outgoing_exten I would hit 240+ threads then they would all
fail.  With sync set to 1 things work fine for thousands of calls.  I
also tried putting files in the outgoing directory and this also failed
after 240+ calls.  After tracing through the code I found that if I set
the DETACH flag on the thread creation in ast_pbx_outgoing_exten things
started working.  Does anyone know why DETACH should not be set here and
in pbx_spool.c?

Thanks for any help.

Jason
--
Jason Shugart <jshugart at alpineaccess.com>
Director of Information Systems, Alpine Access
Direct: 720-559-4727 <> Cell: 720-934-1028
http://www.alpineaccess.com 




More information about the asterisk-dev mailing list