shock
January 14, 2007, 6:11pm
1
Hi,
I’m newbie in asterisk domain, but I have problem to create SIP trunk. First I tried to connect my SIP account with X-lite and it worked perfectly.
X-Lite configuration:
username: myusername
pass: maypassword
Auth username: myusername
Domain proxy: enable
and
Stun server: stun.myISP.net
And then I created (with asterisk-GUI) SIP trunk (of course I shut down X-Lite)
[trunk_1]
secret = mypass
provider =
trunkstyle = customvoip
username = myusername
trunkname = Custom
callerid =
hasexten = no
hassip = yes
hasiax = no
registeriax = no
registersip = yes
host = voip.myISP.net
dialformat = ${EXTEN:1}
context = DID_trunk_1
group =
insecure =
fromuser =
fromdomain =
In Asterisk CLI mode I got next error:
[Jan 14 19:00:30] NOTICE[18302]: chan_sip.c:7085 sip_reg_timeout: – Registration for 'myusername@voip.myISP.net ’ timed out, trying again (Attempt #2 )
I think the reason for this error is the fact that I didn’t enter the stun server, because I don’t know how to do that.
working example:
[trunk_1]
secret = MyPassword
provider =
trunkstyle = customvoip
username = MyName
trunkname = incoming from MyProvider
callerid =
hasexten = no
hassip = yes
hasiax = no
registeriax =
registersip = yes
host = MyProvider.com
dialformat = ${EXTEN:1}
context = incoming
group =
insecure = invite
fromuser = MyName
fromdomain = MyProvider.com
disallow=all
allow = ulaw
allow = alaw
allow = g729
nat = yes
qualify = yes
canreinvite = no
shock
January 14, 2007, 6:39pm
3
Where I put stun.myISP.net ? In fromdomain?
of course NO, because in fromdomain you should put your ‘from’ domain
There is no support for STUN yet. Forget about it for a while. Just put your provider’s proxy address and domain in the corresponding fields:
host = put the proxy address here
fromdomain = put the domain name here
shock
January 14, 2007, 6:58pm
5
AndrewZ:
I tried your solution but it didn’t work.
you may post the Asterisk debug message here or you can PM it to me keeping all the details and real names.