This pull request includes several features and bugfixes:
Add framework for "magic" channel variables. This supports things like CALLERID(all) vs. CALLERID(name) vs. CALLERID(num) that all have overlap in Asterisk. We now try to do the right thing when setting or reading each variation. More special variables can be easily added.
Enhanced Dial compatibility:
Allow setting the CallerID on outbound calls
Set DIALSTATUS based on Tropo response
Clean up parsing of dial string
Set the default AGI port if unspecified in the YAML
Update to RSpec 2
Allow detecting the Tropo dialed number for incoming calls (agi_dnid)
Fix fatal missing error on SIP failover failure
Update unit tests for new functionality; fix broken unit tests
$ rspec spec/*.rb
...................................*
Pending:
TropoAGItate should execute a series of commands sent by an AGI Server
# ALL OF THESE TESTS ARE PENDING, HAVE SOME STRANGENESS WITH EM AND RSPEC
# ./spec/tropo-evented_spec.rb:19
Finished in 64.37 seconds
36 examples, 0 failures, 1 pending
This pull request includes several features and bugfixes: