Thanks for this Nazim,<br><br>Also where i can look for all the updated functions documented for Lua.<br><br>Regads<br>Sam<br><br><div class="gmail_quote">On Fri, Dec 17, 2010 at 4:17 AM, Nazim Aghabayov [via freeswitch-users] <span dir="ltr"><<a href="/user/SendEmail.jtp?type=node&node=5844699&i=0" target="_top" rel="nofollow">[hidden email]</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">
        Why not using Lua script? Lua is quite powerful and you could benefit of
<br>using the luasql for db connectivity.
<br><br>g_caller_id = session:getVariable("caller_id_number")
<br>g_caller_destination_number = session:getVariable("destination_number")
<br>g_caller_context = session:getVariable("context")
<br>g_caller_uuid = session:getVariable("uuid")
<br>...
<br>session:flushDigits()
<br>digits = session:playAndGetDigits(4, 4, 3, 3000, "#",
<br> wav_base .. langId .. "/" .. prompt_wav, "",
<br> "[" .. allowed_digit1 .. "," .. allowed_digitN .. "]");
<br>...
<br>session:transfer(tostring(dest_ext), "XML", "public")
<br><br>Regards,
<br>Nazim
<br><br><br>On 12/16/2010 07:29 AM, Sam wrote:
</div><div><div class="im"><div class='shrinkable-quote'><br>> hi,
<br>>
<br>> Its not an XML IVR but trying to collect digits when the user punches in
<br>> some digits after a playback sound file,
<br>> so that the digits would get stored into $(digits) and i can use those
<br>> digits for further processing or transferring
<br>> to other dial-plan as per the digits punched in.
<br>>
<br>> Suppose a digits punched are 4567, I collect them in $(digits) and by
<br>> transfer function i do the transfer.
<br>>
<br>> <action application="transfer" data="$(digits) default XML"/>
<br>>
<br>> -----------------------------------------------------------------------------------------------
<br>>
<br>> Also i could see that in IVR.conf can do this by pressing 4567 and executing
<br>> a statement , but here also question
<br>> is how can i use it by storing those collected digits in an variable and the
<br>> using it further.
<br>>
<br>> ----------------------------------------------------------------------------------------------
<br>>
<br>> I was thinking how in both the cases it could be done.
<br>>
<br>> Thnx & Regds
<br>> Sam
<br>>
<br>>
<br>>
</div></div><div class="im">> On Thu, Dec 16, 2010 at 4:35 AM, Michael Collins <<a href="http://user/SendEmail.jtp?type=node&node=5843837&i=0" rel="nofollow" target="_blank" link="external">[hidden email]</a>> wrote:
<br>>
<br>>> Is this an XML IVR?
<br>>> -MC
<br>>>
<br>>>
<br></div><div class="im">>> On Tue, Dec 14, 2010 at 1:43 AM, samir <<a href="http://user/SendEmail.jtp?type=node&node=5843837&i=1" rel="nofollow" target="_blank" link="external">[hidden email]</a>> wrote:
<div class='shrinkable-quote'><br>>>
<br>>>> hello,
<br>>>>
<br>>>> Is there any method to collect digits by a variable clause ?
<br>>>>
<br>>>> Suppose i have a ivr playing and user inputs digits , i want to collect
<br>>>> the
<br>>>> dtmf digits and send it to a different application where that digits will
<br>>>> be
<br>>>> used for routing purpose.
<br>>>>
<br>>>> Any ideas !
<br>>>>
<br>>>> Regards
<br>>>> Sam
<br>>>> --
<br>>>> View this message in context:
<br>>>> <a href="http://freeswitch-users.2379917.n2.nabble.com/collecting-dtmf-digits-tp5833942p5833942.html?by-user=t&by-user=t" rel="nofollow" link="external" target="_blank">http://freeswitch-users.2379917.n2.nabble.com/collecting-dtmf-digits-tp5833942p5833942.html</a></div>
>>> Sent from the freeswitch-users mailing list archive at Nabble.com.
<br>>>>
<br>>>> _______________________________________________
<br>>>> FreeSWITCH-users mailing list
<br></div>>>> <a href="http://user/SendEmail.jtp?type=node&node=5843837&i=2" rel="nofollow" target="_blank" link="external">[hidden email]</a>
<br><div class="im">>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="nofollow" link="external" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="nofollow" link="external" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>>>> <a href="http://www.freeswitch.org" rel="nofollow" link="external" target="_blank">http://www.freeswitch.org</a><br>
>>>
<br>>>
<br>>> _______________________________________________
<br>>> FreeSWITCH-users mailing list
<br></div>>> <a href="http://user/SendEmail.jtp?type=node&node=5843837&i=3" rel="nofollow" target="_blank" link="external">[hidden email]</a>
<br><div class="im">>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="nofollow" link="external" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="nofollow" link="external" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>> <a href="http://www.freeswitch.org" rel="nofollow" link="external" target="_blank">http://www.freeswitch.org</a><br>>>
<br>>>
<br>>
<br>>
<br>> _______________________________________________
<br>> FreeSWITCH-users mailing list
<br></div>> <a href="http://user/SendEmail.jtp?type=node&node=5843837&i=4" rel="nofollow" target="_blank" link="external">[hidden email]</a>
<br><div class="im">> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="nofollow" link="external" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="nofollow" link="external" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" rel="nofollow" link="external" target="_blank">http://www.freeswitch.org</a></div></div><br><br>_______________________________________________
<br>FreeSWITCH-users mailing list
<br><a href="http://user/SendEmail.jtp?type=node&node=5843837&i=5" rel="nofollow" target="_blank" link="external">[hidden email]</a>
<br><div class="im"><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="nofollow" link="external" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="nofollow" link="external" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="nofollow" link="external" target="_blank">http://www.freeswitch.org</a><br>
        <br>
        <br>
        <hr color="#cccccc" noshade size="1">
        </div><div style="color: rgb(102, 102, 102); font: 11px tahoma,geneva,helvetica,arial,sans-serif;">
                View message @ <a href="http://freeswitch-users.2379917.n2.nabble.com/collecting-dtmf-digits-tp5833942p5843837.html?by-user=t" target="_blank" rel="nofollow" link="external">http://freeswitch-users.2379917.n2.nabble.com/collecting-dtmf-digits-tp5833942p5843837.html</a><div class="im">
<br>
                
                To unsubscribe from collecting dtmf digits, <a href="http://freeswitch-users.2379917.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5833942&code=dTJuc2FtQGdtYWlsLmNvbXw1ODMzOTQyfC0xMTk1MzYwMDk5&by-user=t" target="_blank" rel="nofollow" link="external">click here</a>.
        </div></div></blockquote></div><br>
<br><hr align="left" width="300">
View this message in context: <a href="http://freeswitch-users.2379917.n2.nabble.com/collecting-dtmf-digits-tp5833942p5844699.html">Re: collecting dtmf digits</a><br>
Sent from the <a href="http://freeswitch-users.2379917.n2.nabble.com/">freeswitch-users mailing list archive</a> at Nabble.com.<br>