I have been using Vitelity as an outbound carrier with no problems, but as My call volume is increasing they are getting pricey. I set up an account with Gafachi, and got a much better rate, and set up a carrier in my Vici but I cannot seem to get it to work. Gafachi says I am broadcasting an iP address I do not recognize, but when i do ifconfig, I get the correct Bcast ID. (as follows, eth 0 being hard coded to an external IP, Eth1 for internal traffic, 192.168.1.119 reserved for the ViciBox)
eth0 Link encap:Ethernet HWaddr 00:19:D1:A8:8C:FD
inet addr:67.78.18.78 Bcast:67.78.18.79 Mask:255.255.255.248
inet6 addr: fe80::219:d1ff:fea8:8cfd/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:20371222 errors:0 dropped:0 overruns:0 frame:0
TX packets:13666433 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4409086220 (4204.8 Mb) TX bytes:2990148218 (2851.6 Mb)
eth1 Link encap:Ethernet HWaddr C4:3D:C7:80:49:9A
inet addr:192.168.1.19 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::c63d:c7ff:fe80:499a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5320626 errors:0 dropped:0 overruns:0 frame:0
TX packets:10533769 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1187547641 (1132.5 Mb) TX bytes:2451430394 (2337.8 Mb)
Interrupt:22 Base address:0x2800
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:10773015 errors:0 dropped:0 overruns:0 frame:0
TX packets:10773015 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1456692805 (1389.2 Mb) TX bytes:1456692805 (1389.2 Mb)
The carrier settings I got from Gafachi are:
/etc/asterisk/extensions.conf
[general]
static=yes
writeprotect=yes
[default]
; NOTE: The line below is required. It will not affect the Calling Name
; from displayed to the called party. If the called party subscribes to
; Calling Name service, the called party's local exchange carrier performs
; a query to determine the Calling Name based on the Calling Number that is
; received with the call.
exten => _1NXXNXXXXXX,1,Set(CALLERID(name)=)
exten => _1NXXNXXXXXX,2,Dial,SIP/${EXTEN}@gafachi2a||o
exten => _1NXXNXXXXXX,3,Hangup
exten => _011.,1,Set(CALLERID(name)=)
exten => _011.,2,Dial,SIP/${EXTEN}@gafachi2a||o
exten => _011.,3,Hangup
[gafachi-incoming]
; NOTE: this section is for Gafachi Origination (incoming) services.
; DID and/or Toll free origination numbers need to include the "1" prefix
; Replace the 12125551234 with your DID or Toll Free number, and repeat or
; change as needed.
exten => 12125551234,1,Dial,Zap/g1
exten => 12125551234,2,Hangup
/etc/asterisk/sip.conf
[general]
port=5060
bindaddr=0.0.0.0
context=default
tos=lowdelay
disallow=all
allow=ulaw
register=>a13040sUCtXJWRYC:EUnflOPwBkxiCLwa@67.216.35.205
; NOTE: The line below ([gafachi2a]) can not be changed, otherwise your Asterisk
; system will reject calls, with a "403 Forbidden", from the Gafachi Network.
[gafachi2a]
type=friend
username=a13040sUCtXJWRYC
secret=EUnflOPwBkxiCLwa
host=67.216.35.205
canreinvite=no
fromuser=a13040sUCtXJWRYC
dtmfmode=rfc2833
context=gafachi-incoming
The settings I have in my dialer for the carrier are:
Carrier ID: GafachiSIP
Carrier Name:
Carrier Description:
Admin User Group: All Admin User Groups ADMIN - VICIDIAL ADMINISTRATORS Group1 - Sec - 01 Group2 - Sec - 02 ---ALL---
Registration String:
Template ID: --NONE--IAX_generic - IAX phone generic SIP_generic - SIP phone generic --NONE--
Account Entry: [general]
port=5060
bindaddr=0.0.0.0
context=default
tos=lowdelay
disallow=all
allow=ulaw
[gafachi2a]
type=friend
username=a13040sUCtXJWRYC
secret=EUnflOPwBkxiCLwa
host=67.216.35.205
canreinvite=no
fromuser=a13040sUCtXJWRYC
dtmfmode=rfc2833
context=gafachi-incoming
Protocol: SIPZapIAX2EXTERNALSIP
Globals String:
Dialplan Entry: exten => _91999NXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91999NXXXXXX,2,Dial(${TESTSIPTRUNK}/${EXTEN:2},,tTor)
exten => _91999NXXXXXX,3,Hangup
Server IP: 192.168.1.19 - Test install of Asterisk server - 192.168.1.19
Active: YNY
I am running ViciBox Redux v.3.1.13 release / no addons