From: Ryan C. <ry...@cu...> - 2012-01-03 20:43:29
|
I'd like to edit this code to redial on a CHANUNAVAIL. How can I detect that in the agi script? Thanks! def connect_call(): if per_min <= max_rate: agi.execute('EXEC Dial', 'DAHDI/g1/1%s' % agi.env['agi_extension']) else: agi.stream_file("rateexceeds") agi.execute('EXEC Zapateller',) agi.set_variable('CDR(tag)', 'EXCEEDS RATE') CONFIDENTIALITY / PRIVILEGE NOTICE: This transmission and any attachments are intended solely for the addressee. This transmission is covered by the Electronic Communications Privacy Act, 18 U.S.C §§ 2510-2521. The information contained in this transmission is confidential in nature and protected from further use or disclosure under U.S. Pub. L. 106-102, 113 U.S. Stat. 1338 (1999), and may be subject to attorney-client or other legal privilege. Your use or disclosure of this information for any purpose other than that intended by its transmittal is strictly prohibited, and may subject you to fines and/or penalties under federal and state law. If you are not the intended recipient of this transmission, please DESTROY ALL COPIES RECEIVED and confirm destruction to the sender via return transmittal. |