OS: CentOS 5
Asterisk version: 1.4
Asterisk server IP: X.X.X.X (public IP)
X-lite IP: 192.168.10.1(private IP)--behind NAT
I am trying to configure asterisk with X-lite using broadvoice account for incoming and outgoing calls. Please check my sip.conf and extensions.conf below
sip.conf configuration
[general]
context=context
bindport=5060
bindaddr=X.X.X.X
pedantic=no
register => 9729245650@sip.broadvoice.
com:fsdfsf
sfs:972924
5650@sip.b
roadvoice.
com
[sip.broadvoice.com]
type=friend
user=phone
host=sip.broadvoice.com
fromdomain=sip.broadvoice.
com
fromuser=9729245650
secret=dadaddafds
username=9729245650
insecure=port,invite
context=context
authname=9729245650
dtmfmode=inband
dtmf=inband
;Disable canreinvite if you are behind a NAT
canreinvite=no
[2001]
type=friend
username=2001
secret=welcome
host=dynamic
context=context
nat=yes
reinvite=no
qualify=1000
canreinvite=no
dtmfmode=inband
extensions.conf configuration
[context]
;For incoming calls
;This extension line will ring SIP
;extension 2001 for 60 seconds then hang up. Modify as necessary to fit your dialplan
exten => s,1,Dial(SIP/2001,60,tr)
exten => s,2,hangup
;For outgoing calls
;Pattern match for local call plan, use appropriate pattern if on nationwide plan.
exten => _1NXXNXXXXXX,1,dial(SIP/${
EXTEN}@sip
.broadvoic
e.com,30)
exten => _1NXXNXXXXXX,2,congestion(
)
exten => _1NXXNXXXXXX,102,busy()
Current situation:
1) Asterisk registers with broadvoice.
2) Can make call to 4694507630 using directly the following call file
Channel: sip/sip.broadvoice.com/469
4507630
WaitTime: 20
Context: context
Extension: 2001
Priority: 1
CallerID: Asterisk <972-924-5650>
Set: CONTACT=4694507630
Set: SESSION=2
Set: VOICE_FILE=/home/call_apps
/vox/_test
using the command "mv callfilename /var/spool/asterisk/outgoi
ng"
3) X-lite registers successfully with asterisk using the following settings
Display Name: 2001
user name : 2001
password: sfsdfs
authorization user name: 2001
domain: asterisk server IP
proxy address: asterisk server IP
But when I try to call 4694507630 from X-lite it returns "call failed".
Please provide help and suggestions on how to make call using X-lite after registering to asterisk through broadvoice.
Thanks