Asterisk settings Net2phone
This is from a working config used to call out to net2phone using their SIP server
The only trick is they restrict access to specific user agents, so you must falsify Asterisks user agent string.
I tested with above configuration and it works perfectly..............Nahid
Edit by RazaMetaL:
I've tested it with:
useragent=Cisco ATA 186 v3.1.0 atasip (040211A)
And works very well :)
The only trick is they restrict access to specific user agents, so you must falsify Asterisks user agent string.
sip.conf
[general]
useragent = X-Lite release 1103m
register => PHONENUMBER:PASSWORD@sip.net2phone.com
[net2phone]
type = peer
host = sip.net2phone.com
username = PHONENUMBER
secret = PASSWORD
fromuser = PHONENUMBER
fromdomain = net2phone.com
context = incoming
insecure = very
canreinvite = no
extensions.conf
[outgoing]
exten => _9NXXNXXXXXX,1,Dial(SIP/net2phone/${EXTEN:1})
[general]
useragent = X-Lite release 1103m
register => PHONENUMBER:PASSWORD@sip.net2phone.com
[net2phone]
type = peer
host = sip.net2phone.com
username = PHONENUMBER
secret = PASSWORD
fromuser = PHONENUMBER
fromdomain = net2phone.com
context = incoming
insecure = very
canreinvite = no
extensions.conf
[outgoing]
exten => _9NXXNXXXXXX,1,Dial(SIP/net2phone/${EXTEN:1})
I tested with above configuration and it works perfectly..............Nahid
Edit by RazaMetaL:
I've tested it with:
useragent=Cisco ATA 186 v3.1.0 atasip (040211A)
And works very well :)


Comments
333it did not function...