[Freeswitch-users] bind_digit_action delay

Javier Gallart jgallartm at gmail.com
Tue Jun 21 14:18:29 MSD 2011


Thanks Michael

the session has been answered by a lua script and transferred back to the
dialplan to be bridged. Once in the dialplan this is the extension executed.
The CUSTOM schedule event is sent 5 seconds after the ## is pressed.

<extension name="bridge_session" continue="false">
        <condition field="${call_type}" expression="prepaid">
            <action application="set" data="continue_on_fail=1"/>
            <action application="export" data="execute_on_answer=event
Event-Subclass=schedule,Event-Name=CUSTOM"/>
            (...here we assign some custom variables...)
            <action application="export"
data="bridge_pre_execute_aleg_app=bind_digit_action"/>
            <action application="export"
data="bridge_pre_execute_aleg_data=test1,##,exec:event,Event-Subclass=reoriginate,Event-Name=CUSTOM"/>
            <action application="digit_action_set_realm" data="test1"/>
            <action application="bridge"
data="sofia/internal/${dest_number}@${gateway}"/>
        </condition>
</extension>

Regards

Javi



---------- Forwarded message ----------
> From: Michael Collins <msc at freeswitch.org>
> To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
> Date: Mon, 20 Jun 2011 10:32:42 -0700
> Subject: Re: [Freeswitch-users] bind_digit_action delay
> Could you please pastebin your dialplan where you set the target actions
> for these digits?
> -MC
>
> On Mon, Jun 20, 2011 at 4:37 AM, Javier Gallart <jgallartm at gmail.com>wrote:
>
>> Hello list,
>>
>> I'm using to bind_digit_action application to launch an event when a
>> particular sequence of keys (##) is pressed. It works fine, the only problem
>> is that the application is launched 5 seconds after the last key is pressed.
>> I've tried with a simple playback application and it's just the same:
>> 2011-06-20 07:22:55.641019 [DEBUG] switch_rtp.c:3302 RTP RECV DTMF #:1560
>> 2011-06-20 07:22:56.121025 [DEBUG] switch_rtp.c:3302 RTP RECV DTMF #:1480
>> 2011-06-20 07:22:56.121025 [DEBUG] mod_dptools.c:151 sofia/internal/
>> 34917019888 at 79.170.64.151 Digit match binding
>> [exec:playback][/var/local/sounds/common/en/last_time]
>> (...)
>> 2011-06-20 07:22:56.441011 [DEBUG] switch_ivr.c:567 sofia/internal/
>> 34661574758 at 79.170.68.169:5060 Command Execute
>> playback(local_stream://moh)
>> EXECUTE sofia/internal/34661574758 at 79.170.68.169:5060playback(local_stream://moh)
>> 2011-06-20 07:22:56.441011 [WARNING] mod_local_stream.c:393 Unknown source
>> moh, trying 'default'
>> 2011-06-20 07:22:56.441011 [ERR] mod_local_stream.c:402 Unknown source
>> default
>> (...)
>> 2011-06-20 07:23:01.281067 [DEBUG] switch_ivr.c:567 sofia/internal/
>> 34917019888 at 79.170.64.151 Command Execute
>> playback(/var/local/sounds/common/en/last_time)
>> EXECUTE sofia/internal/34917019888 at 79.170.64.151playback(/var/local/sounds/common/en/last_time)
>>
>> My first question is why does fs tries to play moh? And the second one is
>> if there is a way to shorten the lapse between the last key and the
>> execution of the application. I've played a bit with the
>> bind_digit_input_timeout variable that I've seen in the code, with no
>> success. Does anyone have faces the same issue?
>> I'm using version FreeSWITCH Version 1.0.head (git-7768808 2011-06-18
>> 11-52-37 -0500)
>>
>> Thanks in advance
>>
>> Javi
>>
>> _______________________________________________
>> Join us at ClueCon 2011, Aug 9-11, Chicago
>> http://www.cluecon.com 877-7-4ACLUE
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110621/f6b5952d/attachment-0001.html 


More information about the FreeSWITCH-users mailing list