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:
parent
6f3f09ddbe
commit
f02df8cdb0
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue