Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: moved the chan_sip template example from the comments, so I can purge them.

...

Code Block
langjavascript
[test-three]
permit=192.168.0.2
host=alpha.example.com
deny=192.168.0.1
permit=192.168.1.2
host=bravo.example.com
deny=192.168.1.1
permit=192.168.3.1
host=charlie.example.com

chan_sip Template Example

Here is a more extensive and realistic example from the chan_sip channel driver's sample configuration file.

Code Block
[basic-options](!)                ; a template
        dtmfmode=rfc2833
        context=from-office
        type=friend
 
[natted-phone](!,basic-options)   ; another template inheriting basic-options
        nat=yes
        directmedia=no
        host=dynamic
 
[public-phone](!,basic-options)   ; another template inheriting basic-options
        nat=no
        directmedia=yes
 
[my-codecs](!)                    ; a template for my preferred codecs
        disallow=all
        allow=ilbc
        allow=g729
        allow=gsm
        allow=g723
        allow=ulaw
 
[ulaw-phone](!)                   ; and another one for ulaw-only
        disallow=all
        allow=ulaw
 
; and finally instantiate a few phones
;
; [2133](natted-phone,my-codecs)
;        secret = peekaboo
; [2134](natted-phone,ulaw-phone)
;        secret = not_very_secret
; [2136](public-phone,ulaw-phone)
;        secret = not_very_secret_either