;================================ TRANSPORTS == ; Our primary transport definition for UDP communication behind NAT. [transport-udp-nat] type = transport protocol = udp bind = 0.0.0.0:XXXX ; NAT settings ;local_net = 10.0.0.0/8 ;external_media_address = 203.0.113.1 ;external_signaling_address = 203.0.113.1 ;================================ CONFIG FOR SIP ITSP == ; Registration for Digium Cloud Services Account [trunk] type = registration outbound_auth = trunk-auth server_uri = sip:X.X.X.X ;client_uri = sip:myaccountID@sip.digiumcloud.net retry_interval = 60 [trunk-auth] type = auth auth_type = userpass ;username = myaccountID ;password = ASTRONGPASSWORD ; Endpoint for Digium Cloud Services account [endpoint] type=endpoint context = Incoming allow = !all,g722,ulaw outbound_auth = auth aors = dcs-aor direct_media = no from_domain = X.X.X.X [auth] type = auth auth_type = userpass ;username = myaccountID ;password = ASTRONGPASSWORD realm = X.X.X.X [aor] type = aor contact = sip:09XXXXXXXX@X.X.X.X [identify] type=identify endpoint = endpoint ;match = 8.17.32.12 ;================================ ENDPOINT TEMPLATES == ; Our primary endpoint template for internal desk phones. [endpoint-internal](!) type = endpoint context = from-sip allow = !all,g722,ulaw direct_media = no trust_id_outbound = yes device_state_busy_at = 1 dtmf_mode = rfc4733 [auth-userpass](!) type = auth auth_type = userpass [aor-single-reg](!) type = aor max_contacts = 1 ;================================ ENDPOINT DEFINITIONS == ; Below are the definitions for all staff devices, listed by department. ; ; Super Awesome Company uses the MAC address of their devices for the auth ; username and the extension number for the name of the endpoint, auth and ; aor objects. If your phones must use the same user ID and auth name then ; you will need to customize the endpoints accordingly. ;================================ MANAGEMENT == ;================================ ;202713 ;GSM Gateway [202713](endpoint-internal) auth = 202713 aors = 202713 callerid = GSM-GW-CHT <202713> [202713](auth-userpass) password = asteriskgateway ;SW2fur7facrarac username = 202713 ;3605657CFB45 [202713](aor-single-reg) mailboxes = 202713@example