ACHTUNG: Diese Anleitung ist bereits älter und kann teilweise nur noch auf ältere Versionen von FreePBX angewandt werden.
-> Bitte kontrollieren Sie ebenfalls die weitere FAQ Einträge unter FreePBX im e-fon Support-Center
Author: Severin Meyer, BitWorld GmbH
-
General Settings
-
Trunk Name: 0719000000_efon
-
Outbound CallerID: 0719000000
-
CID Options: Allow Any CID
-
Maximum Channels: 3
-
Outgoing Settings
-
Trunk Name: 0719000000_trunk
-
Peer Details:
-
context=custom-get-did-from-sip-x-number
-
username=0719000000
-
secret=sippasswordfromprovider
-
fromuser=0719000000
-
fromdomain=adapt.e-fon.ch
-
type=friend
-
insecure=very
-
host=adapt.e-fon.ch
-
disallow=all
-
allow=alaw
-
0719000000:sippasswordfromprovider@adapt.e-fon.ch
-
Inbound Routes
-
0719000000
-
Description: Mainnumber
-
DID Number: 0719000000
-
Set Destination: <ring group or extension>
-
0719000001
-
Description: DirectNumber1
-
DID Number: 0719000001
-
Set Destination: <ring group or extension>
-
Outbound Routes
-
Route Name: All
-
Route CID:
-
Dial Patterns: match pattern= 0X. -> The route will be used by all numbers with a leading 0.
-
Trunk Sequence: 0: 0719000000_efon
-
Asterisk changes:
-
/etc/asterisk/extensions_custom.conf
[custom-get-did-from-sip-x-number]
exten => s,1,Goto(from-trunk,${SIP_HEADER(X-Number)},1)
[macro-dialout-trunk-predial-hook]
;Add P-Preferred-Identity for the trunk CID 0719000000
exten => s,1,ExecIf($["${TRUNKOUTCID}" = "0719000000"]?SipAddHeader(P-Preferred-Identity:<sip:${CALLERID(num)}@e-fon.ch>))