Created
March 15, 2010 06:48
-
-
Save zuriby/332589 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# oz list and oz dump | |
freeswitch@snaptrunk-02> oz list | |
+OK | |
span: 1 (smg_prid) | |
type: Sangoma (boost) | |
chan_count: 30 | |
dialplan: XML | |
context: default | |
dial_regex: | |
fail_dial_regex: | |
hold_music: | |
analog_options none | |
freeswitch@snaptrunk-02> oz dump 1 1 | |
span_id: 1 | |
chan_id: 1 | |
physical_span_id: 1 | |
physical_chan_id: 1 | |
type: B | |
state: DOWN | |
last_state: DOWN | |
txgain: 0.00 | |
rxgain: 0.00 | |
cid_date: | |
cid_name: | |
cid_num: | |
ani: | |
aniII: | |
dnis: | |
rdnis: | |
cause: NONE | |
############ openzap.conf | |
[span wanpipe smg_prid] | |
name => smg_prid | |
trunk_type =>e1 | |
b-channel => 1:1-15 | |
b-channel => 1:17-31 | |
########### openzap.conf.xml | |
<configuration name="openzap.conf" description="OpenZAP Configuration"> | |
<settings> | |
<param name="debug" value="0"/> | |
<!--<param name="hold-music" value="$${moh_uri}"/>--> | |
<!--<param name="enable-analog-option" value="call-swap"/>--> | |
<!--<param name="enable-analog-option" value="3-way"/>--> | |
</settings> | |
<boost_spans> | |
<span id="smg_prid"> | |
<!--<param name="hold-music" value="$${moh_uri}"/>--> | |
<param name="dialplan" value="XML"/> | |
<param name="context" value="default"/> | |
<!-- regex to stop dialing when it matches --> | |
<!--<param name="dial-regex" value="5555"/>--> | |
<!-- regex to stop dialing when it does not match --> | |
<!--<param name="fail-dial-regex" value="^5"/>--> | |
</span> | |
</boost_spans> | |
<analog_spans> | |
</analog_spans> | |
</configuration> | |
################## smg_pri.conf | |
;comment | |
;See http://wiki.sangoma.com/SmgPriAdvancedOptions for more details | |
;Debug Logging | |
;possible values:(yes/no) | |
;default:no | |
;This can result to a lot of prints in the logs, do not enable this unless advised to do so by Sangoma Tech Support. | |
debug_log=yes | |
;Boost Logging | |
;possible values:(yes/no) | |
;default:no | |
;This can result to a lot of prints in the logs, do not enable this unless advised to do so by Sangoma Tech Support. | |
boost_log=yes | |
;Verbosity | |
;possible values:(1-10) | |
;default:0 | |
;Recommended value for production is 3, for debugging 5 | |
;verbose=5 | |
;Trunkgroup | |
;possible values:(1-32) | |
;group=1 | |
;D-Channel logging | |
;possible values:(yes/no/q931/q921) | |
;log file will be in /var/log/sangoma_pri/dchan_N.log, where N is the span Number. | |
;default:no | |
;example:dchan_log=yes | |
dchan_log=yes | |
;Switchtype | |
;possible values:(national/dms100/5ess/euroisdn) | |
;default:national | |
;example:switchtype=national | |
;Prefixes | |
;These will prepend the calling number on incoming calls based on the Type of Number(TON) and Numbering Plan Identification(NPI). | |
;See http://wiki.sangoma.com/SmgPriAdvancedOptions for more details | |
; | |
;national_prefix | |
;international_prefix | |
;unknown_prefix | |
;private_prefix | |
;local_prefix | |
; | |
;examples: | |
;national_prefix=01 | |
;international_prefix=011 | |
;Dialplan | |
;These will set the Type of Number(TON) and Numbering Plan Identification(NPI) on outgoing calls. | |
;See http://wiki.sangoma.com/SmgPriAdvancedOptions for more details | |
; | |
;possible values:(unknown/national/international/local/private/auto) | |
; | |
;examples: | |
;callingparty_dialplan:national | |
;calledparty_dialplan=auto | |
;redirectingnumber_dialplan=international | |
;Spans | |
;possible values:(1-32) | |
;examples: | |
;spans=1 | |
;spans=1-5 | |
;spans=1-5,7 | |
;Channels | |
;possible values:(s1c1-s1c23 for T1, s1c1-s1c15,s1c17-s1c31 for E1) | |
;This is used when fractional mode is required, or multiple trunkgroups per span are required. | |
;examples: | |
;chans=s1c1-s1c23,s2c1-s2c23 | |
; | |
;Note:chans and spans cannot be used for the same span, i.e spans=1 will give the same result as chans=s1c1-s1c23 for a T1 span, | |
;So configs like: | |
; | |
; spans=1 | |
; chans=s2c1-s2c24 | |
;And | |
; chans=s1c1-s1c24 | |
; spans=2 | |
; | |
;Will give the exact same result | |
; | |
;Using a config like: | |
; spans=1 | |
; chans=s1c1-s1c20 | |
;Will result to an error, because the same channels are specified twice | |
;AFT-A101 on port 1 | |
signalling=pri_cpe | |
switchtype=euroisdn | |
group=1 | |
spans=1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment