ruby - Asterisk Outgoing call file unresponsive -
i've made basic ruby program makes call files , sends them on outgoing file asterisk.
outbound = [<phone numbers>] number in outbound call_file = file.new("#{number}.call", "w") call_file.puts("channel: sip/ext-sip-account/#{number}", "context: test", "extension: 100") call_file.close file.rename "#{number}.call", "/var/spool/asterisk/outgoing/#{number}.call" end
running file creates file , moves destination asterisk doesn't read file or delete it.
Comments
Post a Comment