I haven&#39;t had a chance to familiarize my self with the Lua/dbh way of connecting to a database so I&#39;ll have to defer to Chad and the other hardcore Lua gurus. This much I can tell you: there is a valet_info API that you can run at fs_cli or from Lua that will tell you what parking spots are currently in use.<br>
<br>-MC<br><br><div class="gmail_quote">On Fri, Nov 30, 2012 at 3:35 AM, Nitin Tomer <span dir="ltr">&lt;<a href="mailto:ntomer@newgen.co.in" target="_blank">ntomer@newgen.co.in</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">









<div link="blue" vlink="purple" lang="EN-US">

<div>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Hi Michael,<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">I’ve decided to do it through Lua. I’ve written a
Lua script which will check whether an entry for an extension exists in the
database. And if it doesn’t, it’ll assume that extension as free
and will park the call there.<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">I’ve made the following changes in the dialplan –<u></u><u></u></span></p><div class="im">

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>

<p>&lt;extension&gt;<u></u><u></u></p>

<p style="text-indent:.5in">&lt;condition
field=&quot;destination_number&quot; expression=&quot;^(450)$&quot;&gt;<u></u><u></u></p>

<p style="text-indent:1.0in">&lt;action
application=&quot;play_and_get_digits&quot; data=&quot;10 16 3 3000 #
say:&#39;Press your account number, followed by hash key&#39; say:&#39;Wrong Input&#39; res
\d+&quot; /&gt;<u></u><u></u></p>

<p>           
&lt;action application=&quot;phrase&quot; data=&quot;spell,${res}&quot;/&gt;<u></u><u></u></p>

</div><p>           
&lt;action application=&quot;set&quot; data=&quot;caller_id_name=Change Address
Request&quot; /&gt;<u></u><u></u></p><div class="im">

<p>           
&lt;action application=&quot;set&quot; data=&quot;call_timeout=60&quot; /&gt;<u></u><u></u></p>

<p>           
&lt;action application=&quot;set&quot; data=&quot;originate_timeout=60&quot;
/&gt;<u></u><u></u></p>

</div><p>           
&lt;action inline=&quot;true&quot; application=&quot;lua&quot;
data=&quot;test.lua &quot;/&gt;<u></u><u></u></p>

<p>           
&lt;action application=&quot;db&quot; data=&quot;insert/testapp/${parkednumber}/${res}&quot;
/&gt;<u></u><u></u></p>

<p style="margin-left:.5in;text-indent:.5in">&lt;action
application=&quot;valet_park&quot; data=&quot;my_lot ${parkednumber}&quot;
/&gt;<u></u><u></u></p>

<p style="text-indent:.5in">&lt;/condition&gt;<u></u><u></u></p>

<p>  &lt;/extension&gt;<u></u><u></u></p>

<p><u></u> <u></u></p>

<p>Test.lua:<u></u><u></u></p>

<p><u></u> <u></u></p>

