Displaying 2 results from an estimated 2 matches for "moh_available".
Did you mean:
foo_available
2010 Jul 26
0
URGENT - who picked up the call??
...local_channels =
get_locals()
dial_params =
local_channels.join('&')
dial_params <<
"||m(moh-0900-#{@moh_id})" if moh_available?()
1.times do
r =
$agi.exec('DIAL', dial_params)
r =
$agi.get_variable('DIALSTATUS')...
2010 Jul 28
1
Passing Variables From Dial Macro To Parent Ruby
...ing the ${CHANNEL} variable
in the ruby script that started the macro.
Is that variable accessible from the ruby script too or just from the macro?
Here's a snippet from my ruby script:
dial_params << "||M(testing)m(moh-0900-#{@moh_id})"
if moh_available?()
1.times do
r = $agi.exec('DIAL', dial_params)
r = $agi.get_variable('DIALSTATUS')
retry if r.message.include?('BUSY')
en...