Hi Matt,
Heres my comprehensive overall server settings.
Can u please take a look and see if I made a mistake?
VICIBOX VERSION: 2.0.5-173
BUILD: 90320-0424
===================================================
Server specs: Intel QuadCore2/4GB RAM/500GB DISK/
Phone: X-lite from Counterpath
===================================================
Carrier name:AccelaSansay1
Carrier Record
Account Entry:
[AccelaSansay1]
type=friend
nat=yes
host=69.94.226.174
canreinvite=no
disallow=all
allow=ulaw
allow=alaw
dtmfmode=inband
context=trunkinbound
Protocol:SIP
Globals String:TRUNKY = SIP/AccelaSansay1
=========================================
DID Extension:8778880524
=========================================
PHONES>>>
Phone Extension:201
Extension Context:trunkinbound
Outbound Call Group:SIP/AccelaSansay1
===========================================
EXTENSIONS.CONF>>>
[globals]
CONSOLE=Console/dsp ; Console interface for demo
TRUNKY=SIP/AccelaSansay1
TRUNK=SIP/AccelaSansay1
TRUNKX=SIP/AccelaSansay1
;TRUNK=Zap/g1 ; Trunk interface
;TRUNKX=Zap/g2 ; 2nd trunk interface
TRUNKIAX=IAX2/ASTtest1:test@10.10.10.16:4569 ; IAX trunk interface
TRUNKIAX1=IAX2/ASTtest1:test@10.10.10.16:4569 ; IAX trunk interface
TRUNKBINFONE=IAX2/1112223333:PASSWORD@iax.binfone.com ; IAX trunk interface
SIPtrunk=SIP/1234:PASSWORD@sip.provider.net ; SIP trunk
SIPtrunk=SIP/202:1234@192.168.1.123
TRUNKloop = IAX2/ASTloop:test@127.0.0.1:40569 ; used for blind monitoring
TRUNKblind = IAX2/ASTblind:test@127.0.0.1:41569 ; used for testing
#include extensions-vicidial.conf
[trunkinbound]
; agent dial-in:
exten => 2345,1,Answer ; Answer the line
exten => 2345,2,AGI(agi-AGENT_dial_in.agi)
exten => 2345,3,Hangup
exten => 201,1,Dial(SIP/202,,120)
exten => 201,2,Hangup
; DID call routing process
exten => _X.,1,AGI(agi-DID_route.agi)
; FastAGI for VICIDIAL/astGUIclient call logging
exten => h,1,DeadAGI(
agi://127.0.0.1:4577/call_log--HVcauses ... EBUG-----${HANGUPCAUSE}-----${DIALSTATUS}-----${DIALEDTIME}-----${ANSWEREDTIME})
===========================================
EXTENSIONS-VICIDIAL.CONF>>>
TRUNKY = SIP/AccelaSansay1
[vicidial-auto]
exten => h,1,DeadAGI(
agi://127.0.0.1:4577/call_log--HVcauses ... ----------)
; Local Server: 192.168.1.123
exten => _192*168*001*123*.,1,Goto(default,${EXTEN:16},1)
; VICIDIAL Carrier: accella - AccelaSansay1
exten => _91999NXXXXXX,1,AGI(
agi://127.0.0.1:4577/call_log)
exten => _91999NXXXXXX,2,Dial(${TRUNKY}/${EXTEN:2},,tTor
exten => _91999NXXXXXX,3,Hangup
exten => 201,1,Dial(SIP/201)
exten => 201,2,Voicemail,u201
exten => 202,1,Dial(SIP/202)
exten => 202,2,Voicemail,u202
============================================
SIP.CONF>>>
[general]
context=trunkinbound ; Default context for incoming calls
;allowguest=no ; Allow or reject guest calls (default is yes, this can also be set to 'osp'
;realm=mydomain.tld ; Realm for digest authentication
bindport=5060 ; UDP Port to bind to (SIP standard port is 5060)
bindaddr=0.0.0.0 ; IP address to bind to (0.0.0.0 binds to all)
srvlookup=yes ; Enable DNS SRV lookups on outbound calls
;domain=mydomain.tld ; Set default domain for this host
;domain=mydomain.tld,mydomain-incoming
;domain=1.2.3.4 ; Add IP address as local domain
;allowexternalinvites=no ; Disable INVITE and REFER to non-local domains
;autodomain=yes ; Turn this on to have Asterisk add local host
;pedantic=yes ; Enable slow, pedantic checking for Pingtel
;tos=184 ; Set IP QoS to either a keyword or numeric val
tos=lowdelay ; lowdelay,throughput,reliability,mincost,none
maxexpiry=3600 ; Max length of incoming registration we allow
defaultexpiry=120 ; Default length of incoming/outgoing registration
;notifymimetype=text/plain ; Allow overriding of mime type in MWI NOTIFY
;checkmwi=10 ; Default time between mailbox checks for peers
;vmexten=voicemail ; dialplan extension to reach mailbox sets the
;videosupport=yes ; Turn on support for SIP video
;recordhistory=yes ; Record SIP history by default
disallow=all ; First disallow all codecs
allow=ulaw ; Allow codecs in order of preference
allow=gsm
;allow=alaw ;
musicclass=default ; Sets the default music on hold class for all SIP calls
language=en ; Default language setting for all users/peers
relaxdtmf=yes ; Relax dtmf handling
rtptimeout=60 ; Terminate call if 60 seconds of no RTP activity
;rtpholdtimeout=300 ; Terminate call if 300 seconds of no RTP activity
trustrpid = no ; If Remote-Party-ID should be trusted
sendrpid = yes ; If Remote-Party-ID should be sent
progressinband=no ; If we should generate in-band ringing always
;useragent=Asterisk PBX ; Allows you to change the user agent string
promiscredir = no ; If yes, allows 302 or REDIR to non-local SIP address
;usereqphone = no ; If yes, ";user=phone" is added to uri that contains
dtmfmode = rfc2833 ; Set default dtmfmode for sending DTMF. Default: rfc2833
;dtmfmode = inband
;compactheaders = yes ; send compact sip headers.
;sipdebug = yes ; Turn on SIP debugging by default, from
;subscribecontext = default ; Set a specific context for SUBSCRIBE requests
;notifyringing = yes ; Notify subscriptions on RINGING state
;alwaysauthreject = yes ; When an incoming INVITE or REGISTER is to be rejected,
;regcontext=sipregistrations
;registertimeout=20 ; retry registration calls every 20 seconds (default)
;registerattempts=10 ; Number of registration attempts before we give up
callevents=no ; generate manager events when sip ua performs events (e.g. hold)
;externip = 192.168.1.1 ; Address that we're going to put in outbound SIP messages
externip = 112.202.42.233
localnet = 192.168.1.123/255.255.255.0
;externhost=foo.dyndns.net ; Alternatively you can specify an
;externrefresh=10 ; How often to refresh externhost if
localnet=192.168.0.0/255.255.0.0; All RFC 1918 addresses are local networks
localnet=10.0.0.0/255.0.0.0 ; Also RFC1918
localnet=172.16.0.0/12 ; Another RFC1918 with CIDR notation
localnet=169.254.0.0/255.255.0.0 ;Zero conf local network
nat=yes ; Global NAT settings (Affects all peers and users)
;nat=no
canreinvite=no
;rtcachefriends=yes ; Cache realtime friends by adding them to the internal list
;rtupdate=yes ; Send registry updates to database using realtime? (yes|no)
;rtautoclear=yes ; Auto-Expire friends created on the fly on the same schedule
;ignoreregexpire=yes ; Enabling this setting has two functions:
; domain=myasterisk.dom
; domain=customer.com,customer-context
; autodomain=yes
; fromdomain=mydomain.tld ; When making outbound SIP INVITEs to
#include sip-vicidial.conf
==========================================================================
SIP-VICIDIAL.CONF>>>
; VICIDIAL Carrier: accella - AccelaSansay1
[AccelaSansay1]
type=friend
nat=yes
host=69.94.226.174
canreinvite=no
disallow=all
allow=ulaw
allow=alaw
dtmfmode=inband
context=trunkinbound
[201]
username=201
secret=1234
mailbox=201
context=default
type=friend
host=dynamic
[202]
username=202
secret=1234
mailbox=202
context=default
type=friend
host=dynamic
=============================================================