Hi all,
I’m fairly new to Asterisk, but looking to learn about it. As such, I’ve added the Vonage softphone to my home phone service, and have begun playing with that a little. I can connect both to the IAX softphone I have set up, and from it. Sound from said softphone can reach external callers (I’m using my cell phone), but sound from external callers does not reach the softphone (either X-Lite or DIAX, I’ve tried both). Would this be a problem in the configuration/codecs, or does the Asterisk/Vonage softphone combination just not quite work right? Attached are my sip.conf and appropriate sections of extensions.conf. I based this config off of the one given at voip-info.org, with minor changes.
[general]
context=default ; Default context for incoming calls
bindport=5060 ; UDP Port to bind to (SIP standard port is 5060)
port=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
disallow=all ; First disallow all codecs
allow=ulaw
allow=alaw
allow=g729
allow=g723
externip=ExternalIP
localnet=InternalIP/255.255.255.0
register => MyNumber:Password@sphone.vopr.vonage.net:5061/202
[vonageout]
username=MyNumber
type=friend
secret=Password
port=5061
;nat=yes
nat=no
insecure=very
host=sphone.vopr.vonage.net
fromuser=MyNumber
fromdomain=sphone.vopr.vonage.net
dtmfmode=rfc2833
canreinvite=no
disallow=all
allow=ulaw
[vonagein]
username=MyNumber
type=friend
secret=Password
;port=5061
;nat=yes
nat=no
insecure=very
host=sphone.vopr.vonage.net
fromuser=MyNumber
fromdomain=sphone.vopr.vonage.net
dtmfmode=inband
context=incoming
canreinvite=no
disallow=all
allow=ulaw
[authentication]
[sip1] <-- this is the SIP softphone I have, the IAX has the same name and is configured the same way
type=friend
context=phone1
host=dynamic
secret=password
And extensions.conf:
[incoming]
exten => MyNumber,1,Dial(SIP/sip1@sip1,30)
[phone1]
;outbound via Vonage
;exten => _1NXXXXXXXXX,1,Dial(SIP/${EXTEN:11}@vonageout,60)
exten => _1NXXXXXXXXX,1,Dial(SIP/(I just have it dial my cell phone)@vonageout,30)
exten => _1NXXXXXNXXX,2,Congestion