;*********************** ; Sample sip.conf Configuration File ; For use in the Asterisk Primer Lecture Given by Cory Forsyth on ; Mar 27 2007. ; ; This file is located at /etc/asterisk/sip.conf ;*********************** ; This is a comment. Any line beginning with a semicolon is ignored by Asterisk ; Note that comment styles for other languages, such as "#", "//", and "/* ... */" ; are NOT valid in Asterisk config files ; ; Bracketed names are called contexts. The name in the brackets is the name of the context. ; The context below is called "general". All the parameters following a context name apply to ; that context, until another context is defined ; ; The sip.conf usually includes a [general] context that defines global default parameters ; It's usually best to avoid touching this part of the sip.conf file ; [general] bindport = 5060 ; Port to bind to (SIP is 5060) bindaddr = 0.0.0.0 ; Address to bind to (all addresses on machine) disallow=all allow=ulaw allow=alaw ; The register line below was provided for me in the support section of my ; VoIP provider's (in this case, Teliax) website. ; It registers this asterisk server with my VoIP provider ; The text "eoligarry" below is my username, and the string after the colon is ; my password (yes, passwords are stored in plaintext by Asterisk. Not very secure at all.) ; ; In the support section of Teliax's website, they recommend putting it directly at the end ; of the "general" context ; ; You can see whether this is working in asterisk by typing "sip show registry" at the asterisk ; command line. (P.S.: You need to be sure to reload after making any changes to any of the conf files ; in order for asterisk to see the change) ; register => eoligarry:Cbdd21A1bDDsc3@voip-co2.teliax.com ; ; The two lines below were also provided by my VoIP provder. Cut & paste ; [authentication] auth=eoligarry:Cbdd21A1bDDsc3@voip-co2.teliax.com ; ; This defines the parameters specific to my account with teliax ; Again, this is cut-and-pasted from my account on Teliax's website ; There is really only one parameter you need to tinker with. It is: ; ; context: This is the default context that incoming calls to your DID are ; routed to. You will encounter problems (usually a busy signal or the like) ; if the context here doesn't exist in Asterisk's dialplan (in extensions.conf) ; ; You should also make note of the name of this context ("teliax"). You will use ; it when dialing out in the dialplan. To dial out, you would use this command in the diaplan: ; DIAL(SIP/teliax/14352322390) ; That specifies SIP as the protocol (your other option is IAX), teliax as the name of the ; provider to use (again, the name must match the name in brackets below), and the final ; 10-digit number is the number to call (the leading 1 is almost always required) ; [teliax] context=twitter-incoming type=friend username=eoligarry user=eoligarry host=voip-co2.teliax.com secret=Cbdd21A1bDDsc3 insecure=very canreinvite=no disallow=all allow=ulaw allow=alaw allow=gsm