sip.conf


;
; SIP Configuration for Asterisk
;
; Syntax for specifying a SIP device in extensions.conf is
; SIP/devicename where devicename is defined in a section below.
;
; You may also use
; SIP/username@domain to call any SIP user on the Internet
; (Don't forget to enable DNS SRV records if you want to use this)
;
; If you define a SIP proxy as a peer below, you may call
; SIP/proxyhostname/user or SIP/user@proxyhostname
; where the proxyhostname is defined in a section below
;
; Useful CLI commands to check peers/users:
; sip show peers Show all SIP peers (including friends)
; sip show users Show all SIP users (including friends)
; sip show registry Show status of hosts we register with
;
; sip debug Show all SIP messages
;

[general]
port=5060            ; Port to bind to
bindaddr=0.0.0.0  ; Address to bind SIP channel to
context=home       ; Default context for incoming calls
dtmfmode=rfc2833
allow=ulaw

[2000]
type=friend
username=2000
secret=123456
host=dynamic
dtmfmode=rfc2833
context=home
canreinvite=no
callerid=Beer
mailbox=2000@local ; If you did not use the default voicemail context [default], you will need to configure the
                                  ; mailbox with the context that you named in the voicemail.conf to receive the unsolicited notify
                                  ; message for the MWI. In my case I changed it from [default] to [local]

[2001]
type=friend
host=dynamic
dtmfmode=rfc2833
context=home
canreinvite=no
mailbox=2001@local

[2002]
type=friend
host=dynamic
dtmfmode=rfc2833
context=home
canreinvite=no
mailbox=2002@local

[2003]
type=friend
host=dynamic
dtmfmode=rfc2833
context=home
callerid=PingTel ; This line will change the call id seen on the called phone to "PingTel"
canreinvite=no
mailbox=2003@local

[outbound]   ; This context is used to make all my outbound calls.  Since this is directed at a session border
type=peer    ; controller, there is no need to register to it.  The session border controller registers instead.
canreinvite=yes ; To see how to connect to a provide that requires registration see Connecting * to FWD.
host=192.168.2.3



For more information on configuring other parameters in the sip.conf file, see the the WiKi page for sip.conf.

© Kurt W. Pasewaldt 2005
Unauthorized duplication prohibited
without the author expressed written permission.