<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; "><div>FreeSWITCH Version 1.2.0 (git-44fd0de 2012-05-14 02-04-36 +0200) on CentOS 6.2</div><div><br></div><div><br></div><div>Here is the scenario:</div><div><br></div><div>Caller calls into dialplan, lua script gets called, their number gets parsed, does a db look up, then the caller is transferred to a recording then eventually hold music in dialplan. During the original callers session, script 2 gets called (see script 1). Script 2 executes lua script 3 on the origination. Speech is always detected on the session:answer(). I have even tried separate/new/independent sessions of the original session… No go. The idea is to bridge the calls in a uuid bridge eventually and it works fine when it gets there, but I cannot trap when the call is answered under any scenario (no early media signaling and disposition is always 'ANSWER'), hence the ASR (tried all the execute_on_answer variants plus nolocal: yada yada, even tried it with python and javascript as well). I am cross-eyed by now so it is probably missing something stupid. I need the async behavior to keep the user on hold for as little time as possible. Any ideas are appreciated.</div><div><br></div><div>TIA,</div><div>Noel</div><div><br></div><div><br></div><div><br></div><div><div><script 1></div><div><div>caller_leg = session:getVariable("uuid")</div><div>dealer = get_dealer_number(area_code)</div><div>session:execute("export","store_name="..dealer["name"])</div><div>session:execute("export","store_id="..dealer["store_id"])</div><div>set_store_call(caller_leg, caller_num, tostring(dealer["store_number"]))</div><div><br></div><div>api:executeString("luarun originate_dealer.lua " .. caller_leg .. " " .. dealer["store_number"] .. " " .. caller_num)</div><div><br></div><div>session:execute("export", "store_number=" .. dealer["store_number"])</div><div>session:execute("export","caller_leg="..caller_leg)</div><div>session:execute("export","caller_num="..caller_num)</div><div>session:setHangupHook("session_hangup_hook")</div><div>session:transfer("xxxxxx_park", "XML", "default")</div></div><div></script 1></div></div><div><br></div><div><script 2></div><div><div>api = freeswitch.API()</div><div>api:executeString("bgapi originate {caller_leg=".. argv[1] ..",origination_caller_id_number=".. argv[3] .."}sofia/gateway/provider/".. argv[2] .. " &lua(dealer.lua)")</div></div><div></script 2></div><div><br></div><div><script 3></div><div><div>log("dealer...")</div><div><br></div><div>caller_leg = session:getVariable("caller_leg")</div><div>my_leg = session:getVariable("uuid")</div><div>store_caller = get_caller(caller_leg)</div><div><br></div><div>function onInput(s, type, obj)</div><div> freeswitch.consoleLog("info", "Callback with type " .. type .. "\n");</div><div> if (type == "dtmf") then</div><div> freeswitch.consoleLog("info", "DTMF Digit: " .. obj.digit .. "\n");</div><div> else if (type == "event") then</div><div> local event = obj:getHeader("Speech-Type");</div><div> if (event == "begin-speaking") then</div><div> freeswitch.consoleLog("info", "\n" .. obj:serialize() .. "\n");</div><div> -- Return break on begin-speaking events to stop playback of the fire or tts.</div><div><span class="Apple-tab-span" style="white-space:pre">        </span> call_answered=true</div><div> return "break";</div><div> end</div><div> if (event == "detected-speech") then</div><div> freeswitch.consoleLog("info", "\n" .. obj:serialize() .. "\n");</div><div> if (obj:getBody()) then</div><div> -- Pause speech detection (this is on auto but pausing it just in case)</div><div> session:execute("detect_speech", "pause");</div><div> -- Parse the results from the event into the results table for later use.</div><div> call_answered=true</div><div> end</div><div> return "break";</div><div> end</div><div> end</div><div> end</div><div>end</div><div><br></div><div>called_leg = session:getVariable("uuid")</div><div><br></div><div>session:answer();</div><div>session:setInputCallback("onInput");</div><div>session:sleep(1000)</div><div>session:execute("detect_speech", "pocketsphinx myapp default")</div><div><br></div><div><br></div><div>while call_answered==false and tries <= 10 do</div><div> session:sleep(2000)</div><div> log("call answered is false...")</div><div> tries = tries + 1</div><div>end</div><div><br></div><div>if session:ready()==true then</div><div> log(session:getVariable("endpoint_disposition"))</div><div> digits = session:playAndGetDigits(1, 1, 1, 4000, '', '/usr/local/freeswitch/recordings/DealerGreeting.wav', '', '\\d+')</div><div> if digits then</div><div> if digits == "1" then</div><div> log("In Dealer IVR and 1 was pressed...")</div><div> api:executeString("uuid_bridge " ..called_leg .. " " .. caller_leg)</div><div> else</div><div> log("In Dealer IVR and 1 was NOT pressed...")</div><div> api:executeString("uuid_bridge " ..called_leg .. " " .. caller_leg)</div><div> end</div><div> else</div><div> n_session = freeswitch.Session()</div><div> ses = freeswitch.Session("{effective_caller_id_number=".. caller_leg ..",ignore_early_media=true,originate_timeout=40}sofia/gateway/provider/2143909113", n_session)</div><div> called_leg = ses:getVariable("uuid")</div><div> sess:waitForAnswer(sess)</div><div> sess:answer()</div><div> api:executeString("uuid_bridge " ..called_leg .. " " .. caller_leg)</div><div> end</div><div>end</div></div><div></script 3></div><div><br></div><div><br></div><div><br></div><div><br></div><div><div>2012-05-15 17:01:09.748559 [DEBUG] switch_rtp.c:3253 Correct ip/port confirmed.</div><div>INFO: cmd_ln.c(691): Parsing command line:</div><div>\</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>-samprate 8000 \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>-hmm /usr/local/freeswitch/grammar/model/communicator \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>-jsgf /usr/local/freeswitch/grammar/xxxxxx.gram \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>-lw 6.5 \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>-dict /usr/local/freeswitch/grammar/default.dic \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>-frate 50 \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>-silprob 0.005 </div><div><br></div><div>Current configuration:</div><div>[NAME]<span class="Apple-tab-span" style="white-space:pre">                </span>[DEFLT]<span class="Apple-tab-span" style="white-space:pre">                </span>[VALUE]</div><div>-agc<span class="Apple-tab-span" style="white-space:pre">                </span>none<span class="Apple-tab-span" style="white-space:pre">                </span>none</div><div>-agcthresh<span class="Apple-tab-span" style="white-space:pre">        </span>2.0<span class="Apple-tab-span" style="white-space:pre">                </span>2.000000e+00</div><div>-alpha<span class="Apple-tab-span" style="white-space:pre">                </span>0.97<span class="Apple-tab-span" style="white-space:pre">                </span>9.700000e-01</div><div>-ascale<span class="Apple-tab-span" style="white-space:pre">                </span>20.0<span class="Apple-tab-span" style="white-space:pre">                </span>2.000000e+01</div><div>-aw<span class="Apple-tab-span" style="white-space:pre">                </span>1<span class="Apple-tab-span" style="white-space:pre">                </span>1</div><div>-backtrace<span class="Apple-tab-span" style="white-space:pre">        </span>no<span class="Apple-tab-span" style="white-space:pre">                </span>no</div><div>-beam<span class="Apple-tab-span" style="white-space:pre">                </span>1e-48<span class="Apple-tab-span" style="white-space:pre">                </span>1.000000e-48</div><div>-bestpath<span class="Apple-tab-span" style="white-space:pre">        </span>yes<span class="Apple-tab-span" style="white-space:pre">                </span>yes</div><div>-bestpathlw<span class="Apple-tab-span" style="white-space:pre">        </span>9.5<span class="Apple-tab-span" style="white-space:pre">                </span>9.500000e+00</div><div>-bghist<span class="Apple-tab-span" style="white-space:pre">                </span>no<span class="Apple-tab-span" style="white-space:pre">                </span>no</div><div>-ceplen<span class="Apple-tab-span" style="white-space:pre">                </span>13<span class="Apple-tab-span" style="white-space:pre">                </span>13</div><div>-cmn<span class="Apple-tab-span" style="white-space:pre">                </span>current<span class="Apple-tab-span" style="white-space:pre">                </span>current</div><div>-cmninit<span class="Apple-tab-span" style="white-space:pre">        </span>8.0<span class="Apple-tab-span" style="white-space:pre">                </span>8.0</div><div>-compallsen<span class="Apple-tab-span" style="white-space:pre">        </span>no<span class="Apple-tab-span" style="white-space:pre">                </span>no</div><div>-debug<span class="Apple-tab-span" style="white-space:pre">                                </span>0</div><div>-dict<span class="Apple-tab-span" style="white-space:pre">                                </span>/usr/local/freeswitch/grammar/default.dic</div><div>-dictcase<span class="Apple-tab-span" style="white-space:pre">        </span>no<span class="Apple-tab-span" style="white-space:pre">                </span>no</div><div>-dither<span class="Apple-tab-span" style="white-space:pre">                </span>no<span class="Apple-tab-span" style="white-space:pre">                </span>no</div><div>-doublebw<span class="Apple-tab-span" style="white-space:pre">        </span>no<span class="Apple-tab-span" style="white-space:pre">                </span>no</div><div>-ds<span class="Apple-tab-span" style="white-space:pre">                </span>1<span class="Apple-tab-span" style="white-space:pre">                </span>1</div><div>-fdict<span class="Apple-tab-span" style="white-space:pre">                                </span></div><div>-feat<span class="Apple-tab-span" style="white-space:pre">                </span>1s_c_d_dd<span class="Apple-tab-span" style="white-space:pre">        </span>1s_c_d_dd</div><div>-featparams<span class="Apple-tab-span" style="white-space:pre">                        </span></div><div>-fillprob<span class="Apple-tab-span" style="white-space:pre">        </span>1e-8<span class="Apple-tab-span" style="white-space:pre">                </span>1.000000e-08</div><div>-frate<span class="Apple-tab-span" style="white-space:pre">                </span>100<span class="Apple-tab-span" style="white-space:pre">                </span>50</div><div>-fsg<span class="Apple-tab-span" style="white-space:pre">                                </span></div><div>-fsgusealtpron<span class="Apple-tab-span" style="white-space:pre">        </span>yes<span class="Apple-tab-span" style="white-space:pre">                </span>yes</div><div>-fsgusefiller<span class="Apple-tab-span" style="white-space:pre">        </span>yes<span class="Apple-tab-span" style="white-space:pre">                </span>yes</div><div>-fwdflat<span class="Apple-tab-span" style="white-space:pre">        </span>yes<span class="Apple-tab-span" style="white-space:pre">                </span>yes</div><div>-fwdflatbeam<span class="Apple-tab-span" style="white-space:pre">        </span>1e-64<span class="Apple-tab-span" style="white-space:pre">                </span>1.000000e-64</div><div>-fwdflatefwid<span class="Apple-tab-span" style="white-space:pre">        </span>4<span class="Apple-tab-span" style="white-space:pre">                </span>4</div><div>-fwdflatlw<span class="Apple-tab-span" style="white-space:pre">        </span>8.5<span class="Apple-tab-span" style="white-space:pre">                </span>8.500000e+00</div><div>-fwdflatsfwin<span class="Apple-tab-span" style="white-space:pre">        </span>25<span class="Apple-tab-span" style="white-space:pre">                </span>25</div><div>-fwdflatwbeam<span class="Apple-tab-span" style="white-space:pre">        </span>7e-29<span class="Apple-tab-span" style="white-space:pre">                </span>7.000000e-29</div><div>-fwdtree<span class="Apple-tab-span" style="white-space:pre">        </span>yes<span class="Apple-tab-span" style="white-space:pre">                </span>yes</div><div>-hmm<span class="Apple-tab-span" style="white-space:pre">                                </span>/usr/local/freeswitch/grammar/model/communicator</div><div>-input_endian<span class="Apple-tab-span" style="white-space:pre">        </span>little<span class="Apple-tab-span" style="white-space:pre">                </span>little</div><div>-jsgf<span class="Apple-tab-span" style="white-space:pre">                                </span>/usr/local/freeswitch/grammar/xxxxxx.gram</div><div>-kdmaxbbi<span class="Apple-tab-span" style="white-space:pre">        </span>-1<span class="Apple-tab-span" style="white-space:pre">                </span>-1</div><div>-kdmaxdepth<span class="Apple-tab-span" style="white-space:pre">        </span>0<span class="Apple-tab-span" style="white-space:pre">                </span>0</div><div>-kdtree<span class="Apple-tab-span" style="white-space:pre">                                </span></div><div>-latsize<span class="Apple-tab-span" style="white-space:pre">        </span>5000<span class="Apple-tab-span" style="white-space:pre">                </span>5000</div><div>-lda<span class="Apple-tab-span" style="white-space:pre">                                </span></div><div>-ldadim<span class="Apple-tab-span" style="white-space:pre">                </span>0<span class="Apple-tab-span" style="white-space:pre">                </span>0</div><div>-lextreedump<span class="Apple-tab-span" style="white-space:pre">        </span>0<span class="Apple-tab-span" style="white-space:pre">                </span>0</div><div>-lifter<span class="Apple-tab-span" style="white-space:pre">                </span>0<span class="Apple-tab-span" style="white-space:pre">                </span>0</div><div>-lm<span class="Apple-tab-span" style="white-space:pre">                                </span></div><div>-lmctl<span class="Apple-tab-span" style="white-space:pre">                                </span></div><div>-lmname<span class="Apple-tab-span" style="white-space:pre">                </span>default<span class="Apple-tab-span" style="white-space:pre">                </span>default</div><div>-logbase<span class="Apple-tab-span" style="white-space:pre">        </span>1.0001<span class="Apple-tab-span" style="white-space:pre">                </span>1.000100e+00</div><div>-logfn<span class="Apple-tab-span" style="white-space:pre">                                </span></div><div>-logspec<span class="Apple-tab-span" style="white-space:pre">        </span>no<span class="Apple-tab-span" style="white-space:pre">                </span>no</div><div>-lowerf<span class="Apple-tab-span" style="white-space:pre">                </span>133.33334<span class="Apple-tab-span" style="white-space:pre">        </span>1.333333e+02</div><div>-lpbeam<span class="Apple-tab-span" style="white-space:pre">                </span>1e-40<span class="Apple-tab-span" style="white-space:pre">                </span>1.000000e-40</div><div>-lponlybeam<span class="Apple-tab-span" style="white-space:pre">        </span>7e-29<span class="Apple-tab-span" style="white-space:pre">                </span>7.000000e-29</div><div>-lw<span class="Apple-tab-span" style="white-space:pre">                </span>6.5<span class="Apple-tab-span" style="white-space:pre">                </span>6.500000e+00</div><div>-maxhmmpf<span class="Apple-tab-span" style="white-space:pre">        </span>-1<span class="Apple-tab-span" style="white-space:pre">                </span>-1</div><div>-maxnewoov<span class="Apple-tab-span" style="white-space:pre">        </span>20<span class="Apple-tab-span" style="white-space:pre">                </span>20</div><div>-maxwpf<span class="Apple-tab-span" style="white-space:pre">                </span>-1<span class="Apple-tab-span" style="white-space:pre">                </span>-1</div><div>-mdef<span class="Apple-tab-span" style="white-space:pre">                                </span></div><div>-mean<span class="Apple-tab-span" style="white-space:pre">                                </span></div><div>-mfclogdir<span class="Apple-tab-span" style="white-space:pre">                        </span></div><div>-min_endfr<span class="Apple-tab-span" style="white-space:pre">        </span>0<span class="Apple-tab-span" style="white-space:pre">                </span>0</div><div>-mixw<span class="Apple-tab-span" style="white-space:pre">                                </span></div><div>-mixwfloor<span class="Apple-tab-span" style="white-space:pre">        </span>0.0000001<span class="Apple-tab-span" style="white-space:pre">        </span>1.000000e-07</div><div>-mllr<span class="Apple-tab-span" style="white-space:pre">                                </span></div><div>-mmap<span class="Apple-tab-span" style="white-space:pre">                </span>yes<span class="Apple-tab-span" style="white-space:pre">                </span>yes</div><div>-ncep<span class="Apple-tab-span" style="white-space:pre">                </span>13<span class="Apple-tab-span" style="white-space:pre">                </span>13</div><div>-nfft<span class="Apple-tab-span" style="white-space:pre">                </span>512<span class="Apple-tab-span" style="white-space:pre">                </span>512</div><div>-nfilt<span class="Apple-tab-span" style="white-space:pre">                </span>40<span class="Apple-tab-span" style="white-space:pre">                </span>40</div><div>-nwpen<span class="Apple-tab-span" style="white-space:pre">                </span>1.0<span class="Apple-tab-span" style="white-space:pre">                </span>1.000000e+00</div><div>-pbeam<span class="Apple-tab-span" style="white-space:pre">                </span>1e-48<span class="Apple-tab-span" style="white-space:pre">                </span>1.000000e-48</div><div>-pip<span class="Apple-tab-span" style="white-space:pre">                </span>1.0<span class="Apple-tab-span" style="white-space:pre">                </span>1.000000e+00</div><div>-pl_beam<span class="Apple-tab-span" style="white-space:pre">        </span>1e-10<span class="Apple-tab-span" style="white-space:pre">                </span>1.000000e-10</div><div>-pl_pbeam<span class="Apple-tab-span" style="white-space:pre">        </span>1e-5<span class="Apple-tab-span" style="white-space:pre">                </span>1.000000e-05</div><div>-pl_window<span class="Apple-tab-span" style="white-space:pre">        </span>0<span class="Apple-tab-span" style="white-space:pre">                </span>0</div><div>-rawlogdir<span class="Apple-tab-span" style="white-space:pre">                        </span></div><div>-remove_dc<span class="Apple-tab-span" style="white-space:pre">        </span>no<span class="Apple-tab-span" style="white-space:pre">                </span>no</div><div>-round_filters<span class="Apple-tab-span" style="white-space:pre">        </span>yes<span class="Apple-tab-span" style="white-space:pre">                </span>yes</div><div>-samprate<span class="Apple-tab-span" style="white-space:pre">        </span>16000<span class="Apple-tab-span" style="white-space:pre">                </span>8.000000e+03</div><div>-seed<span class="Apple-tab-span" style="white-space:pre">                </span>-1<span class="Apple-tab-span" style="white-space:pre">                </span>-1</div><div>-sendump<span class="Apple-tab-span" style="white-space:pre">                        </span></div><div>-senlogdir<span class="Apple-tab-span" style="white-space:pre">                        </span></div><div>-senmgau<span class="Apple-tab-span" style="white-space:pre">                        </span></div><div>-silprob<span class="Apple-tab-span" style="white-space:pre">        </span>0.005<span class="Apple-tab-span" style="white-space:pre">                </span>5.000000e-03</div><div>-smoothspec<span class="Apple-tab-span" style="white-space:pre">        </span>no<span class="Apple-tab-span" style="white-space:pre">                </span>no</div><div>-svspec<span class="Apple-tab-span" style="white-space:pre">                                </span></div><div>-tmat<span class="Apple-tab-span" style="white-space:pre">                                </span></div><div>-tmatfloor<span class="Apple-tab-span" style="white-space:pre">        </span>0.0001<span class="Apple-tab-span" style="white-space:pre">                </span>1.000000e-04</div><div>-topn<span class="Apple-tab-span" style="white-space:pre">                </span>4<span class="Apple-tab-span" style="white-space:pre">                </span>4</div><div>-topn_beam<span class="Apple-tab-span" style="white-space:pre">        </span>0<span class="Apple-tab-span" style="white-space:pre">                </span>0</div><div>-toprule<span class="Apple-tab-span" style="white-space:pre">                        </span></div><div>-transform<span class="Apple-tab-span" style="white-space:pre">        </span>legacy<span class="Apple-tab-span" style="white-space:pre">                </span>legacy</div><div>-unit_area<span class="Apple-tab-span" style="white-space:pre">        </span>yes<span class="Apple-tab-span" style="white-space:pre">                </span>yes</div><div>-upperf<span class="Apple-tab-span" style="white-space:pre">                </span>6855.4976<span class="Apple-tab-span" style="white-space:pre">        </span>6.855498e+03</div><div>-usewdphones<span class="Apple-tab-span" style="white-space:pre">        </span>no<span class="Apple-tab-span" style="white-space:pre">                </span>no</div><div>-uw<span class="Apple-tab-span" style="white-space:pre">                </span>1.0<span class="Apple-tab-span" style="white-space:pre">                </span>1.000000e+00</div><div>-var<span class="Apple-tab-span" style="white-space:pre">                                </span></div><div>-varfloor<span class="Apple-tab-span" style="white-space:pre">        </span>0.0001<span class="Apple-tab-span" style="white-space:pre">                </span>1.000000e-04</div><div>-varnorm<span class="Apple-tab-span" style="white-space:pre">        </span>no<span class="Apple-tab-span" style="white-space:pre">                </span>no</div><div>-verbose<span class="Apple-tab-span" style="white-space:pre">        </span>no<span class="Apple-tab-span" style="white-space:pre">                </span>no</div><div>-warp_params<span class="Apple-tab-span" style="white-space:pre">                        </span></div><div>-warp_type<span class="Apple-tab-span" style="white-space:pre">        </span>inverse_linear<span class="Apple-tab-span" style="white-space:pre">        </span>inverse_linear</div><div>-wbeam<span class="Apple-tab-span" style="white-space:pre">                </span>7e-29<span class="Apple-tab-span" style="white-space:pre">                </span>7.000000e-29</div><div>-wip<span class="Apple-tab-span" style="white-space:pre">                </span>0.65<span class="Apple-tab-span" style="white-space:pre">                </span>6.500000e-01</div><div>-wlen<span class="Apple-tab-span" style="white-space:pre">                </span>0.025625<span class="Apple-tab-span" style="white-space:pre">        </span>2.562500e-02</div><div><br></div><div>EXECUTE sofia/xxxxxx/2143909113 detect_speech(pocketsphinx xxxxxx default)</div><div>INFO: cmd_ln.c(691): Parsing command line:</div><div>\</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>-alpha 0.97 \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>-dither yes \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>-doublebw no \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>-nfilt 31 \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>-ncep 13 \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>-lowerf 200 \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>-upperf 3500 \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>-nfft 256 \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>-wlen 0.0256 \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>-transform legacy \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>-feat s2_4x \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>-agc none \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>-cmn current \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>-varnorm no </div><div><br></div><div>Current configuration:</div><div>[NAME]<span class="Apple-tab-span" style="white-space:pre">                </span>[DEFLT]<span class="Apple-tab-span" style="white-space:pre">                </span>[VALUE]</div><div>-agc<span class="Apple-tab-span" style="white-space:pre">                </span>none<span class="Apple-tab-span" style="white-space:pre">                </span>none</div><div>-agcthresh<span class="Apple-tab-span" style="white-space:pre">        </span>2.0<span class="Apple-tab-span" style="white-space:pre">                </span>2.000000e+00</div><div>-alpha<span class="Apple-tab-span" style="white-space:pre">                </span>0.97<span class="Apple-tab-span" style="white-space:pre">                </span>9.700000e-01</div><div>-ceplen<span class="Apple-tab-span" style="white-space:pre">                </span>13<span class="Apple-tab-span" style="white-space:pre">                </span>13</div><div>-cmn<span class="Apple-tab-span" style="white-space:pre">                </span>current<span class="Apple-tab-span" style="white-space:pre">                </span>current</div><div>-cmninit<span class="Apple-tab-span" style="white-space:pre">        </span>8.0<span class="Apple-tab-span" style="white-space:pre">                </span>8.0</div><div>-dither<span class="Apple-tab-span" style="white-space:pre">                </span>no<span class="Apple-tab-span" style="white-space:pre">                </span>yes</div><div>-doublebw<span class="Apple-tab-span" style="white-space:pre">        </span>no<span class="Apple-tab-span" style="white-space:pre">                </span>no</div><div>-feat<span class="Apple-tab-span" style="white-space:pre">                </span>1s_c_d_dd<span class="Apple-tab-span" style="white-space:pre">        </span>s2_4x</div><div>-frate<span class="Apple-tab-span" style="white-space:pre">                </span>100<span class="Apple-tab-span" style="white-space:pre">                </span>50</div><div>-input_endian<span class="Apple-tab-span" style="white-space:pre">        </span>little<span class="Apple-tab-span" style="white-space:pre">                </span>little</div><div>-lda<span class="Apple-tab-span" style="white-space:pre">                                </span></div><div>-ldadim<span class="Apple-tab-span" style="white-space:pre">                </span>0<span class="Apple-tab-span" style="white-space:pre">                </span>0</div><div>-lifter<span class="Apple-tab-span" style="white-space:pre">                </span>0<span class="Apple-tab-span" style="white-space:pre">                </span>0</div><div>-logspec<span class="Apple-tab-span" style="white-space:pre">        </span>no<span class="Apple-tab-span" style="white-space:pre">                </span>no</div><div>-lowerf<span class="Apple-tab-span" style="white-space:pre">                </span>133.33334<span class="Apple-tab-span" style="white-space:pre">        </span>2.000000e+02</div><div>-ncep<span class="Apple-tab-span" style="white-space:pre">                </span>13<span class="Apple-tab-span" style="white-space:pre">                </span>13</div><div>-nfft<span class="Apple-tab-span" style="white-space:pre">                </span>512<span class="Apple-tab-span" style="white-space:pre">                </span>256</div><div>-nfilt<span class="Apple-tab-span" style="white-space:pre">                </span>40<span class="Apple-tab-span" style="white-space:pre">                </span>31</div><div>-remove_dc<span class="Apple-tab-span" style="white-space:pre">        </span>no<span class="Apple-tab-span" style="white-space:pre">                </span>no</div><div>-round_filters<span class="Apple-tab-span" style="white-space:pre">        </span>yes<span class="Apple-tab-span" style="white-space:pre">                </span>yes</div><div>-samprate<span class="Apple-tab-span" style="white-space:pre">        </span>16000<span class="Apple-tab-span" style="white-space:pre">                </span>8.000000e+03</div><div>-seed<span class="Apple-tab-span" style="white-space:pre">                </span>-1<span class="Apple-tab-span" style="white-space:pre">                </span>-1</div><div>-smoothspec<span class="Apple-tab-span" style="white-space:pre">        </span>no<span class="Apple-tab-span" style="white-space:pre">                </span>no</div><div>-svspec<span class="Apple-tab-span" style="white-space:pre">                                </span></div><div>-transform<span class="Apple-tab-span" style="white-space:pre">        </span>legacy<span class="Apple-tab-span" style="white-space:pre">                </span>legacy</div><div>-unit_area<span class="Apple-tab-span" style="white-space:pre">        </span>yes<span class="Apple-tab-span" style="white-space:pre">                </span>yes</div><div>-upperf<span class="Apple-tab-span" style="white-space:pre">                </span>6855.4976<span class="Apple-tab-span" style="white-space:pre">        </span>3.500000e+03</div><div>-varnorm<span class="Apple-tab-span" style="white-space:pre">        </span>no<span class="Apple-tab-span" style="white-space:pre">                </span>no</div><div>-verbose<span class="Apple-tab-span" style="white-space:pre">        </span>no<span class="Apple-tab-span" style="white-space:pre">                </span>no</div><div>-warp_params<span class="Apple-tab-span" style="white-space:pre">                        </span></div><div>-warp_type<span class="Apple-tab-span" style="white-space:pre">        </span>inverse_linear<span class="Apple-tab-span" style="white-space:pre">        </span>inverse_linear</div><div>-wlen<span class="Apple-tab-span" style="white-space:pre">                </span>0.025625<span class="Apple-tab-span" style="white-space:pre">        </span>2.560000e-02</div><div><br></div><div>INFO: acmod.c(242): Parsed model-specific feature parameters from /usr/local/freeswitch/grammar/model/communicator/feat.params</div><div>INFO: fe_interface.c(289): You are using the internal mechanism to generate the seed.</div><div>INFO: feat.c(684): Initializing feature stream to type: 's2_4x', ceplen=13, CMN='current', VARNORM='no', AGC='none'</div><div>INFO: cmn.c(142): mean[0]= 12.00, mean[1..12]= 0.0</div><div>INFO: mdef.c(520): Reading model definition: /usr/local/freeswitch/grammar/model/communicator/mdef</div><div>INFO: bin_mdef.c(173): Allocating 104160 * 8 bytes (813 KiB) for CD tree</div><div>INFO: tmat.c(205): Reading HMM transition probability matrices: /usr/local/freeswitch/grammar/model/communicator/transition_matrices</div><div>INFO: acmod.c(117): Attempting to use SCHMM computation module</div><div>INFO: ms_gauden.c(198): Reading mixture gaussian parameter: /usr/local/freeswitch/grammar/model/communicator/means</div><div>INFO: ms_gauden.c(292): 1 codebook, 4 feature, size: </div><div>INFO: ms_gauden.c(294): 256x12</div><div>INFO: ms_gauden.c(294): 256x24</div><div>INFO: ms_gauden.c(294): 256x3</div><div>INFO: ms_gauden.c(294): 256x12</div><div>INFO: ms_gauden.c(198): Reading mixture gaussian parameter: /usr/local/freeswitch/grammar/model/communicator/variances</div><div>INFO: ms_gauden.c(292): 1 codebook, 4 feature, size: </div><div>INFO: ms_gauden.c(294): 256x12</div><div>INFO: ms_gauden.c(294): 256x24</div><div>INFO: ms_gauden.c(294): 256x3</div><div>INFO: ms_gauden.c(294): 256x12</div><div>INFO: ms_gauden.c(354): 59 variance values floored</div><div>INFO: s2_semi_mgau.c(908): Loading senones from dump file /usr/local/freeswitch/grammar/model/communicator/sendump</div><div>INFO: s2_semi_mgau.c(932): BEGIN FILE FORMAT DESCRIPTION</div><div>INFO: s2_semi_mgau.c(995): Rows: 256, Columns: 6256</div><div>INFO: s2_semi_mgau.c(1027): Using memory-mapped I/O for senones</div><div>INFO: s2_semi_mgau.c(1304): Maximum top-N: 4 Top-N beams: 0 0 0 0</div><div>INFO: dict.c(306): Allocating 137548 * 32 bytes (4298 KiB) for word entries</div><div>INFO: dict.c(321): Reading main dictionary: /usr/local/freeswitch/grammar/default.dic</div><div>INFO: dict.c(212): Allocated 1010 KiB for strings, 1664 KiB for phones</div><div>INFO: dict.c(324): 133436 words read</div><div>INFO: dict.c(330): Reading filler dictionary: /usr/local/freeswitch/grammar/model/communicator/noisedict</div><div>INFO: dict.c(212): Allocated 0 KiB for strings, 0 KiB for phones</div><div>INFO: dict.c(333): 17 words read</div><div>INFO: dict2pid.c(396): Building PID tables for dictionary</div><div>INFO: dict2pid.c(404): Allocating 51^3 * 2 bytes (259 KiB) for word-initial triphones</div><div>INFO: dict2pid.c(131): Allocated 62832 bytes (61 KiB) for word-final triphones</div><div>INFO: dict2pid.c(195): Allocated 62832 bytes (61 KiB) for single-phone word triphones</div><div>INFO: fsg_search.c(145): FSG(beam: -1080, pbeam: -1080, wbeam: -634; wip: -26, pip: 0)</div><div>INFO: jsgf.c(546): Defined rule: <xxxxxx.g00000></div><div>INFO: jsgf.c(546): Defined rule: <xxxxxx.yes></div><div>INFO: jsgf.c(546): Defined rule: <xxxxxx.g00002></div><div>INFO: jsgf.c(546): Defined rule: <xxxxxx.no></div><div>INFO: jsgf.c(546): Defined rule: <xxxxxx.g00004></div><div>INFO: jsgf.c(546): Defined rule: <xxxxxx.hello></div><div>INFO: jsgf.c(546): Defined rule: <xxxxxx.g00006></div><div>INFO: jsgf.c(546): Defined rule: PUBLIC <xxxxxx.results></div><div>INFO: fsg_model.c(213): Computing transitive closure for null transitions</div><div>INFO: fsg_model.c(264): 87 null transitions added</div><div>INFO: fsg_model.c(411): Adding silence transitions for <sil> to FSG</div><div>INFO: fsg_model.c(431): Added 23 silence word transitions</div><div>INFO: fsg_model.c(411): Adding silence transitions for ++AE++ to FSG</div><div>INFO: fsg_model.c(431): Added 23 silence word transitions</div><div>INFO: fsg_model.c(411): Adding silence transitions for ++AH++ to FSG</div><div>INFO: fsg_model.c(431): Added 23 silence word transitions</div><div>INFO: fsg_model.c(411): Adding silence transitions for ++BACKGROUND++ to FSG</div><div>INFO: fsg_model.c(431): Added 23 silence word transitions</div><div>INFO: fsg_model.c(411): Adding silence transitions for ++BREATH++ to FSG</div><div>INFO: fsg_model.c(431): Added 23 silence word transitions</div><div>INFO: fsg_model.c(411): Adding silence transitions for ++COUGH++ to FSG</div><div>INFO: fsg_model.c(431): Added 23 silence word transitions</div><div>INFO: fsg_model.c(411): Adding silence transitions for ++EH++ to FSG</div><div>INFO: fsg_model.c(431): Added 23 silence word transitions</div><div>INFO: fsg_model.c(411): Adding silence transitions for ++ER++ to FSG</div><div>INFO: fsg_model.c(431): Added 23 silence word transitions</div><div>INFO: fsg_model.c(411): Adding silence transitions for ++LAUGH++ to FSG</div><div>INFO: fsg_model.c(431): Added 23 silence word transitions</div><div>INFO: fsg_model.c(411): Adding silence transitions for ++MM++ to FSG</div><div>INFO: fsg_model.c(431): Added 23 silence word transitions</div><div>INFO: fsg_model.c(411): Adding silence transitions for ++MUMBLE++ to FSG</div><div>INFO: fsg_model.c(431): Added 23 silence word transitions</div><div>INFO: fsg_model.c(411): Adding silence transitions for ++NOISE++ to FSG</div><div>INFO: fsg_model.c(431): Added 23 silence word transitions</div><div>INFO: fsg_model.c(411): Adding silence transitions for ++OH++ to FSG</div><div>INFO: fsg_model.c(431): Added 23 silence word transitions</div><div>INFO: fsg_model.c(411): Adding silence transitions for ++SMACK++ to FSG</div><div>INFO: fsg_model.c(431): Added 23 silence word transitions</div><div>INFO: fsg_model.c(411): Adding silence transitions for ++UH++ to FSG</div><div>INFO: fsg_model.c(431): Added 23 silence word transitions</div><div>INFO: fsg_model.c(411): Adding silence transitions for ++UH_NOISE++ to FSG</div><div>INFO: fsg_model.c(431): Added 23 silence word transitions</div><div>INFO: fsg_model.c(411): Adding silence transitions for ++UM++ to FSG</div><div>INFO: fsg_model.c(431): Added 23 silence word transitions</div><div>INFO: fsg_model.c(411): Adding silence transitions for ++UM_NOISE++ to FSG</div><div>INFO: fsg_model.c(431): Added 23 silence word transitions</div><div>INFO: fsg_search.c(364): Added 1 alternate word transitions</div><div>INFO: fsg_lextree.c(108): Allocated 2392 bytes (2 KiB) for left and right context phones</div><div>INFO: fsg_lextree.c(251): 505 HMM nodes in lextree (496 leaves)</div><div>INFO: fsg_lextree.c(253): Allocated 64640 bytes (63 KiB) for all lextree nodes</div><div>INFO: fsg_lextree.c(256): Allocated 63488 bytes (62 KiB) for lextree leafnodes</div><div>2012-05-15 17:01:11.428551 [DEBUG] switch_core_media_bug.c:502 Attaching BUG to sofia/xxxxxx/2143909113</div><div>2012-05-15 17:01:11.448552 [DEBUG] switch_core_io.c:353 Setting BUG Codec PCMU:0</div><div>2012-05-15 17:01:13.448551 [NOTICE] switch_cpp.cpp:1227 ----------------->call answered is false...<------------- </div><div>EXECUTE sofia/xxxxxx/2143909113 detect_speech(resume)</div><div>2012-05-15 17:01:15.008548 [INFO] switch_cpp.cpp:1227 Callback with type event</div><div>2012-05-15 17:01:15.008548 [INFO] switch_cpp.cpp:1227 </div><div>'Event-Name: DETECTED_SPEECH</div><div>Core-UUID: 0a387574-9ee8-11e1-8fa1-43045b098f7a</div><div>FreeSWITCH-Hostname: xxxxxx</div><div>FreeSWITCH-Switchname: xxxxxx</div><div>FreeSWITCH-IPv4: 199.15.96.29</div><div>FreeSWITCH-IPv6: %3A%3A1</div><div>Event-Date-Local: 2012-05-15%2017%3A01%3A14</div><div>Event-Date-GMT: Wed,%2016%20May%202012%2000%3A01%3A14%20GMT</div><div>Event-Date-Timestamp: 1337126474988540</div><div>Event-Calling-File: switch_ivr_async.c</div><div>Event-Calling-Function: speech_thread</div><div>Event-Calling-Line-Number: 3549</div><div>Event-Sequence: 1204</div><div>Speech-Type: begin-speaking</div><div><br></div><div>'</div><div>2012-05-15 17:01:15.008548 [NOTICE] switch_cpp.cpp:1227 ----------------->call answered is false...<------------- </div><div>EXECUTE sofia/xxxxxx/2143909113 detect_speech(resume)</div><div>2012-05-15 17:01:17.008548 [NOTICE] switch_cpp.cpp:1227 ----------------->call answered is false...<------------- </div><div>EXECUTE sofia/xxxxxx/2143909113 detect_speech(resume)</div><div>INFO: cmn_prior.c(121): cmn_prior_update: from < 8.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 ></div><div>INFO: cmn_prior.c(139): cmn_prior_update: to < 8.11 -0.00 0.40 -0.00 -0.39 -0.64 -0.79 -0.65 -0.51 -0.32 -0.08 0.12 0.11 ></div><div>INFO: fsg_search.c(1030): 133 frames, 1846 HMMs (13/fr), 5417 senones (40/fr), 1099 history entries (8/fr)</div><div><br></div><div>INFO: fsg_search.c(1407): Start node hello.0:14:96</div><div>INFO: fsg_search.c(1446): End node <sil>.95:105:132 (-2846)</div><div>INFO: fsg_search.c(1662): lattice start node hello.0 end node <sil>.95</div><div>INFO: ps_lattice.c(1352): Normalizer P(O) = alpha(<sil>:95:132) = -886169</div><div>INFO: ps_lattice.c(1390): Joint P(O,S) = -886169 P(S|O) = 0</div><div>2012-05-15 17:01:17.648543 [DEBUG] mod_pocketsphinx.c:383 Recognized: hello, Confidence: 100</div><div>2012-05-15 17:01:17.648543 [INFO] switch_cpp.cpp:1227 Callback with type event</div><div>2012-05-15 17:01:17.648543 [INFO] switch_cpp.cpp:1227 </div><div>'Event-Name: DETECTED_SPEECH</div><div>Core-UUID: 0a387574-9ee8-11e1-8fa1-43045b098f7a</div><div>FreeSWITCH-Hostname: xxxxxx</div><div>FreeSWITCH-Switchname: xxxxxx</div><div>FreeSWITCH-IPv4: 199.15.96.29</div><div>FreeSWITCH-IPv6: %3A%3A1</div><div>Event-Date-Local: 2012-05-15%2017%3A01%3A17</div><div>Event-Date-GMT: Wed,%2016%20May%202012%2000%3A01%3A17%20GMT</div><div>Event-Date-Timestamp: 1337126477648543</div><div>Event-Calling-File: switch_ivr_async.c</div><div>Event-Calling-Function: speech_thread</div><div>Event-Calling-Line-Number: 3549</div><div>Event-Sequence: 1209</div><div>Speech-Type: detected-speech</div><div>Content-Length: 172</div><div><br></div><div><?xml version="1.0"?></div><div><result grammar="xxxxxx"></div><div> <interpretation grammar="xxxxxx" confidence="100"></div><div> <input mode="speech">hello</input></div><div> </interpretation></div><div></result></div><div>'</div><div>EXECUTE sofia/xxxxxx/2143909113 detect_speech(pause)</div></div><div><br></div></body></html>