Configuration Description
A Simple Asterisk Registration into PBX E1 on Port 0 0
# # Replace ‹0.0.0.0› with IP address or dns name of the registrar, e.g. 192.168.1.1 # Replace ‹XXX› with account, e.g., 1234 # Replace ‹YYY› with account password, e.g., mysecret # Replace < ethernet-interface > with the ethernet interface you use # # Example configuration is based on firmware 5.X for a SN4960, SN4940 and SN4950
Command Sequence to copy, edit and paste
profile voip default codec 1 g729 rx-length 20 tx-length 20 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 isdn IF_ISDN_00 route call dest-table RT_PSTN_TO_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_ISDN_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
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 e1t1 0 0 port-type e1 clock auto framing crc4 encapsulation q921
q921 uni-side auto encapsulation q931
q931 protocol dss1 uni-side user bchan-number-order ascending encapsulation cc-isdn bind interface IF_ISDN_00
port e1t1 0 0 no shutdown
|