Try to use "bind_meta_app" that will go to another lua script. From there, the operator will be prompted to dial an extension.  So, this is a two-stage process. If it's only a single digit, bind_meta_app can execute it directly.


On Mon, Jul 9, 2018 at 8:49 AM, Francesco Facco de Lagarda <francesco@delagarda.com> wrote:

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@mydomain.com");

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

 

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

} 

 

 


_________________________________________________________________________
Professional FreeSWITCH Services
sales@freeswitch.com
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com