; SIP Configuration example for Asterisk ; [general] context=default ; Default context for incoming calls allowoverlap=yes ; Disable overlap dialing support. (Default is yes) bindport=5060 ; UDP Port to bind to (SIP standard port is 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) srvlookup=no ; Enable DNS SRV lookups on outbound calls disallow=all ; First disallow all codecs allow=ulaw ; Allow codecs in order of preference ;allow=ilbc ; see doc/rtp-packetization for framing options ;relaxdtmf=yes ; Relax dtmf handling dtmfmode = rfc2833 ; Set default dtmfmode for sending DTMF. Default: rfc2833 ; Other options: ; info : SIP INFO messages ; inband : Inband audio (requires 64 kbit codec -alaw, ulaw) ; auto : Use rfc2833 if offered, inband otherwise ;----------------------------------------- OUTBOUND SIP REGISTRATIONS ------------------------ ; network register register => 1747XXXXXXX:PASSWORD@proxy01.sipphone.com/GizmoAct1 register => 1747XXXXXXX:PASSWORD@proxy01.sipphone.com/GizmoAct2 ;------------------------------ JITTER BUFFER CONFIGURATION -------------------------- jbenable=no ; Enables the use of a jitterbuffer on the receiving side of a ;----------------------------------------------------------------------------------- [authentication] ; Global credentials for outbound calls, i.e. when a proxy challenges your ; Asterisk server for authentication. These credentials override ; any credentials in peer/register definition if realm is matched. ; ; This way, Asterisk can authenticate for outbound calls to other ; realms. We match realm on the proxy challenge and pick an set of ; credentials from this list ; Syntax: ; auth = :@ ; auth = #@ ; Example: ;auth=mark:topsecret@digium.com ; ;------------------------------------------------------------------------------ ; Definitions of locally connected SIP devices ; ; type = user a device that authenticates to us by "from" field to place calls ; type = peer a device we place calls to or that calls us and we match by host ; type = friend two configurations (peer+user) in one [1111] type=friend context=from-internal host=dynamic secret=URPASSWORD callerid=User1 <1111> canreinvite=yes dtmfmode=auto disallow=all allow=ulaw ;allow=ilbc callingpres=allowed_passed_screen [2222] type=friend context=from-internal nat=yes host=dynamic secret=URPASSWORD callerid=User2 <2222> canreinvite=yes dtmfmode=auto disallow=all allow=ulaw ;allow=ilbc callingpres=allowed_passed_screen [GizmoUser1] type=friend context=from-google disallow=all allow=ulaw ;allow=ilbc dtmfmode=rfc2833 host=proxy01.sipphone.com fromdomain=proxy01.sipphone.com insecure=port,invite ;qualify=yes fromuser=1747XXXXXXX authuser=1747XXXXXXX username=1747XXXXXXX secret=PASSWORD canreinvite=yes [GizmoUser2] type=friend context=from-google disallow=all allow=ulaw ;allow=ilbc dtmfmode=rfc2833 host=proxy01.sipphone.com fromdomain=proxy01.sipphone.com insecure=port,invite ;qualify=yes fromuser=1747XXXXXXX authuser=1747XXXXXXX username=1747XXXXXXX secret=PASSWORD canreinvite=yes