-
Notifications
You must be signed in to change notification settings - Fork 0
Demo Part 2 Step 2 Trunk to Extension and Internal Outbound
Andrey Egorov edited this page May 18, 2026
·
2 revisions
Import: part-2-step-2-trunk-to-extension-and-internal-outbound.json
Combine both SIP routing directions in one workflow:
- inbound trunk callers can reach an internal extension
- registered extensions can start new outbound calls
| Added area | Why it matters |
|---|---|
incoming_answer, play_extension, input_extension
|
adds the inbound front door for trunk callers |
dial_extension, wait_extension, ringing_extension, bridge_extension
|
adds extension routing from the trunk side |
play_ext_unv, break_extension
|
keeps the inbound extension path closed and retryable |
- the inbound and outbound directions share the same
internalextension registration universe, so the workflow can both receive extension calls and dial those same registered endpoints. -
play_extensionis blocking media with DTMF interruption, so the caller can start typing the extension before the prompt finishes. -
input_extensionrelies on DTMF fallback instead of explicit rules, which lets entered extension digits flow directly intodial_extension. -
play_ext_unvloops back toplay_extension, so an unavailable extension does not escape the scenario; the caller stays inside the same extension-routing path. - the outbound side from step 1 remains unchanged, so the workflow still supports extension-originated external and internal calls.
- Import and activate the workflow.
- Register at least one internal extension.
- Test an inbound trunk call and enter a registered extension.
- Test an outbound call from a registered extension.
| Flow | Result |
|---|---|
| inbound trunk to registered extension | caller hears ringback, then is bridged |
| inbound trunk to unavailable extension | caller hears unavailable prompt and returns to the extension prompt |
| extension-originated outbound | call is routed by outgoing_type and bridged on answer |
Part 3 merges this SIP routing line with the queue and AI line from Part 1.