Make sure a JsAssist is not created for outbound call legs.

git-svn-id: http://yate.null.ro/svn/yate/trunk@6062 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2015-11-12 21:15:26 +00:00
parent 6f3f09ddbe
commit f02df8cdb0
1 changed files with 2 additions and 0 deletions

View File

@ -4624,6 +4624,8 @@ bool JsModule::received(Message& msg, int id, ChanAssist* assist)
ChanAssist* JsModule::create(Message& msg, const String& id)
{
if ((msg == YSTRING("chan.startup")) && (msg[YSTRING("direction")] == YSTRING("outgoing")))
return 0;
lock();
ScriptRun* runner = m_assistCode.createRunner(0,NATIVE_TITLE);
unlock();