CNPJ - 224.977.06/0001-43

0800-591-1068 - Entre em contato.

Como configurar um GOIP com Elastix

Para aqueles que estão procurando um norte para configurar um Gateway Goip com o Elastix/Asterisk:

Ainda não sabe como configurar um GOIP com Elastix?

 

 

ASTERISK SETUP

 

Crie uma extensão Asterisk para ser usado pelo GOIP

Crie uma senha para a extensão

Crie um Trunk para Goip com as seguintes configurações:-

 

Dial Plan:

X. (accept anything from outbound rules)

 

 

Trunk Name:  goip

PEER Details:

username=goip (can be anything, doesn’t really matter)

type=peer

qualify=yes

port=5060 (This is optional unless changed from 5060 but must be same as set in “Advance settings” in GOIP. If multiple goip used, each should have separate port)

nat=no

insecure=very

host=192.168.1.202 (Static IP address assigned in GOIP)

context=from-pstn

canreinvite=no

 

 

User Context 0412XXXXXX

Detalhes do Usuário:

username=goip (same as above)

type=user

port=5060 (same as above)

nat=no

insecure=very

host=192.168.1.202

context=from-pstn

canreinvite=no

 

I have found that this section (User Details) is not really necessary, all can be omitted as long as “User Context” is set and it will still work.

 

Register String : (Not Necessary)

 

Much valuable information about setting up and securing Elastix can be found here : http://www.sunshinenetworks.com.au/how-to.html

 

 

 

GOIP SETUP

 

 

Lan Port : set to Static IP

IP Address : same IP address used in Asterisk Trunk setup

Default Route : Modem IP address

Primary DNS : 208.67.222.222 is opendns. You can use this or the modem ip or your ISP DNS

 

 

 

Endpoint Type : SIP Phone

Config Mode : Single Server Mode

Phone Number : This MUST be Asterisk extension number

Display Name : can be anything

SIP Proxy : MUST be Asterisk server IP address

SIP Register Server : MUST be Asterisk server IP address

Authentication ID : MUST be asterisk extension number

Password : MUST be asterisk extension password

Call forward type : should be “Not Forward” otherwise incoming calls will go to “Call Forward Number”

 

Ensure “Local Signaling Port” under  “Advanced Settings” is set to same port as asterisk trunk if this was changed in Asterisk

Ensure “RTP Port range is consistent with your Asterisk setup (default asterisk is 10000 to 20000)

Set Audio Codec Preference and order to suit your setup 

 

 

 

 

Forward to PSTN : enabled

Forward Number : This is where the call will go if an internal asterisk caller rings the extension number. I have it going to my mobile number.

Forward to Voip : enabled

Forward Number : this is where incoming calls to the goip mobile number will go. This can be an asterisk extension or a call group. I have it going to call group 6XX

Set CID Forward Mode to “Use CID as SIP Caller ID” if you want caller ID passed to Asterisk. If you enter something in “CID Prefix”, this will appear with caller ID in asterisk log.

 

Salve as alterações

 

 

Se tudo estiver correto, Line Status deve mostrar “Login” and GSM Status deve mostrar “Login”. Se não, tente reiniciar o GOIP. Eu notei que nem sempre essas configurações funcionam no Firefox. É mais seguro utilizar o IE para fazer o setup.

 

 

Apenas os itens referidos acima são necessários para o GOIP funcionar. Se eu não mencionei uma opção de configuração, as configurações padrão devem ser adequadas.

 

Com esta configuração Goip vai fazer três coisas: -

 

-                      External call to Goip mobile number will ring Asterisk extension or ring group set at “Forward Number (PSTN to Voip)”

-                      Internal call to Goip extension number will forward call to number set at “Forward Number (Voip to PSTN)” using Goip sim.

-                      Asterisk call using Goip Trunk will dial number using GOIP sim.

 

 

Comentários