Sip.conf for sip provider

From open-voip.org

Jump to: navigation, search
This is the sip.conf file for the examples discussed in Inbound & Outbound with your SIP provider page
 [general]
 context=from-sip                        ; Default context for incoming calls
 ;
 bindport=5060                   ; bindport is the local UDP port that Asterisk will listen on
 bindaddr=0.0.0.0                ; IP address to bind to (0.0.0.0 binds to all)
 ;
 disallow=all                    ; First disallow all codecs
 allow=gsm
 allow=ulaw                      ; Allow codecs in order of preference
 ;
 register => 12121111111:1234:11111111@sipauth.deltathree.com/1000
 ;
 ; configure the users:
 ;
 [1000]
 context=from-sip                ; the context of this setup
 type=friend                     ; Can make inbound and outbound calls
 secret=1234
 callerid="Jane Smith"           ; Set your Caller-id
 host=dynamic                    ; This device needs to register
 nat=yes                         ; user is behind a NAT router
 qualify=yes                     ; keep the router open by sending periodic packets
 ;
 [2000]
 context=from-sip                ; the context of this setup
 type=friend                     ; Can make inbound and outbound calls
 secret=1234
 callerid="Jane Smith"           ; Set your Caller-id
 host=dynamic                    ; This device needs to register
 nat=yes                         ; user is behind a NAT router
 qualify=yes                     ; keep the router open by sending periodic packets
 ;
 [deltathree]
 context=from-sip                ; the context of this setup
 type=peer                       ; this peer is for outbound only
 host=sipauth.deltathree.com     ; IP/FQDN of your provider
 defaultuser=11111111
 secret=1234
 callerid="My PBX"           ; Set your Caller-id

Links:

Personal tools