[Freeswitch-users] collect dtmf and store in channel variable

Anthony Minessale anthony.minessale at gmail.com
Fri Aug 12 02:32:42 MSD 2011


digits_dialed variable available in the cdr will contain any digits
dialed the whole call duration.


On Thu, Aug 11, 2011 at 3:15 PM, Avi Marcus <avi at avimarcus.net> wrote:
> According to the wiki, apparently, you can't capture digits from
> bind_digit_action. So you'll have to use that to trigger
> a Dialplan_Tools_play_and_get_digits which automatically sets a variable, or
> getdigits within lua/js (only?) and then save it.
>
> -Avi
>
>
> On Thu, Aug 11, 2011 at 10:18 PM, vip killa <vipkilla at gmail.com> wrote:
>>
>> I can't seem to figure out how to store what is collected
>> from bind_digit_action into a channel variable... any ideas?
>>
>> On Thu, Aug 11, 2011 at 3:07 PM, Avi Marcus <avi at avimarcus.net> wrote:
>>>
>>> So some sort of bind_digit_action to collect and use that to set a hangup
>>> hook. I then execute_extension from the action will be the easiest way to do
>>> it, because you have several actions to accomplish.
>>> However, doing this while the other person is on the hook.. sounds like a
>>> bad idea.
>>> -Avi
>>>
>>> On Thu, Aug 11, 2011 at 9:13 PM, vip killa <vipkilla at gmail.com> wrote:
>>>>
>>>> thanks but i'm not interested in paying someone to do this. but yes i
>>>> simply want to collect the digits during the call from the B leg then store
>>>> them in a variable which will rename the file accordingly from the hangup
>>>> hook
>>>>
>>>> On Thu, Aug 11, 2011 at 2:07 PM, Avi Marcus <avi at avimarcus.net> wrote:
>>>>>
>>>>> Oh, you don't want the info in the CDR, you want the info in the
>>>>> recording. Does it have to be in the name, or is an audio tag enough? I'm
>>>>> not sure if tags can work once the recording started...
>>>>> OK, so you can set a hangup hook to rename the file and add the
>>>>> variable with the account code to the end.
>>>>> Whatever you use to capture the DTMF - bind_digit_action or
>>>>> playandgetdigits or anything can set a variable.
>>>>> -Avi Marcus
>>>>>
>>>>> p.s. If you want me to... actually do it for you, I'm available for
>>>>> consulting.. email me offlist.
>>>>>
>>>>> On Thu, Aug 11, 2011 at 8:52 PM, vip killa <vipkilla at gmail.com> wrote:
>>>>>>
>>>>>> I apologize but the caller would not know the account number, it would
>>>>>> be for internal use only. how could xml_cdrs and mod_cdr_csv be used to
>>>>>> stamp a recording? how do you store the DTMF in a channel variable?
>>>>>>
>>>>>> On Thu, Aug 11, 2011 at 12:41 PM, Avi Marcus <avi at avimarcus.net>
>>>>>> wrote:
>>>>>>>
>>>>>>> You can set any channel variable from the dialplan or from a lua
>>>>>>> script.
>>>>>>> I'd reccommend a standalone lua script before the agent gets on the
>>>>>>> phone, which can verify their account number and then present it to the
>>>>>>> agent even. But yes, you can do anything with the dtmf including setting a
>>>>>>> variable which can be saved from the xml_cdrs or mod_cdr_csv or whatever
>>>>>>> other cdr system you use.
>>>>>>> -Avi
>>>>>>>
>>>>>>> On Thu, Aug 11, 2011 at 7:30 PM, vip killa <vipkilla at gmail.com>
>>>>>>> wrote:
>>>>>>>>
>>>>>>>> indeed it may be easier but this is what the client is asking
>>>>>>>> for.... i know it has to be possible... i just need some direction.
>>>>>>>>
>>>>>>>> On Thu, Aug 11, 2011 at 12:22 PM, <covici at ccs.covici.com> wrote:
>>>>>>>>>
>>>>>>>>> Could not the agent just type it on a screen -- it would seem to be
>>>>>>>>> much
>>>>>>>>> easier.
>>>>>>>>>
>>>>>>>>> vip killa <vipkilla at gmail.com> wrote:
>>>>>>>>>
>>>>>>>>> > Hi everyone,
>>>>>>>>> > I'm trying to collect DTMF digits and store them in a channel
>>>>>>>>> > variable so
>>>>>>>>> > when the channel hangs up it uses those digits to "mark" (or
>>>>>>>>> > rename) the
>>>>>>>>> > recording of the call. The DTMF will be entered by the called
>>>>>>>>> > party (i think
>>>>>>>>> > that would be the B-leg?). I've been experimenting with
>>>>>>>>> > "bind_meta_app" and
>>>>>>>>> > "bind_digit_action", it seems like "bind_digit_action" may be the
>>>>>>>>> > one i need
>>>>>>>>> > to use but im not sure. I'll explain the scenario to make things
>>>>>>>>> > more
>>>>>>>>> > clear...we are trying to install this in a call center type
>>>>>>>>> > environment
>>>>>>>>> > where all calls are being recorded. A caller gets an agent, the
>>>>>>>>> > caller gives
>>>>>>>>> > the agent the account number of their case, the agent uses DTMF
>>>>>>>>> > to mark the
>>>>>>>>> > recording of the call with the account number of the caller's
>>>>>>>>> > case. Does
>>>>>>>>> > that make sense? Please let me know if this is possible, thanks.
>>>>>>>>> >
>>>>>>>>> > ----------------------------------------------------
>>>>>>>>> > Alternatives:
>>>>>>>>> >
>>>>>>>>> > ----------------------------------------------------
>>>>>>>>> > _______________________________________________
>>>>>>>>> > 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
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Your life is like a penny.  You're going to lose it.  The question
>>>>>>>>> is:
>>>>>>>>> How do
>>>>>>>>> you spend it?
>>>>>>>>>
>>>>>>>>>         John Covici
>>>>>>>>>         covici at ccs.covici.com
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> 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
>>>>>>>>
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> 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
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> 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
>>>>>>>
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> 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
>>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> 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
>>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> 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
>>>>
>>>
>>>
>>> _______________________________________________
>>> 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
>>>
>>
>>
>> _______________________________________________
>> 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
>>
>
>
> _______________________________________________
> 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
>
>



-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale at hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org
googletalk:conf+888 at conference.freeswitch.org
pstn:+19193869900



Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list