RE: DIALOGIC/GLOBALCALL : using dx_gedigit() &dx_play() instead of dx_setevtmsk()

"Julien Chavanton" <[email protected]>
Newsgroups gmane.comp.gnu.bayonne.devel
Message-ID <[email protected]>
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: bayonne-devel-bounces+j.chavanton=oneworldinteractive.com@gnu.org
[mailto:[email protected]
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
[email protected]
http://lists.gnu.org/mailman/listinfo/bayonne-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.