Basic functionality should be working for incoming calls: * Fux Intercom to 1337 * Fonial to the Hamburg number * EPVPN Still to do: clean up internal extensions and more extensive testing
This commit is contained in:
parent
2edb3443d6
commit
ef4b45925c
4 changed files with 71 additions and 45 deletions
|
@ -7,11 +7,18 @@ route=90
|
|||
|
||||
[contexts]
|
||||
; INBOUND CALLS:
|
||||
^[0-9]\{4\}$=inbound ; Calls from 4 digit numbers: EPVPN
|
||||
^+\?[0-9]\{5,\}$=inbound ; Calls from longer numbers, optionally starting with +
|
||||
^*\{1,2\}[0-9]\{1,3\}$=inbound ; Internal fritzbox calls
|
||||
${called}^1337$=inbound_fux
|
||||
${called}^1008$=inbound_epvpn
|
||||
${called}^04023830150$=inbound_fonial
|
||||
${called}^fo370381tr317349_00$=inbound_fonial
|
||||
;${called}.*=inbound
|
||||
|
||||
;^[0-9]\{4\}$=inbound ; Calls from 4 digit numbers: EPVPN
|
||||
;^+\?[0-9]\{5,\}$=inbound ; Calls from longer numbers, optionally starting with +
|
||||
;^*\{1,2\}[0-9]\{1,3\}$=inbound ; Internal fritzbox calls
|
||||
|
||||
; OUTBOUND CALLS:
|
||||
^[0-9]\{3\}=outbound
|
||||
^[a-z0-9]\{4,\}=outbound ; calls from internal users
|
||||
|
||||
^.*$=fallback ; Whatever calls managed to not be handled yet
|
||||
|
@ -37,15 +44,33 @@ route=90
|
|||
|
||||
|
||||
[outbound] ; Calls from internal users
|
||||
^.*$=echo [outbound] "\0" ${caller}->${called} ; log for debug
|
||||
^[0-9]\{3\}$=jump internal
|
||||
^[0-9]\{1,2\}$=jump z9 ; To internal -> z9
|
||||
^.*$=echo [outbound] "\0" ${caller}->${called} ; log for debug
|
||||
^.*$=line/\0;line=fritzbox ; Route everything (.*) to the specified accfile line
|
||||
^.*$=line/\0;line=epvpn_ccchh ; Route everything (.*) to the specified accfile line
|
||||
|
||||
[inbound_epvpn]
|
||||
^.*$=echo [inbound_epvpn] ${caller}->${called}
|
||||
^.*$=return;callername=EPVPN ${caller};called=0 ; TODO which extension do we want to route to?
|
||||
|
||||
[inbound_fux]
|
||||
^.*$=echo [inbound_fux] ${caller}->${called}
|
||||
^.*$=return;callername=Door ${caller};called=0 ; TODO which extension do we want to route to?
|
||||
|
||||
[inbound_fonial]
|
||||
^.*$=echo [inbound_fonial] ${caller}->${called}
|
||||
^.*$=return;callername=Fonial ${caller};called=0 ; TODO which extension do we want to route to?
|
||||
|
||||
[inbound] ; Calls from EPVPN or outside world
|
||||
^.*$=echo [inbound] "\0" ${caller}->${called} user:${user} ; log
|
||||
^.*$=echo [inbound] "\0" ${caller}->${called} user:${user} callername:${callername} callsource:${callsource} ; log
|
||||
^.*$=return;callername=EXTERN ${caller};called=0 ; set call recipient to 0 (shared alias between
|
||||
; all clients in regfile.conf
|
||||
|
||||
[internal]
|
||||
^.*$=echo [internal] "\0" ${caller}->${called}
|
||||
^.*$=return;called=\0
|
||||
|
||||
[z9] ; Internal calls
|
||||
^.*$=echo [z9] "\0" ${caller}->${called} ; log
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue