Multiple SendDTMF extension in asterisk -


good day, need type extension after dial, wrote macros , use in dial command, example:

dial(local/123123@outbound-allroutes,,m(sendnum^5^123)  [macro-sendnum] exten => s,1,wait(${arg1}) exten => s,n,senddtmf(${arg2}) 

but need type several ext. numbers, how can that?

i guessed pass more params in macros @ first param count of ivr steps, , other params options steps in macros process params in loop, example:

dial(local/123123@outbound-allroutes,,m(sendnum^2^5^2010^6^123) 

and macros this:

macro-sendnum] exten => s,1,set(times=${arg1}) exten => s,n,set(i=0}) exten => s,n,while($[${i} < ${times}]) exten => s,n,set(i=$[ ${i} + 1 ]) exten => s,n,wait(${arg$[${i} + 1]}) exten => s,n,senddtmf(${arg$[${i} + 2]}) exten => s,n,endwhile 

but doesn't work. please me? thank in advance , sorry bad endgish.

pro-sip*cli> core show application senddtmf     -= info application 'senddtmf' =-   [synopsis] sends arbitrary dtmf digits   [description] send digits or terminate if encounters error.  [syntax] senddtmf(digits[,timeout_ms[,duration_ms[,channel]]])  [arguments] digits     list of digits 0-9,*#,a-d,a-d send w half second pause,     , f or f flash-hook if channel supports flash-hook. timeout_ms     amount of time wait in ms between tones. (defaults .25s) duration_ms     duration of each digit channel     channel digits played 

so can use 'w' pause.


Comments

Popular posts from this blog

php - render data via PDO::FETCH_FUNC vs loop -

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

The canvas has been tainted by cross-origin data in chrome only -