; Single shared UDP transport for internal extensions (softphones, etc.) — ; ExtensionService creates ps_endpoints rows referencing "transport-udp", ; this must match. [transport-udp] type=transport protocol=udp bind=0.0.0.0 ; Critical for running inside a container behind a published port: without ; this, Asterisk advertises its internal Docker IP in SIP/SDP, which ; any remote softphone (like your own registered extension) cannot reach. external_media_address=${PUBLIC_IP} external_signaling_address=${PUBLIC_IP} ; SignalWire's SIP Endpoint delivers calls over TLS specifically (confirmed ; via their call logs showing ";transport=tls" in the request URI, and this ; didn't change even with the endpoint's Encryption setting switched to ; "Optional") — a separate transport is needed since it's a different ; protocol/port (5061/tcp) from the plain UDP one internal extensions use. [transport-tls] type=transport protocol=tls bind=0.0.0.0:5061 cert_file=/var/lib/asterisk/keys/asterisk.pem priv_key_file=/var/lib/asterisk/keys/asterisk.pem ; SignalWire operates multiple edge nodes (us-east, us-west, etc.) and ; different nodes appear to present certificates that don't validate ; cleanly and consistently against the standard CA bundle — real SIP ; authentication is already handled via signalwire-auth regardless of ; transport-level cert validation, so we don't lose meaningful security by ; not enforcing this against a provider we already trust via credentials. verify_server=no method=tlsv1_2 external_media_address=${PUBLIC_IP} external_signaling_address=${PUBLIC_IP} [signalwire-auth] type=auth auth_type=userpass username=${SIGNALWIRE_SIP_USERNAME} password=${SIGNALWIRE_SIP_PASSWORD} ; SignalWire's "SIP Endpoint" credentials (shown as a full user@domain SIP ; URI in the dashboard) are registration-based — Asterisk must REGISTER ; using these credentials first; SignalWire then only accepts calls ; authenticated against that active registration. Without this section, ; outbound calls get "Authentication credentials not accepted" even with ; the correct username/password, because no registration was ever ; established for SignalWire to validate the call against. [signalwire-registration] type=registration transport=transport-tls outbound_auth=signalwire-auth server_uri=sips:${SIGNALWIRE_SIP_DOMAIN} client_uri=sips:${SIGNALWIRE_SIP_USERNAME}@${SIGNALWIRE_SIP_DOMAIN} contact_user=${SIGNALWIRE_SIP_USERNAME} retry_interval=60 expiration=3600 [signalwire-aor] type=aor contact=sips:${SIGNALWIRE_SIP_DOMAIN}:5061 [signalwire-identify] type=identify endpoint=signalwire-endpoint match=${SIGNALWIRE_SIP_DOMAIN} [signalwire-endpoint] type=endpoint transport=transport-tls context=from-signalwire disallow=all allow=ulaw,alaw,g722 outbound_auth=signalwire-auth aors=signalwire-aor from_domain=${SIGNALWIRE_SIP_DOMAIN} from_user=${SIGNALWIRE_SIP_USERNAME}