SIP
Just as with IAX, the SIP configuration file
(sip.conf) contains configuration information for
SIP channels. The headings for the channel definitions are formed by a
word framed in square brackets ([])—again, with the exception of the [general] section, where we define global SIP
parameters. Don’t forget to use comments generously in your
sip.conf file. Precede the comment text with a
semicolon; everything to the right will be ignored.
General SIP Parameters
The following options are to be used within the [general] section of
sip.conf:
allowguestIf set to
no, this disallows guest SIP connections. The default is to allow guest connections. SIP normally requires authentication, but you can accept calls from users who do not support authentication (i.e., do not have asecretfield defined). Certain SIP appliances (such as the Cisco Call Manager v4.1) do not support authentication, so they will not be able to connect if you setallowguest=no.allowguest=no
bindaddrandbindportThese optional parameters allow you to control the IP interface and port on which you wish to accept SIP connections. If omitted, the port will be set to 5060, and all IP addresses in your Asterisk system will accept incoming SIP connections. If multiple bind addresses are configured, only those interfaces will listen for connections. The address 0.0.0.0 tells Asterisk to listen on all interfaces.
bindaddr=0.0.0.0 bindport=5060
calleventsSet this to
yeswhen you want SIP to generate Manager events. This will be important ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access