[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Bayonne-devel] DIALOGIC/GLOBALCALL : using dx_gedigit() &dx_play()
From: |
Julien Chavanton |
Subject: |
RE: [Bayonne-devel] DIALOGIC/GLOBALCALL : using dx_gedigit() &dx_play() instead of dx_setevtmsk() |
Date: |
Mon, 20 Jun 2005 15:11:10 -0400 |
I have started to modify digit capture to use the recommended
dx_getdigit() and dx_play() combination.
I will start to test this on a server shortly and I will be able to
confirm that dx_setevtmsk() was the source of my problem.
-----------------------------------------------------------------------
getdigits.async maxdtmf=5 maxtime=100 digmask=#
getdigits.sync maxdtmf=5 maxtime=100 digmask=#
-----------------------------------------------------------------------
-async mode will return immediately and will trigger the correct
bayonne handler on completion of the capture (^dtmf,^0,^1,^2,etc.)
according to the first digits received and %session.digits will have all
the digits captured.
however the script can not use play command until the voice resource as
returned from getdigits operation.
-sync mode will wait for the timeout = (maxtime x 100ms) before
returning and the bayonne handler will not be triggered
%session.digits will have all the digits captured.
%session.status will contain the cause of the digit capture completion:
DX_MAXDTMF, DX_MAXTIME or DX_DIGMASK
MAXDTMF = The correct amount of dtmf as been received
MAXTIME = The time specified to wait for dtmf as expired
DIGMASK = The digmask dtmf as been received
-----------------------------------------------------------------------
play dtmfstop
-----------------------------------------------------------------------
Play will be modified to be dtmf interruptible if the dtmfstop argument
is found and will always stop after one digit
the digit will be in %session.digits and the correct bayonne handler
(^dtmf,^0,^1,^2,etc.) will be triggered.
%session.status will contain the termination cause of the last command
MAXDTMF = a dtmf capture as interrupted the play command.
EOD = the play command as completed playing the data until end of data
as been reached.
Julien
-----Original Message-----
From: address@hidden
[mailto:address@hidden
g] On Behalf Of Julien Chavanton
Sent: June 17, 2005 2:02 PM
To: mailing_list_bayonne-devel
Subject: [Bayonne-devel] DIALOGIC/GLOBALCALL : using dx_gedigit()
&dx_play() instead of dx_setevtmsk()
I have found that dx_getdig() makes exclusive use of the voice resource
So we will have to combine the usage of dx_play() and dx_getdig()
I order to be able to capture digits while playing prompt.
dx_setevtmsk() was much more convenient as it was able to detect digit
without exclusive use of the voice resource this may be why dx_getdig()
is recommended and apparently is more reliable.
Julien
_______________________________________________
Bayonne-devel mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/bayonne-devel
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- RE: [Bayonne-devel] DIALOGIC/GLOBALCALL : using dx_gedigit() &dx_play() instead of dx_setevtmsk(),
Julien Chavanton <=