Posted: Wed Apr 22, 2009 12:25 pm Post subject: [Asterisk-video] Getting back the dtmf from app_mp4
I'm calling app_mp4 from a fastagi app. mp4play gets interrupted when the user presses any key, and it seems that
the value of the key is not propagated to the output of mp4play. I always get zero as output value.
I can easily change this to it returning the dtmf char code, but I don't know if its the right thing to do...
Ideas?
TIA
/Rob
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
Posted: Wed Apr 22, 2009 12:31 pm Post subject: [Asterisk-video] Getting back the dtmf from app_mp4
Hi,
What are the parameters set to the app_mp4 application ?
app_mp4 is controlled from our VoiceXML browser without any problem
(with supported bargein).
Regards,
Borja form inet
Robert Bielik a écrit :
Quote:
I'm calling app_mp4 from a fastagi app. mp4play gets interrupted when the user presses any key, and it seems that
the value of the key is not propagated to the output of mp4play. I always get zero as output value.
I can easily change this to it returning the dtmf char code, but I don't know if its the right thing to do...
Ideas?
TIA
/Rob
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
Posted: Wed Apr 22, 2009 12:45 pm Post subject: [Asterisk-video] Getting back the dtmf from app_mp4
Hi,
Here the dump of the online documentation :
debian32*CLI> core show application mp4play
debian32*CLI>
-= Info about application 'mp4play' =-
[Synopsis]
MP4 file playblack
[Description]
mp4play(filename,[options]): Play mp4 file to user.
Available options:
'n(x)': number of digits (x) to wait for
'S(x)': set variable of name x (with DTMFs) rather than go to extension
's(x)': set digits, which should stop playback
Examples:
mp4play(/tmp/video.mp4) play
video file to user
mp4play(/tmp/test.mp4,'n(3)') play video file
to user and wait for 3 digits
mp4play(/tmp/test.mp4,'n(3)S(DTMF_INPUT)') play video file to user
and wait for 3 digits and
set them as
value of variable DTMF_INPUT
mp4play(/tmp/test.mp4,'n(3)s(#)') play video file, wait
for 3 digits or break on '#'
debian32*CLI>
All parameters are described.
Regards,
Borja from i6net
Robert Bielik a écrit :
Quote:
Borja SIXTO skrev:
> What are the parameters set to the app_mp4 application ?
>
Only the path to the mp4 video file.
> app_mp4 is controlled from our VoiceXML browser without any problem
> (with supported bargein).
>
Ok, so app_mp4 should propagate back the dtmf code that "barged in"... I just can't see right
now how to get to it...
/Rob
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
Posted: Wed Apr 22, 2009 1:13 pm Post subject: [Asterisk-video] Getting back the dtmf from app_mp4
Thnx! Found it too.. :) so I managed to set the parameters to n(1)S(DTMF_INPUT) but I don't know how to
retrieve the DTMF_INPUT entry from the AgiResult value from the execution of the app_mp4 app. At least I
haven't been able to find anything in the reply value...
Any pointers would be highly appreciated :)
TIA
/R
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
Posted: Wed Apr 22, 2009 1:36 pm Post subject: [Asterisk-video] Getting back the dtmf from app_mp4
Personally, I don't know how to do it with Agi.
Regards,
Borja from i6net
Robert Bielik a écrit :
Quote:
Thnx! Found it too.. :) so I managed to set the parameters to n(1)S(DTMF_INPUT) but I don't know how to
retrieve the DTMF_INPUT entry from the AgiResult value from the execution of the app_mp4 app. At least I
haven't been able to find anything in the reply value...
Any pointers would be highly appreciated :)
TIA
/R
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
Thnx! Found it too.. :) so I managed to set the parameters to n(1)S(DTMF_INPUT) but I don't know how to
retrieve the DTMF_INPUT entry from the AgiResult value from the execution of the app_mp4 app. At least I
haven't been able to find anything in the reply value...
Any pointers would be highly appreciated :)
TIA
/R
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum