[Freeswitch-users] Help with play_and_get_digits from mod_dptools

Diego Viola diego.viola at gmail.com
Mon Apr 13 23:02:46 PDT 2009


Anthony,

I just tried to print the variable with the log app, with read it prints,
with play_and_get_digits doesn't.

I'm using latest SVN rev:

FreeSWITCH Version 1.0.trunk (13012M)

Thanks,

Diego

On Tue, Apr 14, 2009 at 1:53 AM, Diego Viola <diego.viola at gmail.com> wrote:

> I remember playAndGetDigits had a bug like this too.
>
> Anthony, please help me.
>
>
> On Tue, Apr 14, 2009 at 1:42 AM, Diego Viola <diego.viola at gmail.com>wrote:
>
>> It works if I use "read" and do this:
>>
>> <extension name="outbound2">
>>   <condition field="destination_number" expression="^(1888)$">
>>     <action application="read" data="0 10
>> $${base_dir}/sounds/en/us/callie/conference/8000/conf-pin.wav res 10000 #"/>
>>     <action application="transfer" data="${res} XML default"/>
>>     <!--<action application="log" data="CRIT ${foobar}"/>-->
>>     <!--<action application="socket" data="127.0.0.1:8084 async
>> full"/>-->
>>   </condition>
>> </extension>
>>
>> But I need play_and_get_digits to work like that too, please.
>>
>> Diego
>>
>>
>> On Tue, Apr 14, 2009 at 1:36 AM, Diego Viola <diego.viola at gmail.com>wrote:
>>
>>> Hi everyone,
>>>
>>> I have a question... I have this on my dialplan:
>>>
>>> <extension name="outbound2">
>>>   <condition field="destination_number" expression="^(1888)$">
>>>     <action application="play_and_get_digits" data="2 5 3 7000 #
>>> phrase:rac_demo /invalid.wav foobar \\d+"/>
>>>     <action application="transfer" data="${foobar} XML default"/>
>>>   </condition>
>>> </extension>
>>>
>>> What I want to do is play and read some digits and as soon as I get those
>>> digits, transfer to that extension... but this never happens, even if I
>>> terminate with a #.
>>>
>>> I do the same thing with Lua and it works with Lua, but I need it to work
>>> with play_and_get_digits from mod_dptools, because I plan to use this with
>>> event socket outbound, with an application which I'm currently working on.
>>>
>>> Any ideas?
>>>
>>> Thanks,
>>>
>>> Diego
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090414/8d66df9e/attachment-0002.html 


More information about the FreeSWITCH-users mailing list