@extends('layouts.app') @section('content')

Create Inbound Route

Adds rows in realtime context trunks-in.
Back
@if ($errors->any())
Please fix the following:
@endif
@csrf
ZA helper: +27XXXXXXXXX → 0XXXXXXXXX
Match on caller ID — only route if incoming CID matches this pattern.
Caller ID & Features
For Prepend: text added before caller name. For Replace: overrides name entirely.
Look up caller name from phonebook before routing.
Record all calls arriving on this DID.
Reject calls with no/blocked caller ID.
Select which phonebooks to search for caller name. Leave all unchecked to search all enabled phonebooks.
@php $savedPbIds = old('cnam_phonebook_ids', []); $seedPb = $seed['cnam_phonebook_ids'] ?? 'all'; $isAll = ($seedPb === 'all' && empty($savedPbIds)); if (!is_array($savedPbIds) && $seedPb !== 'all') { $savedPbIds = array_map('intval', explode(',', $seedPb)); } @endphp
@foreach($phonebooks as $pb) @endforeach
Routing Destination
@php $routingMethod = old('routing_method', $seed['routing_method'] ?? 'specific'); @endphp
{{-- Specific destination fields --}}
{{-- Plain text fallback used for hangup/custom and as the default --}} {{-- Extension picker --}} {{-- Queue picker --}} {{-- Ring Group picker --}} {{-- IVR picker --}} {{-- Time Condition picker --}} {{-- Trunk picker --}}
{{-- Info box for Direct DID mode --}}
Preview: dialplan rows to (up)insert into context="trunks-in"
@foreach($previewRows as $row)
{{ $row['label'] }}
{{ $row['value'] }}
@endforeach
@endsection