Configuration Description
Configuration is based on retired software release!
Below you will find different configuration examples for a SIP-Gateway configurations. The type of the proxy does not matter as the configuration is the same. Please note the configuration is different depending of what firmware you use.
In the examples below there are some variables what need to be adapted to fit into your requirements. The variables and their meaning are:
# Replace ‹x.x.x.x› with IP address of registrar, e.g. 192.168.1.1
# Replace ‹user-account› with account, e.g., 1234
# Replace ‹user-password› with account password, e.g., mysecret
# Replace ‹network-interface› with the corresponding network interface
# Replace ‹interface-type› with fxs or isdn depending of the type of your SmartNode
Commande Sequence to copy, edit and paste
Example for firmware 3.20
*************************
profile voip default
codec g729 rx-length 20 tx-length 20
codec g711ulaw64k rx-length 20 tx-length 20
codec g711alaw64k rx-length 20 tx-length 20
context cs
routing-table called-e164 RT_2_ASTERISK
route .T dest-interface IF_SIP_ASTERISK
interface ‹interface-type› IF_TELEPHONE
route call dest-table RT_2_ASTERISK
interface sip IF_SIP_ASTERISK
bind gateway GW_SIP_ASTERISK
service default
route call dest-interface IF_TELEPHONE
address-translation outgoing-call from-header user-part fix ‹user-account› host-part call
gateway sip GW_SIP_ASTERISK
bind interface ‹network-interface› router
service default
domain ‹domain-name-or-ip-of-Asterisk›
defaultserver ‹domain-name-or-ip-of-Asterisk›
registration ‹domain-name-or-ip-of-Asterisk›
user ‹user-account› password ‹user-password›
gateway sip GW_SIP_ASTERISK
no shutdown
**************************************************
Example for firmware 3.21, 4.1 and 4.2
**************************************************
profile voip default
codec g729 rx-length 20 tx-length 20
codec g711ulaw64k rx-length 20 tx-length 20
codec g711alaw64k rx-length 20 tx-length 20
context cs
routing-table called-e164 RT_2_ASTERISK
route .T dest-interface IF_SIP_ASTERISK
interface ‹interface-type› IF_TELEPHONE
route call dest-table RT_2_ASTERISK
interface sip IF_SIP_ASTERISK
bind gateway GW_SIP_ASTERISK
service default
route call dest-interface IF_TELEPHONE
address-translation outgoing-call from-header user-part fix ‹user-account› host-part call
gateway sip GW_SIP_ASTERISK
bind interface ‹network-interface› router
service default
domain ‹domain-name-or-ip-of-Asterisk›
defaultserver manual ‹domain-name-or-ip-of-Asterisk›
registration manual ‹domain-name-or-ip-of-Asterisk›
user ‹user-account› authenticate password ‹user-password› register
gateway sip GW_SIP_ASTERISK
no shutdown