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@mydomain.com <mailto:sofia/sip/mycall@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..
participants (1)
-
Francesco Facco de Lagarda