Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
500
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.78 KB | None | 0 0
  1. GNU nano 2.2.4 File: /etc/asterisk/sip.conf
  2.  
  3. [general]
  4. context=unauthenticated ; default context for incoming calls
  5. allowguest=no ; disable unauthenticated calls
  6. srvlookup=yes ; enabled DNS SRV record lookup on outbound calls
  7. udpbindaddr=0.0.0.0 ; listen for UDP request on all interfaces
  8. tcpenable=no ; disable TCP support
  9.  
  10.  
  11. [office-phone](!) ; create a template for our devices
  12. type=friend ; the channel driver will match on user name first, IP second
  13. context=LocalSets ; this is where calls from the device will enter the dialplan
  14. ;nat=yes ; assume device is behind NAT[36]
  15. dtmfmode=auto ; accept touch-tones from the devices, negotiated automatically
  16. disallow=all ; reset which voice codecs this device will accept or offer
  17. allow=ulaw ; which audio codecs to accept from, and request to, the device
  18. allow=alaw ; in the order we prefer
  19.  
  20. [100](office-phone) ; aastra phone
  21. secret=********** ; a secure password for this device
  22. host=dynamic
  23. mailbox=100@default
  24.  
  25.  
  26. [0004F2177EC1](office-phone) ; polycom
  27. secret=********** ; a secure password for this device
  28. host=dynamic
  29. mailbox=101@default
  30.  
  31. -----------------------------------------------------------------------------
  32.  
  33. extensions.conf
  34.  
  35. exten => 400,1,VoiceMailMain()
  36.  
  37. -----------------------------------------------------------------------------
  38.  
  39. voicemail.conf
  40.  
  41. ; Voicemail Configuration
  42.  
  43. [general]
  44. format=wav49|wav
  45. ;serveremail=voicemail@somewhere.com
  46. attach=no
  47. skipms=3000
  48. maxsilence=10
  49. silencethreshold=128
  50. maxlogins=3
  51. emaildateformat=%A, %B %d, %Y at %r
  52. pagerdateformat=%A, %B %d, %Y at %r
  53. sendvoicemail=yes ; Allow the user to compose and send a voicemail while inside
  54.  
  55.  
  56. [zonemessages]
  57. eastern=America/New_York|'vm-received' Q 'digits/at' IMp
  58. ;central=America/Chicago|'vm-received' Q 'digits/at' IMp
  59. ;central24=America/Chicago|'vm-received' q 'digits/at' H N 'hours'
  60. ;military=Zulu|'vm-received' q 'digits/at' H N 'hours' 'phonetic/z_p'
  61. ;european=Europe/Copenhagen|'vm-received' a d b 'digits/at' HM
  62.  
  63. [default]
  64. 100 => ******,FName LName
  65. 101 => ******,FName2 LName2
  66.  
  67. ---------------------------------------------------------------------------------------------
  68.  
  69. Asterisk CLI Output when we call 400 and enter mailbox and password:
  70.  
  71. Verbosity was 0 and is now 5
  72. == Using SIP RTP CoS mark 5
  73. -- Executing [400@LocalSets:1] VoiceMailMain("SIP/100-00000002", "") in new stack
  74. -- <SIP/100-00000002> Playing 'vm-login.ulaw' (language 'en')
  75. -- <SIP/100-00000002> Playing 'vm-password.ulaw' (language 'en')
  76. == Spawn extension (LocalSets, 400, 1) exited non-zero on 'SIP/100-00000002'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement