Guest User

Untitled

a guest
Jun 20th, 2018
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. redii-mbpro:dog tyler$ ruby -v
  2. ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-darwin10.4.0]
  3.  
  4. #ahn v1.0.0 - startub.rb
  5. config.asterisk.enable_ami :host => "192.168.1.65", :username => "ahn_ami", :password => "testsecret", :events => true
  6.  
  7. #dialplan.rb
  8. test_adhearsion {
  9. play "hello-world"
  10. #simon_game
  11. }
  12.  
  13. redii-mbpro:dog tyler$ ahn start .
  14. INFO ahn: Adhearsion v1.0.0 initialized!
  15. DEBUG ami: Sending AMI action:
  16. >>> Action: login
  17. >>> ActionID: kLADrEhB-dZm6-cc0G-gg8b-CqqAI1YigEqV
  18. >>> Username: ahn_ami
  19. >>> Secret: testsecret
  20. >>> Events: Off
  21. >>>
  22. INFO ami: Successful AMI actions-only connection into ahn_ami@192.168.1.65
  23. DEBUG ami: Sending AMI action:
  24. >>> Action: coresettings
  25. >>> ActionID: 6jX78YhX-IQxw-CloS-cMLF-Fb6i9E6JtUdc
  26. >>>
  27. INFO ami: Successful AMI events-only connection into ahn_ami@192.168.1.65
  28. [Sat Nov 6 14:29:03 2010] Adhearsion::VoIP::Asterisk::AGI::Server::RubyServer 0.0.0.0:4573 start
  29.  
  30. #asterisk info (192.168.1.65)
  31. mbp-linux*CLI> core show version
  32. Asterisk 1.6.2.7-1ubuntu1 built by buildd @ vernadsky on a i686 running Linux on 2010-06-23 21:08:57 UTC
  33.  
  34. #extensions.conf
  35. [test_adhearsion]
  36. exten => s,1,AGI(agi://192.168.1.64)
  37.  
  38. [default]
  39. exten => 999,1,AGI(agi://192.168.1.64)
  40. exten => 999,n,Hangup
  41. ;
  42. ; By default we include the demo. In a production system, you
  43. ; probably don't want to have the demo there.
  44. ;
  45. include => demo
  46.  
  47. exten => 1001,1,Answer()
  48. exten => 1001,2,Playback(hello-world)
  49. exten => 1001,3,Hangup()
  50.  
  51. exten => 2000,1,Dial(SIP/2000,20)
  52. exten => 2000,2,VoiceMail(2000,u)
  53.  
  54. #manager.conf
  55. [ahn_ami]
  56. secret = testsecret
  57. read = system,call,log,verbose,agent,user,config,dtmf,reporting,cdr,dialplan
  58. write = system,call,agent,user,config,command,reporting,originate
  59.  
  60.  
  61. [Nov 6 14:25:14] NOTICE[2775]: chan_sip.c:20063 handle_request_invite: Call from '2000' to extension '999' rejected because extension not found.
Add Comment
Please, Sign In to add comment