[Freeswitch-users] collecting dtmf after bridge

Francesco Facco de Lagarda francesco at delagarda.com
Mon Jul 9 08:49:18 UTC 2018


I have tried to run this example from the javascript reference:

The only difference is that I am  calling another extension

I am UNABLE to collect ANY data from bridge .. i.e. logAndStopBridge NEVER
gets called!!

 

What AM I doing wrong ?

 

 

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");

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

 

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

} 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20180709/f1023423/attachment.html>


More information about the FreeSWITCH-users mailing list