Advertisement
tjma_ru

sip.conf

Dec 14th, 2013
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.10 KB | None | 0 0
  1. [general]
  2. nat=no
  3. externhost=myhost.ru        ;because I have dynamic ip, I use "dyn-dns"
  4. directmedia = nonat
  5. context=nahnaht
  6. allowguest=no  
  7. allowoverlap=no                 ; Disable overlap dialing support. (Default is yes)
  8. udpbindaddr=0.0.0.0:5060             ; IP address to bind UDP listen socket to (0.0.0.0 binds to all)
  9. tcpenable=yes                    ; Enable server for incoming TCP connections (default is no)
  10. tcpbindaddr=0.0.0.0:5060             ; IP address for TCP server to bind to (0.0.0.0 binds to all interfaces)
  11. transport=udp                   ; Set the default transports.  The order determines the primary default transport.
  12. srvlookup=yes                   ; Enable DNS SRV lookups on outbound calls
  13. alwaysauthreject = yes         ; When an incoming INVITE or REGISTER is to be rejected,
  14. externaddr = myhost.ru:5060
  15. externrefresh=180               ; change the refresh interval
  16.  
  17.  
  18. [basic-options](!)                ; a template
  19.         dtmfmode=rfc2833
  20.         context=from-office
  21.         type=friend
  22.  
  23. [natted-phone](!,basic-options)   ; another template inheriting basic-options
  24.         directmedia=no
  25.         host=dynamic
  26.  
  27. [public-phone](!,basic-options)   ; another template inheriting basic-options
  28.         directmedia=yes
  29.  
  30. [my-codecs](!)                    ; a template for my preferred codecs
  31.         disallow=all
  32.         allow=ilbc
  33.         allow=g729
  34.         allow=gsm
  35.         allow=g723
  36.         allow=ulaw
  37.  
  38. [ulaw-phone](!)                   ; and another one for ulaw-only
  39.         disallow=all
  40.         allow=ulaw
  41.  
  42. [sipnet]
  43. secret = password
  44. defaultuser = sip_id
  45. trunkname = sipnet
  46. host = sipnet.ru
  47. type = peer
  48. context = msk
  49. insecure = invite
  50. ;callbackextension = s
  51. fromuser = sip_id
  52. fromdomain = sipnet.ru
  53. disallow = all
  54. allow=ulaw
  55. ;allow = alaw&ulaw&g729
  56. ;nat = route
  57. directmedia = no
  58. dtmfmode = rfc2833
  59. qualify=yes
  60.  
  61.  
  62. [userpattern](!)
  63. type=friend
  64. host=dynamic
  65. nat=yes
  66. canreinvite=no
  67. ;context=office
  68. dtmfmode=inband
  69. qualify=yes
  70. insecure=port,invite
  71. disallow=all
  72. allow=ulaw
  73.  
  74. ;[test1](userpattern)
  75. ;secret=123456
  76. ;context=msk
  77. ;callerid= test1 <103>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement