Advertisement
xenon52

Conf files

Apr 4th, 2022
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1. -----------extensions.conf
  2. [default]
  3. exten => _[0-9].,1,NoOp(#### [default] ####)
  4. exten => _[0-9].,n,NoOp(we shouldn't ever be here, drop the call)
  5. exten => _[0-9].,n,Hangup()
  6.  
  7. exten => i,1,Hangup()
  8. exten => h,1,Hangup()
  9. exten => t,1,Hangup()
  10.  
  11. [from-internal]
  12. ; internal calls between extensions
  13. exten => 201,1,Dial(SIP/201)
  14. exten => 201,n,Hangup()
  15.  
  16. exten => 202,1,Dial(SIP/202)
  17. exten => 202,n,Hangup()
  18.  
  19. ; send all other numbers to outbound trunk
  20. exten => _[0-9].,1,NoOp(#### [from-internal] ####)
  21. exten => _[0-9].,n,Set(CALLERID(num)=+12225550162)
  22. exten => _[0-9].,n,Dial(SIP/+${EXTEN:1}@trunk)
  23. exten => _[0-9].,n,Hangup()
  24.  
  25. [from-trunk]
  26. ; send all incoming calls from trunk DDI numbers to extension 202
  27. exten => _[0-9].,1,NoOp(#### [from-trunk] ####)
  28. exten => _[0-9].,n,Dial(SIP/202)
  29. exten => _[0-9].,n,Hangup()
  30.  
  31.  
  32.  
  33.  
  34.  
  35. ---------------sip.conf
  36. [general]
  37. context=default
  38. allowguest=no
  39. ;allowoverlap=no
  40. bindport=5060
  41. ;bindaddr=0.0.0.0
  42. dtmfmode=rfc2833
  43. ;srvlookup=no
  44. disallow=all
  45. allow=alaw
  46. allow=ulaw
  47. allow=gsm
  48. allow=g723
  49. allow=g726
  50. allow=speex
  51. ;alwaysauthreject=yes
  52. ;canreinvite=no
  53. ;nat=yes
  54. ;session-timers=refuse
  55. ;localnet=192.168.0.0/255.255.255.0
  56.  
  57. ; replace INBOUND_SIP_USERNAME and INBOUND_SIP_PASSWORD
  58. ; with your Inbound SIP Registration credentials
  59. register => *****:"*****?c"@trunk
  60.  
  61. [201]
  62. type=friend
  63. host=dynamic
  64. username=201
  65. secret=########
  66. context=from-internal
  67. qualify=yes
  68. nat=force_rport,comedia
  69.  
  70. [202]
  71. type=friend
  72. host=dynamic
  73. username=202
  74. secret=########
  75. context=from-internal
  76. qualify=yes
  77. nat=force_rport,comedia
  78. [trunk]
  79. type=peer
  80. ;host=eu.st.ssl7.net ; Europe POP
  81. host=amn.st.ssl7.net ; North America POP
  82. context=from-trunk
  83. qualify=yes
  84. defaultuser=<*****>
  85. remotesecret=**********
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement