<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<div><br></div><div>Hi,</div><div>Basically:</div><div>con.api("originate" ,"{ignore_early_media=true,absolute_codec_string=\'PCMA\'}sofia/test/phone@IP &park ");</div><div>con.execute("play_and_get_digits", "3 5 3 5000 # welcome.wav sorry.wav myDigits \\d+",uuid);</div><div>and then uuid_getvar uuid myDigits</div><div><br></div>But con.execute("<div style="text-indent: 0px !important; display: inline; height: auto; position: absolute; visibility: hidden; width: auto; "></div>play_and_get_digits" is not blocking so that I can't grab <div style="text-indent: 0px !important; display: inline; height: auto; position: absolute; visibility: hidden; width: auto; "></div>myDigits.<div>I put a breakpoint at switch_play_and_get_digits (session=0x90d5c18, min_digits=3,.. nevertheless con.execute("play_and_get_digits" returned and with extra debugging I realized that switch_api_execute (cmd=0xb76e2b5c "uuid_getvar"...happens before than</div><div>#3 0x00cf2d08 in switch_core_session_execute_application_get_flags (</div><div><div> session=0xb76b5530, app=0xb76793b0 "play_and_get_digits",</div><div> arg=0xb764ef68 "3 15 3 5000 # ivr-enter_ext_pound.wav sorry.wav myDigits \\d+", flags=0x0) at src/switch_core_session.c:1780</div><div>#4 0x00d43d73 in switch_ivr_parse_event (session=0xb76b5530, event=0xb7652198)</div><div> </div><div>So that it seems a kind of race condition between ESL and the <div style="display: inline; height: auto; position: absolute; visibility: hidden; width: auto; ">core </div>core event system</div><div><br></div><div>PV</div><div><br></div><div><hr id="stopSpelling">Date: Mon, 9 Aug 2010 17:42:42 -0700<br>From: msc@freeswitch.org<br>To: freeswitch-users@lists.freeswitch.org<br>Subject: Re: [Freeswitch-users] [freeswitch-users] play_and_get_digits is        not blocking<br><br><br><br><div class="ecxgmail_quote">On Mon, Aug 9, 2010 at 5:24 PM, Paulo Vicentini <span dir="ltr"><<a href="mailto:vizentini@hotmail.com">vizentini@hotmail.com</a>></span> wrote:<br><blockquote class="ecxgmail_quote" style="padding-left:1ex">
<div>
<div><font face="monospace" size="3"><span style="border-collapse:collapse;font-size:12px;line-height:16px;white-space:pre-wrap">Hi,
With ESL:
this->execute ( 'play_and_get_digits',... $var ..
$digits = $this->api_uuid_getvar ( $uuid, $var );
</span></font></div></div></blockquote><div><br>Paste your entire script, or at least a simple example that demonstrates the issue so that we can try it ourselves. Personally, I've not experienced this issue so I would like to know more about the circumstances where you're seeing this.<br>
-MC<br></div></div><br>
<br>_______________________________________________
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
http://www.freeswitch.org</div></div>                                            </body>
</html>