; ============================================================ ; AstroCom SIP Bridge — IAX2 Configuration (chan_iax2) ; /etc/asterisk/iax.conf ; ; HOW ASTROCOM CALLS THIS BRIDGE ; ────────────────────────────── ; When AstroCom routes a call here it dials: ; IAX2/:@:/ ; ; That means: ; • The SECTION NAME (in brackets) IS the IAX2 username AstroCom ; authenticates with. It must equal routes.auth exactly. ; • 'secret' must equal routes.secret exactly. ; • 'context' is where the call lands in extensions.conf. ; It must also equal routes.auth (the dialplan context is ; named identically for clarity). ; • type=user — AstroCom calls us; we never initiate an IAX2 ; connection back to AstroCom. Outbound calls use a ; dynamically-generated IAX2 URI from the routing API ; (handled in extensions.conf) and need no peer config here. ; ; NAT NOTE ; ──────── ; Do NOT use 'register =>'. If this server has a dynamic IP, ; use tools/astrocom_dynamic_ip.sh (or the /api/v1/user/update ; endpoint) to keep routes.server current in AstroCom. ; ============================================================ [general] bindport=4569 bindaddr=0.0.0.0 iaxcompat=yes authdebug=no bandwidth=high jitterbuffer=yes forcejitterbuffer=yes dropcount=2 maxjitterbuffer=1000 jittertargetextra=40 ; ============================================================ ; Shared user template ; ============================================================ [bridge-iax-tmpl](!) type=user auth=md5 encryption=yes disallow=all allow=ulaw allow=alaw allow=g729 qualify=yes ; ============================================================ ; BRIDGE 1 ; routes.auth = bridge1-from-astrocom ← section name ; routes.secret = BRIDGE1_IAX_SECRET ; routes.server = ; routes.port = 4569 ; ============================================================ [bridge1-from-astrocom](bridge-iax-tmpl) secret=20fbb81ba96091af1fe45858a070c7 ; Must equal routes.secret in AstroCom context=bridge1-from-astrocom ; Must equal routes.auth in AstroCom ; ============================================================ ; BRIDGE 3 (copy this block for every additional bridge) ; ============================================================ ;[bridge3-from-astrocom](bridge-iax-tmpl) ;secret=BRIDGE3_IAX_SECRET ;context=bridge3-from-astrocom