Skip to content

Instantly share code, notes, and snippets.

@elcontrastador
Created November 6, 2010 22:12
Show Gist options
  • Save elcontrastador/665746 to your computer and use it in GitHub Desktop.
Save elcontrastador/665746 to your computer and use it in GitHub Desktop.
[test_adhearsion]
exten => 999,1,AGI(agi://192.168.1.64)
exten => 999,n,Hangup
;exten => s,1,AGI(agi://192.168.1.64)
[default]
include => test_adhearsion
;
; By default we include the demo. In a production system, you
; probably don't want to have the demo there.
;
include => demo
exten => 1001,1,Answer()
exten => 1001,2,Playback(hello-world)
exten => 1001,3,Hangup()
exten => 2000,1,Dial(SIP/2000,20)
exten => 2000,2,VoiceMail(2000,u)
#ahn console debug
redii-mbpro:dog tyler$ ahn start .
INFO ahn: Adhearsion v1.0.0 initialized!
DEBUG ami: Sending AMI action:
>>> Action: login
>>> ActionID: Ebq1Qb82-Fvmj-on0Z-ZINN-sxlKrxFkqjp8
>>> Username: ahn_ami
>>> Secret: testsecret
>>> Events: Off
>>>
INFO ami: Successful AMI actions-only connection into [email protected]
DEBUG ami: Sending AMI action:
>>> Action: coresettings
>>> ActionID: BrZjhFgZ-4TXF-7qPQ-R1wA-QqYbmfcbtzrs
>>>
INFO ami: Successful AMI events-only connection into [email protected]
[Sat Nov 6 15:12:19 2010] Adhearsion::VoIP::Asterisk::AGI::Server::RubyServer 0.0.0.0:4573 start
[Sat Nov 6 15:12:23 2010] Adhearsion::VoIP::Asterisk::AGI::Server::RubyServer 0.0.0.0:4573 client:39735 192.168.1.65<192.168.1.65> connect
DEBUG agi: Handling call with variables {:dnid=>999, :type=>"SIP", :version=>"1.6.2.7-1ubuntu1", :query=>{}, :callerid=>2000, :callingtns=>0, :threadid=>-1449354384, :context=>"default", :accountcode=>"", :extension=>999, :type_of_calling_number=>:unknown, :calleridname=>"TylersBriaSoftPhone", :language=>"en", :rdnis=>nil, :channel=>"SIP/2000-00000005", :network=>true, :enhanced=>0.0, :callingani2=>0, :uniqueid=>"1289081542.7", :request=>#<URI::Generic:0x1015c2ec8 URL:agi://192.168.1.64>, :priority=>1, :callingpres=>0}
INFO agi: No dialplan entry point for call context 'default' -- Ignoring call!
[Sat Nov 6 15:12:23 2010] Adhearsion::VoIP::Asterisk::AGI::Server::RubyServer 0.0.0.0:4573 client:39735 disconnect
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment