[Asterisk-video] DTMF & h324m gw -> can´tnavigate through extensions
Nico Gundacker
nico.gundacker at dynetic.de
Tue May 27 05:48:45 CDT 2008
Hi all,
I was working for a long time on this problem, but I still have no solution.
And at the moment I really feel sad about this. I only can guess where the
problem is. When I used the WaitExten()-function without parameters (the
default time is used),then navigation worked most time, but with a too big
delay-time (first video is shown on the screen after 15 sec). If I used
WaitExten() with parameters (2) then the application worked sometimes and it
did not work without the WaitExten()-function (but most given examples do
not use this function - and these are working). So my guess is that the
application did only sometimes recognize the DTMF (depends on the location
in the dial-plan (priority), at the moment when the DTMF comes). So if
dial-plan-priority points to WaitExten(), then DTMF is recognized, if the
pointer is somewhere else in dial-plan, then the system hangs up the call.
At the first step I used WaitExten without parameters then there is a big
chance to be there in the dial-plan, when the DTMF is received. But when
wait-time is shorter, also the chance to be at the right place in the
dial-plan is shrinking.
Are there any settings I need to change or something I have overlooked? Or
could someone explain me how to generate a dial-plan, which is working
without waitexten? Here is the used dial-plan (The error-messages I received
are the same as I posted before):
BR Nico
[general]
include => hauptmenu
include => aufnahmemenu
include => abspielmenu
include => streamingmenu
[capi-in]
exten => 1424,1,h324m_gw(0 at mainmenu)
[mainmenu]
exten => 0,1,h324m_gw_answer()
exten => 0,2,mp4play(/tmp/menu/menu.mp4,'n(1)')
exten => 0,3,WaitExten(2)
exten => 0,4,Goto(2)
exten => 1,1,Goto(recordmenu,0,1)
exten => 2,1,Goto(playmenu,0,1)
exten => i,1,Goto(0,2)
exten => t,1,Goto(0,2)
[playmenu]
exten => 0,1,NoOp(PLAYMENU)
exten => 0,2,mp4play(/tmp/menu/menu2.mp4)
exten => 0,3,Goto(2)
[recordmenu]
exten => 0,1,NoOp(RECORDMENU)
exten => 0,2,mp4play(/tmp/menu/menu1.mp4,'n(1)')
exten => 0,3,WaitExten(1)
exten => 0,4,Goto(2)
exten => 1,1,NoOp(RECEIVED 1)
exten => 1,2,mp4play(/tmp/linux.3gp,'n(3)')
exten => 1,3,Goto(0,1)
exten => 2,1,NoOp(BACK TO MAINMENU)
exten => 2,2,Goto(mainmenu,0,2)
-----Ursprüngliche Nachricht-----
Von: asterisk-video-bounces at lists.digium.com
[mailto:asterisk-video-bounces at lists.digium.com] Im Auftrag von Nico
Gundacker
Gesendet: Mittwoch, 21. Mai 2008 11:04
An: 'Development discussion of video media support in Asterisk'
Betreff: Re: [Asterisk-video] DTMF & h324m gw -> can´tnavigate through
extensions
Hi Sergio,
Thanks for your quick answer! Here are the logs, I hope that´s what you
need? Asterisk Version is :
Asterisk 1.4.19.1 built by root @ smettbo on a i686 running Linux on
2008-05-08 13:28:23 UTC
Thanks again
BR Nico
*CLI> == ISDN1#02: Incoming call '' -> '1424'
-- Executing [1424 at capi-in:1] h324m_gw("CAPI/ISDN1#02/1424-2",
"menu at demo") in new stack
-- Executing [menu at demo:1] h324m_gw_answer("Local/menu at demo-e772,2", "")
in new stack
== ISDN1#02: Answering for 1424
-- Executing [menu at demo:2] Wait("Local/menu at demo-e772,2", "1") in new
stack
-- Executing [menu at demo:3] mp4play("Local/menu at demo-e772,2",
"/tmp/menu/menu.mp4") in new stack
mp4play /tmp/menu/menu.mp4
found hint track 2
track 1 vide
found hint track 4
track 3 vide
found hint track 6
track 5 vide
MP4ERROR: FindTrackId: Track index doesn't exist - track 3 type hint
MP4ERROR: MP4Array::[]: index 2 of 2: Numerical result out of range
-- Executing [menu at demo:4] Goto("Local/menu at demo-e772,2", "3") in new
stack
-- Goto (demo,menu,3)
-- Executing [menu at demo:3] mp4play("Local/menu at demo-e772,2",
"/tmp/menu/menu.mp4") in new stack
mp4play /tmp/menu/menu.mp4
found hint track 2
track 1 vide
found hint track 4
track 3 vide
found hint track 6
track 5 vide
MP4ERROR: FindTrackId: Track index doesn't exist - track 3 type hint
MP4ERROR: MP4Array::[]: index 2 of 2: Numerical result out of range
-- Executing [menu at demo:4] Goto("Local/menu at demo-e772,2", "3") in new
stack
-- Goto (demo,menu,3)
-- Executing [menu at demo:3] mp4play("Local/menu at demo-e772,2",
"/tmp/menu/menu.mp4") in new stack
mp4play /tmp/menu/menu.mp4
found hint track 2
track 1 vide
found hint track 4
track 3 vide
found hint track 6
track 5 vide
MP4ERROR: FindTrackId: Track index doesn't exist - track 3 type hint
MP4ERROR: MP4Array::[]: index 2 of 2: Numerical result out of range
-- Executing [menu at demo:4] Goto("Local/menu at demo-e772,2", "3") in new
stack
-- Goto (demo,menu,3)
-- Executing [menu at demo:3] mp4play("Local/menu at demo-e772,2",
"/tmp/menu/menu.mp4") in new stack
mp4play /tmp/menu/menu.mp4
found hint track 2
track 1 vide
found hint track 4
track 3 vide
found hint track 6
track 5 vide
MP4ERROR: FindTrackId: Track index doesn't exist - track 3 type hint
== Spawn extension (demo, menu, 3) exited non-zero on
'Local/menu at demo-e772,2'
== Spawn extension (capi-in, 1424, 1) exited non-zero on
'CAPI/ISDN1#02/1424-2'
== ISDN1#02: CAPI Hangingup for PLCI=0x101 in state 2
> ISDN1#02: CAPI INFO 0x3490: Normal call clearing
-----Ursprüngliche Nachricht-----
Von: asterisk-video-bounces at lists.digium.com
[mailto:asterisk-video-bounces at lists.digium.com] Im Auftrag von Sergio
Garcia Murillo
Gesendet: Mittwoch, 21. Mai 2008 10:42
An: asterisk-video at lists.digium.com
Betreff: Re: [Asterisk-video] DTMF & h324m gw -> can´tnavigate through
extensions
Version? Logs??
BR
Sergio
----- Original Message -----
From: Nico Gundacker [mailto:nico.gundacker at dynetic.de]
To: asterisk-video at lists.digium.com
Sent: Wed, 21 May 2008 10:31:06 +0200
Subject: [Asterisk-video] DTMF & h324m gw -> can´tnavigate through
extensions
Hi,
I like to setup a small IVVR-System and most of the functions work fine. But
there is one problem when I try to navigate through the given menu via DTMF.
I used an example from an old posting.
http://www.allasterisk.com/lists/asterisk-video@lists.digium.com/2007-09/msg
00125.html
When calling asterisk the first menu is shown on the mobile-phone, but when
dialing a number (1,2 or 3) there is no access to the other extensions and
the call is broken. Is someone there who had the same problem or could
please help me fixing this bug?
Greetings Nico
[capi-in]
exten => 1424,1,h324m_gw(menu at demo)
[demo]
exten => menu,1,h324m_gw_answer()
exten => menu,2,Wait(1)
exten => menu,3,mp4play(/tmp/menu/menu.mp4)
exten => menu,4,Goto(3)
exten => 1,1,Goto(marriage|video|1)
exten => 2,1,Goto(murder|video|1)
exten => 3,1,Goto(naked-soccer|video|1)
[marriage]
exten => video,1,Wait(1)
exten => video,2,mp4play(/tmp/menu/menu1.mp4)
exten => video,3,Goto(demo|menu|2)
exten => _X,1,Goto(demo|menu|2)
[murder]
exten => video,1,Wait(1)
exten => video,2,mp4play(/tmp/menu/menu2.mp4)
exten => video,3,Goto(demo|menu|2)
exten => _X,1,Goto(demo|menu|2)
[naked-soccer]
exten => video,1,Wait(1)
exten => video,2,mp4play(/tmp/menu/menu3.mp4)
exten => video,3,Goto(demo|menu|2)
exten => _X,1,Goto(demo|menu|2)
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
asterisk-video mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-video
More information about the asterisk-video
mailing list