All pastes #500632 Raw Edit

Stuff

public text v1 · immutable
·published 2007-05-21 17:25 UTC
rendered paste body
freePBX 2.2.1 on 10.212.1.110Setup Tools Reports Panel Recordings Apply Configuration ChangesYou have made changes to the configuration that have not yet been applied. When you are finished making all changes, click on Apply Configuration Changes to put them into effect.   Language:       English Français Deutsch Italiano Español Russki Portuguese Hebrew SetupBasic 
Administrators
 
Extensions
 
General Settings
 
Outbound Routes
 
Trunks
 
Inbound Call Control 
Inbound Routes
 
Add Trunk
 
Trunk ZAP/g0
 
Add SIP Trunk
    General Settings 
Outbound Caller ID
Caller ID for calls placed out on this trunk

Format: "caller name" <#######>. You can also use the magic string 'hidden' to hide the CallerID sent out over Digital lines ONLY (E1/T1/J1/BRI/SIP/IAX)

:    
Never Override CallerID
Some VoIP providers will drop the call if you try to send an invalid CallerID (one you don't 'own.' Use this to never send a CallerID that you haven't explicitly specified in this trunk or in the outbound callerid field of an extension/user. You might notice this problem if you discover that Follow-Me or RingGroups with external numbers don't work properly. Checking this box has the effect of disabling 'foreign' callerids from going out this trunk
It's safe to leave this switched off

:    
Maximum channelsControls the maximum number of channels (simultaneous calls) that can be used on this trunk, including both incoming and outgoing calls. Leave blank to specify no maximum.:    


Outgoing Dial Rules 
Dial RulesA Dial Rule controls how calls will be dialed on this trunk. It can be used to add or remove prefixes. Numbers that don't match any patterns defined here will be dialed as-is. Note that a pattern without a + or | (to add or remove a prefix) will not make any changes but will create a match. Only the first matched rule will be executed and the remaining rules will not be acted on.

Rules:
X    matches any digit from 0-9
Z    matches any digit from 1-9
N    matches any digit from 2-9
[1237-9]  matches any digit or letter in the brackets (in this example, 1,2,3,7,8,9)
.    wildcard, matches one or more characters (not allowed before a | or +)
|    removes a dialing prefix from the number (for example, 613|NXXXXXX would match when some dialed "6135551234" but would only pass "5551234" to the trunk) +    adds a dialing prefix from the number (for example, 1613+NXXXXXX would match when some dialed "5551234" and would pass "16135551234" to the trunk)

You can also use both + and |, for example: 011+0|1ZXXXXXXXXX would match "012555555555" and dial it as "0112555555555" Note that the order does not matter, eg. 0|011+1ZXXXXXXXXX does the same thing. :    
  
Dial rules wizards Always dial with prefix is useful for VoIP trunks, where if a number is dialed as "5551234", it can be converted to "16135551234".
Remove prefix from local numbers is useful for ZAP trunks, where if a local number is dialed as "6135551234", it can be converted to "555-1234".
Lookup numbers for local trunk This looks up your local number on www.localcallingguide.com (NA-only), and sets up so you can dial either 7 or 10 digits (regardless of what your PSTN is) on a local trunk (where you have to dial 1+areacode for long distance, but only 5551234 (7-digit dialing) or 6135551234 (10-digit dialing) for local calls
:     (pick one) Always dial with prefix Remove prefix from local numbers Lookup numbers for local trunk (7-digit dialing) Lookup numbers for local trunk (10-digit dialing)  
  Outbound Dial PrefixThe outbound dialing prefix is used to prefix a dialing string to all outbound calls placed on this trunk. For example, if this trunk is behind another PBX or is a Centrex line, then you would put 9 here to access an outbound line.

Most users should leave this option blank.:    


Outgoing Settings 
Trunk Name
Give this trunk a unique name. Example: myiaxtel

:    
PEER Details
Modify the default PEER connection parameters for your VoIP provider.

You may need to add to the default lines listed below, depending on your provider.

:  
exten => _XXXX,1,Macro(dialout-callmanager,${EXTEN}) 
exten => _9NXXXXXX,1,Macro(dialout-callmanager,${EXTEN}) 
exten => _91NXXNXXXXXX,1,Macro(dialout-callmanager,${EXTEN}) 

exten => i,1,Congestion   


Incoming Settings 
USER Context
This is most often the account name or number your provider expects.

This USER Context will be used to define the below user details.:    
USER Details
Modify the default USER connection parameters for your VoIP provider.

You may need to add to the default lines listed below, depending on your provider.

:  
type=friend
context=incoming
host=10.10.10.10
disallow=all
allow=ulaw
allow=alaw
nat=no
canreinvite=yes
qualify=yes  


Registration 
Register String
Most VoIP providers require your system to REGISTER with theirs. Enter the registration line here.

example:

username:password@switch.voipprovider.com.

Many providers will require you to provide a DID number, ex: username:password@switch.voipprovider.com/didnumber in order for any DID matching to work.

: