; ============================================================ ; AstroCom SIP Bridge — SIP Configuration (chan_sip) ; /etc/asterisk/sip.conf ; ; Downstream PBXes REGISTER to this server. ; Each bridge has one [bridgeN-pbx] peer with host=dynamic. ; ; The PBX must be configured to register with: ; Registrar : :5060 ; Username : bridgeN-pbx (the section name below) ; Password : the 'secret' value below ; ; 'context' is where calls FROM the PBX land (outbound to AstroCom). ; It must match [bridgeN-from-pbx] in extensions.conf. ; ============================================================ [general] bindport=5060 bindaddr=0.0.0.0 realm=ac-sip-bridge srvlookup=no ; NAT handling — set to 'force_rport,comedia' if PBX is behind NAT nat=no qualify=no disallow=all allow=ulaw allow=alaw allow=g729 ; ============================================================ ; Shared peer template ; ============================================================ [bridge-sip-tmpl](!) type=friend host=dynamic ; IP is learned from the REGISTER request dtmfmode=rfc2833 canreinvite=no disallow=all allow=ulaw allow=alaw allow=g729 qualify=yes ; No 'insecure=' — registration provides proper authentication. ; Removing it means unauthenticated INVITEs from unknown IPs are rejected. ; ============================================================ ; BRIDGE 1 ; PBX registers as username 'bridge1-pbx' with the secret below. ; Outbound to this PBX: Dial(SIP/bridge1-pbx/) ; → delivered to the registered contact URI. ; ============================================================ [bridge1-pbx](bridge-sip-tmpl) secret=1242ebce8b420ee4723887ffe0a01211330851776862e6021f680f1406c94eff ; If the PBX must register with a different username, set it here: ;username=bridge1 fromuser=bridge1-pbx ; identity used in outbound SIP From: headers context=bridge1-from-pbx ; ============================================================ ; BRIDGE 2 ; PBX registers as username 'bridge2-pbx' with the secret below. ; ============================================================ [bridge2-pbx](bridge-sip-tmpl) secret=BRIDGE2_SIP_SECRET fromuser=bridge2-pbx context=bridge2-from-pbx ; ============================================================ ; Additional bridges — copy this block and increment N ; ============================================================ ;[bridge3-pbx](bridge-sip-tmpl) ;secret=BRIDGE3_SIP_SECRET ;fromuser=bridge3-pbx ;context=bridge3-from-pbx