Sip.conf
From Wikislax
Contents
sip.conf content
The sip.conf file contains a [general] context consisting of global SIP parameters and a separate context for each SIP provider or user. For a complete explanation of the parameters in the [general] context, refer to file sip.conf itself, which includes very detailed comments. A SIP provider might be configured as :
[general] . . . register => 0925325502:mysecret@freephonie.net [free] type=peer context=freephonie host=freephonie.net fromuser=0925325502 username=0925325502 secret=mysecret insecure=invite,port dtmfmode=inband disallow=all allow=alaw
- register is to register as a SIP user agent to a SIP proxy (provider).
- context is the context to use for incoming calls in extensions.conf.
- host is the fully qualified domain name to connect to.
- fromuser is the username with which to authenticate.
- username is the username with which to attempt contact before it has registered with you.
- secret is the password for the username.
- insecure= invite,port is to not require authentication on the incoming INVITE for the peer.
- dtmfmode=inband is an option to recognize the keypresses from your SIP provider.
- disallow and allow afford defining which codecs can be used on this link.
A SIP phone might be configured as :
[xlite] type=friend context=internal host=dynamic secret=0987654321
- context is the context to use for incoming calls in extensions.conf.
- host=dynamic as device authenticates by name/password rather than by IP.
- secret is the password for the username.
Download
Please find here a real sip.conf file example. No users are configured in this file, though as they will be using LDAP, see next page.
Asterisk | Main Page | Res_ldap.conf |