Hi all,
This is my PIAF and SmartNode config.
Cheers,
1* My IPPBX info:
.PBX in a Flash Version = 1.7.5.6 Running on HARDWARE
- FreePBX Version = 2.8.1.4
- Running Asterisk Version = 1.8.5.0
- Asterisk Source Version = 1.8.5.0
- Dahdi Source Version = 2.5.0+2.5.0
- Libpri Source Version = 1.4.12
- IP Address = 192.168.1.250 on eth0
- Operating System = CentOS release 5.6 (Final)
- Kernel Version = 2.6.18-238.9.1.el5 - 32 Bit
.Gateway SmartNode SN4524/2JS2JO/EUI
- R5.7 2011-01-17 H323 SIP FXS FXO
2* Install step by step:
2.1** Trunk to SmartNode config:
- Trunk Name: Trunk_PSTN
- Outbound Caller ID: <012345678>
- Dialed number Manipulation Rules: “9.” in box “match patten”
- Trunk Name: SmartNode
PEER Details:
- canreinvite=no
- context=from-pstn
- dtmfmode=rfc2833
- host=192.168.1.254
- insecure=port,invite
- qualify=yes
- nat=no
- port=5060
- type=peer
- allow=g729&ulaw
- disallow=all
2.2** Outbound Routes config:
- Route Name: PSTN_Outgoing
- Dial Patterns that will use this Route: “9.” in box “match patten”
- Trunk Sequence for Matched Routes: Trunk_PSTN
2.3** Inbound Routes config:
- Description: PSTN_Incomming
- Set Destination: Extensions 601 or IVR
2.4** Asterisk Sip Settings Settings:
- NAT: Yes
- IP Configuration: Static IP
- SIP address remapping: Enabled using externaddr
- External IP: 43.54.xxx.xxx (Public IP)
- Localnet: 192.168.1.0/255.255.255.0
- Codecs: ulaw,gsm,g729
- Another config leave at default.
2.5** SmartNode config:
#----------------------------------------------------------------#
SN4524/2JS2JO/EUI
R5.7 2011-01-17 H323 SIP FXS FXO
2011-08-19T16:08:11
SN/00A0BA041C56
Generated configuration file
#----------------------------------------------------------------#
cli version 3.20
clock local default-offset +07:00
dns-client server 8.8.8.8
dns-relay
webserver port 80 language en
sntp-client
sntp-client server primary 129.132.2.21 port 123 version 4
system
ic voice 0
low-bitrate-codec g729
profile napt NAPT
profile ppp default
profile tone-set default
profile voip default
codec 1 g729 rx-length 20 tx-length 20
codec 2 g711ulaw64k rx-length 20 tx-length 20
profile pstn default
output-gain 5
input-gain 5
profile ringing-cadence default
play 1 1000
pause 2 4000
profile sip default
no autonomous-transitioning
profile dhcp-server DHCP
network 172.16.3.0 255.255.255.0
include 1 172.16.3.10 172.16.3.99
lease 2 hours
default-router 1 172.16.3.1
domain-name-server 1 172.16.3.1
profile aaa default
method 1 local
method 2 none
context ip router
interface eth0
ipaddress 192.168.1.254 255.255.255.0
use profile napt NAPT
tcp adjust-mss rx mtu
tcp adjust-mss tx mtu
interface eth1
ipaddress 172.16.3.1 255.255.255.0
tcp adjust-mss rx mtu
tcp adjust-mss tx mtu
context ip router
dhcp-server use profile DHCP
route 0.0.0.0 0.0.0.0 192.168.1.1 0
context cs switch
digit-collection timeout 2
address-completion timeout 5
routing-table called-e164 RT_FROM_PIAF
route 6004 dest-interface IF_FXS_00
route 6005 dest-interface IF_FXS_01
route 901.T3 dest-service HG_FXO DEL_9
route 908.T3 dest-service HG_FXO DEL_9
route 99… dest-service HG_FXO DEL_9
route 919.T3 dest-service HG_FXO DEL_9
route 9[2-7].T3 dest-service HG_FXO DEL_9
route 90[2-7].T3 dest-service HG_FXO ADD_686
routing-table called-e164 RT_TO_PAIF
route default dest-interface IF_SIP_PIAF
routing-table called-e164 RT_FROM_FXS
route .T3 dest-interface IF_SIP_PIAF
mapping-table called-e164 to called-e164 DEL_9
map 9(.%) to \1
mapping-table called-e164 to called-e164 ADD_686
map 9(.%) to 686\1
interface sip IF_SIP_PIAF
bind context sip-gateway Trunk_PIAF
route call dest-table RT_FROM_PIAF
remote 192.168.1.250 5060
early-connect
early-disconnect
interface fxs IF_FXS_00
route call dest-table RT_FROM_FXS
no call-hold
no call-waiting
caller-id-presentation mid-ring
subscriber-number 6004
interface fxs IF_FXS_01
route call dest-table RT_FROM_FXS
no call-hold
no call-waiting
caller-id-presentation mid-ring
subscriber-number 6005
interface fxo IF_FXO_00
route call dest-table RT_TO_PAIF
disconnect-signal battery-reversal
disconnect-signal loop-break
disconnect-signal busy-tone
dial-after timeout 1
mute-dialing
interface fxo IF_FXO_01
route call dest-table RT_TO_PAIF
disconnect-signal battery-reversal
disconnect-signal loop-break
disconnect-signal busy-tone
dial-after timeout 1
mute-dialing
service hunt-group HG_FXO
drop-cause normal-unspecified
drop-cause no-circuit-channel-available
drop-cause network-out-of-order
drop-cause temporary-failure
drop-cause switching-equipment-congestion
drop-cause access-info-discarded
drop-cause circuit-channel-not-available
drop-cause resources-unavailable
drop-cause user-busy
route call 1 dest-interface IF_FXO_00
route call 2 dest-interface IF_FXO_01
context cs switch
no shutdown
authentication-service AUS_Exts
username 6004 password 6004abcd
username 6005 password 6005abcd
location-service LS_Exts
domain 1 192.168.1.250 5060
identity-group default
registration outbound
registrar 192.168.1.250 5060
proxy 1 192.168.1.250 5060
lifetime 3600
register auto
retry-timeout on-system-error 10
retry-timeout on-client-error 10
retry-timeout on-server-error 10
identity 6004 inherits default
authentication outbound
authenticate 1 authentication-service AUS_Exts username 6004
identity 6005 inherits default
authentication outbound
authenticate 1 authentication-service AUS_Exts username 6005
context sip-gateway Trunk_PIAF
interface PIAF_Sip_Interface
bind interface eth0 context router port 5060
context sip-gateway Trunk_PIAF
bind location-service LS_Exts
no shutdown
port ethernet 0 0
medium auto
encapsulation ip
bind interface eth0 router
no shutdown
port ethernet 0 1
medium auto
encapsulation ip
bind interface eth1 router
no shutdown
port fxs 0 0
encapsulation cc-fxs
bind interface IF_FXS_00 switch
no shutdown
port fxs 0 1
encapsulation cc-fxs
bind interface IF_FXS_01 switch
no shutdown
port fxo 0 0
encapsulation cc-fxo
bind interface IF_FXO_00 switch
no shutdown
port fxo 0 1
encapsulation cc-fxo
bind interface IF_FXO_01 switch
no shutdown