[Freeswitch-users] bridge call back locks fs_cli in js

Francesco Facco de Lagarda francesco at delagarda.com
Tue Jul 10 08:45:36 UTC 2018


Guys please help!
I've been loosing sleep for 4 days on this one.

 

I'm trying to :

*	Answer an internal call
*	Send to operator (ext 1000)
*	Wait for dtmf from operator
*	Do something..

 

But, the moment op hits a key, script dies and fs_cli disconnects!

 

I've tried adapting the given script to do bridge with callback, but simply
changing the external session (mySession) to dial an extension instead of an
external number, and effect is the same!

 

function logAndStopBridge ( session, type, dtmf, userData) {

 console_log("WARNING","Given userData.param of "+(userData &&
userData.param));

 return false;

}

session.answer();

while ( session.ready() ) {

 

//  var mySession = new Session("sofia/sip/mycall at mydomain.com
<mailto:sofia/sip/mycall at mydomain.com> ");

      var mySession = new Session("user/1000");

 

  bridge(session, mySession, logAndStopBridge, {param:"under the rock"});

} 

 

 

I never get the "WARNING" .. given .etc on internal numbers (extension),
only works on external lines..

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20180710/3d4fcd4a/attachment-0001.html>


More information about the FreeSWITCH-users mailing list