<p>local dbh =
freeswitch.Dbh(&quot;freeswitch-connector&quot;, &quot;root&quot;,
&quot;system123#&quot;)<u></u><u></u></p>

<p><u></u> <u></u></p>

<p>if dbh:connected() then<u></u><u></u></p>

<p>    if stream then<u></u><u></u></p>

<p>       
stream:write(&quot;result - database connected\n\n&quot;)<u></u><u></u></p>

<p>    else<u></u><u></u></p>

<p>      print(&quot;database
connected&quot;)<u></u><u></u></p>

<p>    end<u></u><u></u></p>

<p>else  <u></u><u></u></p>

<p>    if stream then<u></u><u></u></p>

<p>      stream:write(&quot;result
- database error\n&quot;)<u></u><u></u></p>

<p>    else<u></u><u></u></p>

<p>      print(&quot;database
error&quot;)<u></u><u></u></p>

<p>    end<u></u><u></u></p>

<p>    return<u></u><u></u></p>

<p>end<u></u><u></u></p>

<p><u></u> <u></u></p>

<p>-- set variable - or print to console if no session is
available <u></u><u></u></p>

<p>local function sv(key, val)<u></u><u></u></p>

<p>   if session then<u></u><u></u></p>

<p>      
session:setVariable(&quot;parkednumber&quot;, val)<u></u><u></u></p>

<p>       print(&quot;value
set in session&quot;)<u></u><u></u></p>

<p>   elseif stream then<u></u><u></u></p>

<p>      
stream:write(string.format(&quot;%25s : %s\n&quot;, key, val))<u></u><u></u></p>

<p>   else -- a script executed using luarun does
not have a stream<u></u><u></u></p>

<p>       print(key .. &quot;
: &quot; .. val)<u></u><u></u></p>

<p>   end<u></u><u></u></p>

<p>end<u></u><u></u></p>

<p><u></u> <u></u></p>

<p>number = 8501<u></u><u></u></p>

<p><u></u> <u></u></p>

<p>while(number &lt; 8600)<u></u><u></u></p>

<p>local my_query = &quot;select data from db_data where
data_key = &#39;&quot; .. tries .. “’”<u></u><u></u></p>

<p><u></u> <u></u></p>

<p>      assert(dbh:query(my_query,
function(row)<u></u><u></u></p>

<p>            for
key, val in pairs(row) do     -- in this example only one<u></u><u></u></p>

<p>row with one column will be returned<u></u><u></u></p>

<p>                        sv(key,
val)                  
-- so here key = &#39;user&#39;<u></u><u></u></p>

<p>            end<u></u><u></u></p>

<p>      end))<u></u><u></u></p>

<p>      tries = tries + 1<u></u><u></u></p>

<p>end<u></u><u></u></p>

<p><u></u> <u></u></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">I want to execute the above query, and check whether any result
came. If results came, then I want to proceed to next number. And if no result
came, then I want to set it in the session variable and break from the while loop.
But I could only find the syntax for assert, no way to check whether the query
returned any result or not. Please help me out.<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Regards<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Nitin<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>

<div>

<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">

<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">
<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>
[mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] <b>On Behalf Of </b>Nitin
Tomer<br>
<b>Sent:</b> Friday, November 30, 2012 10:03 AM</span></p><div><div class="h5"><br>
<b>To:</b> &#39;FreeSWITCH Users Help&#39;<br>
<b>Subject:</b> Re: [Freeswitch-users] valet_park help needed<u></u><u></u></div></div><p></p>

</div>

</div><div><div class="h5">

<p class="MsoNormal"><u></u> <u></u></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Dear Michael,<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Thanks for your response.<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">If I can’t suppress the announcement of location to
caller, then I will have to look at an alternative approach.<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">I make entries for every location on which a call is parked in
my database, so will it be possible for me to do –<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>

<p><u></u><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><span>1.<span style="font:7.0pt &quot;Times New Roman&quot;">      
</span></span></span><u></u><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Suppose I have assigned extension 8501 to 8599 for parking.<u></u><u></u></span></p>

<p><u></u><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><span>2.<span style="font:7.0pt &quot;Times New Roman&quot;">      
</span></span></span><u></u><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Run a for loop, from 8501 to 8599<u></u><u></u></span></p>

<p><u></u><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><span>3.<span style="font:7.0pt &quot;Times New Roman&quot;">      
</span></span></span><u></u><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Check whether an entry exists for that extension in the database<u></u><u></u></span></p>

<p><u></u><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><span>4.<span style="font:7.0pt &quot;Times New Roman&quot;">      
</span></span></span><u></u><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">If an entry exists, it means a call is parked at that extension,
move to next extension<u></u><u></u></span></p>

<p><u></u><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><span>5.<span style="font:7.0pt &quot;Times New Roman&quot;">      
</span></span></span><u></u><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">If no entry exists, it means extension is free. Park the call
there and make entry in database<u></u><u></u></span></p>

<p><u></u><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><span>6.<span style="font:7.0pt &quot;Times New Roman&quot;">      
</span></span></span><u></u><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Break the loop<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Will it work? And if it will, please guide me on how to do that.
I am new to Freeswitch and not very well-versed  with it.<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Regards<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Nitin<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>

<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">

<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">
<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>
[mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] <b>On Behalf Of </b>Michael
Collins<br>
<b>Sent:</b> Friday, November 30, 2012 8:30 AM<br>
<b>To:</b> FreeSWITCH Users Help<br>
<b>Subject:</b> Re: [Freeswitch-users] valet_park help needed<u></u><u></u></span></p>

</div>

<p class="MsoNormal"><u></u> <u></u></p>

<p class="MsoNormal" style="margin-bottom:12.0pt">As far as I know you can&#39;t
suppress the announcement of the location to the caller.<br>
<br>
For the event socket you have a lot of homework to do. I recommend:<br>
<a href="https://www.packtpub.com/freeswitch-1-0-6-build-robust-high-performance-telephony-systems/book" target="_blank">FS
Book</a>, chapter 9<br>
<a href="http://link.packtpub.com/nuIOlX" target="_blank">FS Cookbook</a>, chapter 4<br>
Wiki event socket (see link on left)<br>
<br>
For a really quick dive into what events look like:<br>
launch fs_cli and type:<br>
/log 0<br>
/events plain all<br>
<br>
You&#39;ll see EVERY event that the system throws. Try this to narrow it down just
to valet events:<br>
<br>
/filter Event-Class valet_parking::info<br>
<br>
I typed most of this off the top of my head, so <a href="http://wiki.freeswitch.org/wiki/Reporting_Bugs#Standard_Disclaimer" target="_blank">standard
disclaimer</a> applies. Hope this helps you get started!<br>
-MC<u></u><u></u></p>

<div>

<p class="MsoNormal">On Thu, Nov 29, 2012 at 6:09 PM, Nitin Tomer &lt;<a href="mailto:ntomer@newgen.co.in" target="_blank">ntomer@newgen.co.in</a>&gt;
wrote:<u></u><u></u></p>

<div>

<div>

<p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Dear Michael,<br>
<br>
Thanks for your help.<br>
<br>
About thsis - &quot;Using &#39;auto in&#39; the system will announce the parking
location. If you are sending a call in from an IVR then the caller will hear
their park location. The only way to know where the call went would be to watch
the event socket for relevant valet events. &quot;<br>
<br>
Yes, right now the extension where call is parked, is announced to the caller.
I don&#39;t want that to happen. I don&#39;t want it announced to caller, rather I want
it retruned to me, so that I can store it in database. So that my agents can
pick the call after seeing the extension where it is parked.<br>
<br>
Please tell me more details about how to watch the event socket for valet
events.<br>
<br>
Regards<br>
<br>
Nitin<br>
<br>
On Friday, 30-11-2012 on 6:38 Michael Collins wrote:<u></u><u></u></span></p>

<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Answers
inline...<u></u><u></u></span></p>

<div>

<p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">On Thu, Nov
29, 2012 at 2:15 AM, Nitin Tomer &lt;<a href="mailto:ntomer@newgen.co.in" target="_blank">ntomer@newgen.co.in</a>&gt; wrote:<u></u><u></u></span></p>

<div>

<div>

<div>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Hi,</span><u></u><u></u></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">I am
using valet_park. I’ve configure a IVR menu of an extension, based on
user’s input call is forwarded to other extensions.</span><u></u><u></u></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Extension
on which end-users will call –</span><u></u><u></u></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>

<p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">&lt;extension
name=&quot;ivr_nitin&quot;&gt;<br>
      &lt;condition
field=&quot;destination_number&quot; expression=&quot;^5002$&quot;&gt;<br>
        &lt;action
application=&quot;answer&quot;/&gt;<br>
        &lt;action application=&quot;sleep&quot;
data=&quot;500&quot;/&gt;<br>
        &lt;action
application=&quot;ivr&quot; data=&quot;nitin_ivr&quot;/&gt;<br>
      &lt;/condition&gt;<br>
&lt;/extension&gt;</span><u></u><u></u></p>

<p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"> </span><u></u><u></u></p>

<p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">The IVR configuration XML is –</span><u></u><u></u></p>

<p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"> </span><u></u><u></u></p>

<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">&lt;include&gt;<br>
        &lt;menu name=&quot;nitin_ivr&quot;<br>
               
greet-long=&quot;say:Welcome to Newgen General Insurance Company. Press 1 for
Changing Address, 2 for Changing Nominee or 3 for Close Policy.&quot;<br>
               
greet-short=&quot;say:Welcome to Newgen. Press 1 for Changing Address, 2 for
Changing Nominee or 3 for Close Policy.&quot;<br>
               
invalid-sound=&quot;ivr/ivr-that_was_an_invalid_entry.wav&quot;<br>
               
exit-sound=&quot;voicemail/vm-goodbye.wav&quot;<br>
               
confirm-macro=&quot;&quot;<br>
               
confirm-key=&quot;&quot;<br>
               
tts-engine=&quot;flite&quot;<br>
               
tts-voice=&quot;slt&quot;<br>
               
confirm-attempts=&quot;3&quot;<br>
               
timeout=&quot;3000&quot;<br>
               
inter-digit-timeout=&quot;2000&quot;<br>
               
max-failures=&quot;3&quot;<br>
               
max-timeouts=&quot;3&quot;<br>
               
digit-len=&quot;4&quot;&gt;<br>
 <br>
               
&lt;entry action=&quot;menu-exec-app&quot; digits=&quot;1&quot;
param=&quot;transfer 450 XML default&quot;/&gt;    &lt;!--
Change Address --&gt;<br>
               
&lt;entry action=&quot;menu-exec-app&quot; digits=&quot;2&quot;
param=&quot;transfer 451 XML default&quot;/&gt;    &lt;!--
Change Nominee --&gt;<br>
               
&lt;entry action=&quot;menu-exec-app&quot; digits=&quot;3&quot;
param=&quot;transfer 452 XML default&quot;/&gt;    &lt;!-- Close
Policy --&gt;<br>
<br>
        &lt;/menu&gt;<br>
&lt;/include&gt;</span><u></u><u></u></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Once
user presses “1”, call is forwarded to 450, for this extension
dialplan entry is –</span><u></u><u></u></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>

<p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">&lt;extension&gt;<br>
          &lt;condition
field=&quot;destination_number&quot; expression=&quot;^(450)$&quot;&gt;<br>
          &lt;action
application=&quot;play_and_get_digits&quot; data=&quot;10 16 3 3000 #
say:&#39;Press your account number, followed by hash key&#39; say:&#39;Wrong Input&#39; res
\d+&quot; /&gt;<br>
          &lt;action
application=&quot;phrase&quot; data=&quot;spell,${res}&quot;/&gt;<br>
          &lt;action
application=&quot;db&quot; data=&quot;insert/testapp/newcall1/${res}&quot;
/&gt;    <br>
             
&lt;action application=&quot;set&quot; data=&quot;caller_id_name=Change Address
Request&quot; /&gt;<br>
             
&lt;action application=&quot;set&quot; data=&quot;call_timeout=60&quot; /&gt;<br>
             
&lt;action application=&quot;set&quot; data=&quot;originate_timeout=60&quot;
/&gt;<br>
             
&lt;action application=&quot;valet_park&quot; data=&quot;my_lot auto in 8501
8599&quot; /&gt;           </span><u></u><u></u></p>

<p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">         
&lt;/condition&gt;<br>
&lt;/extension&gt;</span><u></u><u></u></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Here,
the call is parked at any available extension between 8501 to 8599.</span><u></u><u></u></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Then
I’ve set up an extension to pick up calls –</span><u></u><u></u></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>

<p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">&lt;extension
name=&quot;park-out&quot;&gt;<br>
   &lt;condition field=&quot;destination_number&quot;
expression=&quot;^(85\d\d)$&quot;&gt;<br>
     &lt;action application=&quot;answer&quot;/&gt;<br>
     &lt;action application=&quot;valet_park&quot;
data=&quot;my_lot $1&quot;/&gt;<br>
   &lt;/condition&gt;<br>
 &lt;/extension&gt;</span><u></u><u></u></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">I
have a few questions –</span><u></u><u></u></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>

<p><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">1.</span><span style="font-size:7.0pt;color:#1f497d">       </span><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Valet_park
parks the call on any available extension between 8501 to 8599 (</span><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">&lt;action
application=&quot;valet_park&quot; data=&quot;my_lot auto in 8501 8599&quot;
/&gt;). Is there any way to let me know on which extension the call have been
parked?<u></u><u></u></span></p>

</div>

</div>

</div>

<div>

<p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Using &#39;auto
in&#39; the system will announce the parking location. If you are sending a call in
from an IVR then the caller will hear their park location. The only way to know
where the call went would be to watch the event socket for relevant valet
events. <u></u><u></u></span></p>

</div>

<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt">

<div>

<div>

<div>

<p><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">2.</span><span style="font-size:7.0pt;color:#1f497d">       </span><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">How
can I get the number from which call was made in extension 450. The idea is to
use the caller number as key and entered value as value while making entry in
database (</span><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">&lt;action
application=&quot;db&quot; data=&quot;insert/testapp/newcall1/${res}&quot;
/&gt;)?<u></u><u></u></span></p>

</div>

</div>

</div>

</blockquote>

<div>

<p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Do you mean
the caller id number? That&#39;s literally in channel variable ${caller_id_number} <u></u><u></u></span></p>

</div>

<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt">

<div>

<div>

<div>

<p><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">3.</span><span style="font-size:7.0pt;color:#1f497d">       </span><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">If
two users call on extension 5002 (where IVR menu is played), what will happen?
Will the second user have to wait for first to finish or whether both will be
connected parallel?</span><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><u></u><u></u></span></p>

</div>

</div>

</div>

</blockquote>

<div>

<p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Both can be
in the IVR at the same time and they won&#39;t affect each other at all.<br>
<br>
-MC <u></u><u></u></span></p>

</div>

<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt">

<div>

<div>

<div>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Please
help me out.</span><u></u><u></u></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Regards</span><u></u><u></u></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Nitin</span><u></u><u></u></p>

</div>

</div>

<p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><u></u> <u></u></span></p>

<div>

<h6><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Disclaimer :- This e-mail
and any attachment may contain confidential, proprietary or legally privileged
information. If you are not the original intended recipient and have
erroneously received this message, you are prohibited from using, copying,
altering or disclosing the content of this message. Please delete it
immediately and notify the sender. Newgen Software Technologies Ltd (NSTL)
accepts no responsibilities for loss or damage arising from the use of the
information transmitted by this email including damages from virus and further
acknowledges that no binding nature of the message shall be implied or assumed
unless the sender does so expressly with due authority of NSTL. <u></u><u></u></span></h6>

</div>

<p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><u></u> <u></u></span></p>

</div>

<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><u></u><u></u></span></p>

</blockquote>

</div>

<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><br>
<br clear="all">
<br>
-- <br>
Michael S Collins<br>
Twitter: @mercutioviz<br>
<a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br>
<a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><u></u><u></u></span></p>

</div>

<p class="MsoNormal"><u></u> <u></u></p>

<div>

<h6>Disclaimer :- This e-mail and any attachment may contain confidential,
proprietary or legally privileged information. If you are not the original
intended recipient and have erroneously received this message, you are
prohibited from using, copying, altering or disclosing the content of this
message. Please delete it immediately and notify the sender. Newgen Software
Technologies Ltd (NSTL) accepts no responsibilities for loss or damage arising
from the use of the information transmitted by this email including damages
from virus and further acknowledges that no binding nature of the message shall
be implied or assumed unless the sender does so expressly with due authority of
NSTL. <u></u><u></u></h6>

</div>

<p class="MsoNormal"><u></u> <u></u></p>

</div>

<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><u></u><u></u></p>

</div>

<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
<br clear="all">
<br>
-- <br>
Michael S Collins<br>
Twitter: @mercutioviz<br>
<a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br>
<a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><u></u><u></u></p>

<p class="MsoNormal"><u></u> <u></u></p>

<h6>Disclaimer :- This e-mail and any attachment may contain confidential,
proprietary or legally privileged information. If you are not the original
intended recipient and have erroneously received this message, you are
prohibited from using, copying, altering or disclosing the content of this
message. Please delete it immediately and notify the sender. Newgen Software
Technologies Ltd (NSTL) accepts no responsibilities for loss or damage arising
from the use of the information transmitted by this email including damages
from virus and further acknowledges that no binding nature of the message shall
be implied or assumed unless the sender does so expressly with due authority of
NSTL. <u></u><u></u></h6>

<p class="MsoNormal"><u></u> <u></u></p>

</div></div></div><div><div class="h5">


<br>
<div><h6>Disclaimer :- This e-mail and any attachment may contain confidential, proprietary or legally privileged information. If you are not the original intended recipient and have erroneously received this message, you are prohibited from using, copying, altering or disclosing the content of this message. Please delete it immediately and notify the sender. Newgen Software Technologies Ltd (NSTL)  accepts no responsibilities for loss or damage arising from the use of the information transmitted by this email including damages from virus and further acknowledges that no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of NSTL.
</h6></div>


<br></div></div></div>


<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Michael S Collins<br>Twitter: @mercutioviz<br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br><a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br><br><br>