Push CLI qualify into the threadpool.
authorMark Michelson <mmichelson@digium.com>
Tue, 8 Oct 2013 15:44:47 +0000 (15:44 +0000)
committerMark Michelson <mmichelson@digium.com>
Tue, 8 Oct 2013 15:44:47 +0000 (15:44 +0000)
commita4d6f439625fb4fb1546c578d5809a1ebb45f1e0
tree7b755a66bdebfe7929e9852ef998c89baea33603
parent8eec8fbf8396848500edad3f52ab7a7cea2ef4c4
Push CLI qualify into the threadpool.

If you run Asterisk in the background and then connect to
it through a separate console, the thread that runs CLI commands
is not registered with PJLIB. Thus PJLIB does not like it when
you attempt to send OPTIONS requests from that thread. So now
we push the task into the threadpool, which we know to be registered
with PJLIB.

Thanks to Antti Yrjola for reporting this.
........

Merged revisions 400680 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@400683 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_pjsip/pjsip_options.c