한국어로 읽기

Guide

Receive Calls to a Korean 070 Number on FreeSWITCH Sofia

Register FreeSWITCH 1.11 Sofia over TLS to receive Korean 070 calls. Includes gateway XML, a test dialplan, and the final ACK and BYE from a live inbound call.

To receive calls to a Korea AI Telecom (한국에이아이통신) 070 number on FreeSWITCH, send Sofia REGISTER over TLS on port 5061 to the account SIP host. Set the number’s inbound route to Softphone and assign that SIP device. On November 25, 2026 KST, one call over the Korean phone network reached FreeSWITCH 1.11.4. We observed audio signals in both directions, the final ACK and the BYE response. SIP device setup · Live inbound evidence

Assign the SIP device to the 070 number

  1. Enable the SIP trunking add-on. In the console, open 전화번호 → SIP 단말 (Phone numbers → SIP devices), issue a test device, and keep the displayed account SIP domain, Auth ID, and password locally. Select your test 070 under ALLOWED NUMBERS. This list limits which numbers the device can use to place calls.
  2. Open the test 070 under 전화번호 → 내 번호 (Phone numbers → My numbers). Set 인바운드 라우팅 (Inbound routing) to 소프트폰 (Softphone), select the device, and save. Record the prior route so you can restore it after the test.
  3. In the XML below, replace YOUR_070_DIGITS with the domestic 070 digits without hyphens and YOUR_ACCOUNT_SIP_DOMAIN with the domain displayed when issuing the device. Set YOUR_SIP_AUTH_ID and YOUR_SIP_DEVICE_PASSWORD locally from the same credential. Registered FreeSWITCH inbound route (Korean)

Configure TLS registration in the Sofia gateway XML

Save the gateway file in a directory included by the test TLS profile’s <gateways> element. In the vanilla configuration, external reads conf/sip_profiles/external/*.xml. Keep the existing SIP firewall, ACL, and certificate verification. Set tls=true, configure trusted CAs, and enable certificate verification for outbound TLS. The live test profile used tls-verify-policy=out. Port 5061 here belongs to the Korea AI Telecom registrar. The PBX’s local listener has its own settings. Sofia profile TLS settings · Korea AI Telecom signaling and media addresses

<include>
  <gateway name="kat-070">
    <param name="username" value="YOUR_070_DIGITS"/>
    <param name="auth-username" value="YOUR_SIP_AUTH_ID"/>
    <param name="password" value="YOUR_SIP_DEVICE_PASSWORD"/>
    <param name="realm" value="YOUR_ACCOUNT_SIP_DOMAIN"/>
    <param name="from-domain" value="YOUR_ACCOUNT_SIP_DOMAIN"/>
    <param name="proxy" value="YOUR_ACCOUNT_SIP_DOMAIN:5061;transport=tls"/>
    <param name="register" value="true"/>
    <param name="register-transport" value="tls"/>
    <param name="expire-seconds" value="120"/>
    <param name="extension" value="YOUR_070_DIGITS"/>
    <param name="extension-in-contact" value="true"/>
    <param name="context" value="kat-070-inbound"/>
  </gateway>
</include>

username is the user part of the 070 address being registered. auth-username is the device Auth ID for Digest. extension is the destination for the inbound dialplan. Setting extension-in-contact=true also puts that number in the Contact user part. expire-seconds requests the interval. Read the actual expiry from the REGISTER response. The live test used TLS for SIP signaling and G.711 PCMU RTP for audio. Sofia gateway and Contact fields

Check inbound routing with a test dialplan

Add the test context to conf/dialplan/kat-070-inbound.xml. Sofia uses the gateway’s context when the incoming INVITE Request-URI carries the gw parameter of a known gateway. Otherwise it uses the profile’s default context. Set <param name="context" value="kat-070-inbound"/> in the dedicated test TLS profile’s <settings> as a fallback. On a shared profile, route only the test 070 from its existing context to this one. This dialplan echoes received audio and ends the call after 15 seconds. Replace the test treatment in that context with your application’s normal behavior before using the number in service. FreeSWITCH XML dialplan · Sofia context selection code

<include>
  <context name="kat-070-inbound">
    <extension name="kat-070-test">
      <condition field="destination_number" expression="^YOUR_070_DIGITS$">
        <action application="answer"/>
        <action application="sched_hangup" data="+15 ALLOTTED_TIMEOUT"/>
        <action application="echo"/>
      </condition>
    </extension>
  </context>
</include>

If you are adding the gateway to an existing test TLS profile, replace YOUR_TLS_PROFILE with that profile’s name and run these commands. A State of REGED confirms registration. FreeSWITCH CLI · Gateway state and SIP tracing

fs_cli -x 'reloadxml'
fs_cli -x 'sofia profile YOUR_TLS_PROFILE rescan'
fs_cli -x 'sofia status gateway kat-070'

Call the test 070 from a separate phone, listen for the echo, and hang up within 15 seconds. Check the same inbound dialog for INVITE 200 OK, the final ACK, and 200 OK for the caller’s BYE. Check the completed call separately in the console. Afterward, restore the prior inbound route and unregister only the test gateway with fs_cli -x 'sofia profile YOUR_TLS_PROFILE unregister kat-070'. If using SIP tracing, switch it off afterward and redact authentication headers, phone numbers, IP addresses, and SDP from shared records. SIP registration removal

Find the point of failure

What you seeWhat to check first
Registration repeatedly failsCheck the account SIP host and remote port 5061, the profile’s TLS trust, and the device’s Auth ID, password, and realm. If Korea AI Telecom returns 403, check the device’s allowed source IPs.
REGED with no inbound callCheck that the 070’s Softphone route selects the same device. If Sofia receives an INVITE, check the 070 in Contact, extension-in-contact, the gateway context, and the domestic 070 match in the dialplan.
The call answers with silence or an unconfirmed teardownCheck the SDP addresses, ports and codec, then listen for an actual signal in each direction. Match the final ACK and BYE response on the same SIP dialog in the trace. Check the console’s call status separately.

Isolated example verification. We checked the configuration on FreeSWITCH 1.11.4 with a synthetic registrar. An INVITE with the registered Contact’s gw parameter reached the gateway context. An INVITE without it reached the dedicated profile’s default context. Both checks observed the returned 997 Hz tone, the final ACK, 200 OK for the peer’s BYE, and 200 OK on deregistration of the same Contact.

What the live 070 call verified

At 00:22 KST on November 25, 2026, a company mobile gateway placed one call to the test 070 over the Korean phone network. On FreeSWITCH 1.11.4 we observed REGISTER 200 OK, a 120-second Contact expiry, final INVITE 200 OK and ACK, and 200 OK for the peer’s BYE. Both call records showed normal clearing, with 25 seconds outbound and 29 seconds inbound. FreeSWITCH recorded 5.10 seconds of non-silent receive signal. An independent recording at the originating gateway captured 1.40 seconds of the 700 Hz tone FreeSWITCH sent. Deregistration of the same Contact returned 200 OK.

This evidence covers one inbound call to a registered FreeSWITCH endpoint on the Softphone route. Phone-network inbound calls to a public SIP endpoint and SIP teardown for outbound calls placed by FreeSWITCH remain pending. Audio observations and PBX compatibility scope