Skip to content
ckgth edited this page May 4, 2013 · 2 revisions

Gemeinschaft 5.1

Gateway Konfiguration

username: 004936778XXX
password: xxxxx
register: true
auth_source: sip_gateway
auth_pattern: ^gatewayX$
number_source: sip_req_user

Gateway Parameter

realm: sip.hlkomm.net
expire-seconds: 600
caller-id-in-from: true

Eingehende Route

Table: inbound
Name: hl-in
Endpoint: phone number

####Liste Routen-Elemente-INBOUND

1.
Var in: destination_number
Var out: destination_number
Pattern: ^00([1-9]%d+)$
Replacement: +%1
Action: match
Mandatory: false
2.
Var in: caller_id_number
Var out: caller_id_number
Pattern: ^00([1-9]%d+)$
Replacement: +%1
Action: set
Mandatory: false
3.
Var in: caller_id_number
Var out: caller_id_number
Pattern: ^0([1-9]%d+)$
Replacement: +49%1
Action: set
Mandatory: false

Outbound Route

Table: outbound
Name: hl-out
Endpoint: hlkomm   [GATEWAY-NAME]

####Liste Routen-Elemente-OUTBOUND

1.
Var in: val:auth_account.groups 
Var out: ^national_calls 
Pattern: 
Replacement:
Action: match
Mandatory: true
2.
Var in: destination_number
Var out: destination_number
Pattern: ^%+49(%d+)$
Replacement: 0049%1 
Action: match
Mandatory: false
3.
Var in: destination_number
Var out: destination_number
Pattern: ^%+(%d+)$
Replacement: 00%1
Action: match
Mandatory: false
4.
Var in: destination_number
Var out: destination_number
Pattern: ^00([1-9]%d+)$
Replacement: 00%1
Action: match
Mandatory: false
5.
Var in: destination_number
Var out: destination_number
Pattern: ^0([1-9]%d+)$
Replacement: 0049%1
Action: match
Mandatory: false
6.
Var in: val:caller_id_numbers 
Var out: caller_id_number 
Pattern: ^%+49(%d+)$
Replacement: 0049%1
Action: set
Mandatory: false

ACHTUNG: Das ganze ist OHNE eine "0" als Amtsholung!

Clone this wiki locally