Configuration Description
Configuration for a Pingtel / sipX PBX -US Dial Tones -SN45xx (firmware 5.X) based -Replace all <>-variables with appropriate values
Configuration to copy, edit and paste
profile call-progress-tone US_Dialtone play 1 0 350 -13 440 -13
profile call-progress-tone US_Alertingtone play 1 2000 440 -19 480 -19 pause 2 4000
profile call-progress-tone US_Busytone play 1 500 480 -24 620 -24 pause 2 500
profile tone-set default
profile tone-set US map call-progress-tone dial-tone US_Dialtone map call-progress-tone ringback-tone US_Alertingtone map call-progress-tone busy-tone US_Busytone map call-progress-tone release-tone US_Busytone map call-progress-tone congestion-tone US_Busytone
profile voip default codec 1 g723-6k3 rx-length 30 tx-length 30 codec 2 g711ulaw64k rx-length 20 tx-length 20 codec 3 g711alaw64k rx-length 20 tx-length 20
context cs switch
routing-table called-e164 RT_PSTN_TO_SIP route .T dest-interface IF_SIP
interface sip IF_SIP bind context sip-gateway GW_SIP # Enter below the SIP server / Softswitch IP address or FQDN remote <0.0.0.0> route call dest-interface IF_FXS_00 # Enter below the SIP username, to be used as user part in from header address-translation outgoing-call from-header user-part fix <username> host-part call
interface fxs IF_FXS_00 route call dest-table RT_PSTN_TO_SIP
context cs switch no shutdown
authentication-service AUTH_SVC # Enter below the username and passwort you got by VOIP provider username [XXX] password [YYY] location-service LOCATION_SVC # The line below requires the VOIP Providers domain name domain 1 [registrar IP or domain]
# Set the SIP username on the line below identity <username>
authentication outbound # Replace the XXX with the username of Authentication service authenticate 1 authentication-service AUTH_SVC username <username>
registration outbound # Set the Registrar IP or domainname of VOIP provider registrar 1 <IP or Domain> register auto
context sip-gateway GW_SIP
interface IF_GWSIP bind interface WAN context router port 5060
context sip-gateway GW_SIP bind location-service LOCATION_SVC no shutdown
port ethernet 0 0 medium auto encapsulation ip bind interface WAN router no shutdown # Repeat the port fxs-part below if you have/need more fxs-interfaces # for each FXS port an interface in context cs is required
port fxs 0 0 # (use etsi for europe instead of bell) caller-id format bell # (use etsi or other country if not US based) use profile fxs us encapsulation cc-fxs bind interface IF_FXS_00 no shutdown
|