Page 1 of 1
Asterisk configuration
Posted: 03/21/2013
by evilmonkey
Hi everyone,
Every couple of years or so I like to ask the gurus that lurk this forum about the optimal asterisk configuration. I have asterisk set up and it works, but I'm wondering if there's anything I can do to make bolder/better/faster/stronger. This is my configuration today:
Code: Select all
username=1##########
type=friend
trustrpid=yes
sendrpid=yes
secret=[hidden]
qualify=yes
nat=yes
insecure=port,invite
host=voip.freephoneline.ca
dtmfmode=auto
context=from-pstn
canreinvite=nonat
disallow=all
allow=ulaw&g729&g722&gsm
register string: 1##########:[hidden]@voip.freephoneline.ca/1##########
Thanks!
Re: Asterisk configuration
Posted: 03/25/2013
by abuzuhair
I tried it but when u reload the sip u get the following error
[Mar 25 20:05:09] WARNING[1888]: sip/config_parser.c:812 sip_parse_nat_option: nat=yes is deprecated, use nat=force_rport,comedia instead
the ping time also goes high all of a sudden and then drop low
[Mar 25 20:10:14] NOTICE[1888]: chan_sip.c:23248 handle_response_peerpoke: Peer 'FPL' is now Lagged. (2027ms / 2000ms)
[Mar 25 20:10:24] NOTICE[1888]: chan_sip.c:23248 handle_response_peerpoke: Peer 'FPL' is now Reachable. (26ms / 2000ms)
I wonder if it is from my server or FPL server
Re: Asterisk configuration
Posted: 03/25/2013
by Jake
The voip.freephoneline.ca server has been giving me lagged messages for quite a while now. Change it to voip2.freephoneline.ca and I am sure you will find it much better.
My trunk peer details are
Code: Select all
username=161336XXXXX
type=friend
secret=SECRET
qualify=yes
insecure=invite
host=voip2.freephoneline.ca
context=from-trunk
Which seems to work for me OK.
Re: Asterisk configuration
Posted: 03/26/2013
by abuzuhair
yeah I guess voip2.freephoneline.ca is much more stable
Thanks Jake
Re: Asterisk configuration
Posted: 03/27/2013
by evilmonkey
Thanks for the tip on voip2. Does the rest of the config look okay?
Re: Asterisk configuration
Posted: 03/28/2013
by Fongo Support
evilmonkey wrote:Thanks for the tip on voip2. Does the rest of the config look okay?
Hi there,
Please set qualify=no
Thanks,
Re: Asterisk configuration
Posted: 03/28/2013
by evilmonkey
Done. Are you worried about the bit of bandwidth used to reply to OPTIONS message?
Re: Asterisk configuration
Posted: 03/28/2013
by Fongo Support
evilmonkey wrote:Done. Are you worried about the bit of bandwidth used to reply to OPTIONS message?
Hi,
No i am not worried. This is how I configure it myself since this is a trunk.
If it was an extension, I will change to yes.
It is common for trunks to be setup this way.
Thanks,
Re: Asterisk configuration
Posted: 03/29/2013
by djsticky
Guys, where do you enter this on a Trixbox?
In the trunk settings I have the following:
-----------------------------
Outgoing Settings
Trunk Name:
PEER Details:
Incoming Settings
USER Context:
USER Details:
Registration
Register String:
-----------------------------
Do I enter the same thing for both outgoing and incoming?
Re: Asterisk configuration
Posted: 03/29/2013
by Jake
djsticky wrote:Guys, where do you enter this on a Trixbox?
In the trunk settings I have the following:
-----------------------------
Outgoing Settings
Trunk Name:
PEER Details:
Incoming Settings
USER Context:
USER Details:
Registration
Register String:
-----------------------------
Do I enter the same thing for both outgoing and incoming?
You only need something in the outgoing and registration boxes. You can see what is in my trunk peer in a post above, although Fongo Support has suggested to change qualify to no instead of yes.
Foe the registration string you just need something like this.
Code: Select all
161336XXXXX:PASSWORD@voip2.freephoneline.ca/
Some people put their phone number on the end of that string, but I don't and it works just fine.
Re: Asterisk configuration
Posted: 03/30/2013
by evilmonkey
Fongo Support wrote:evilmonkey wrote:Done. Are you worried about the bit of bandwidth used to reply to OPTIONS message?
Hi,
No i am not worried. This is how I configure it myself since this is a trunk.
If it was an extension, I will change to yes.
It is common for trunks to be setup this way.
Thanks,
OK, thanks!
Jake wrote:djsticky wrote:Guys, where do you enter this on a Trixbox?
In the trunk settings I have the following:
-----------------------------
Outgoing Settings
Trunk Name:
PEER Details:
Incoming Settings
USER Context:
USER Details:
Registration
Register String:
-----------------------------
Do I enter the same thing for both outgoing and incoming?
You only need something in the outgoing and registration boxes. You can see what is in my trunk peer in a post above, although Fongo Support has suggested to change qualify to no instead of yes.
Foe the registration string you just need something like this.
Code: Select all
161336XXXXX:PASSWORD@voip2.freephoneline.ca/
Some people put their phone number on the end of that string, but I don't and it works just fine.
What Jake said.
My incoming settings USER details box is empty, although I did set the USER context to my freephoneline phone number (1##########). Not sure if this is right, but it works.
Re: Asterisk configuration
Posted: 02/24/2016
by boipie01
Does all this setting still work in 2016?
I can receive call on my asterisk, but each time i try to call an external number i get a voice saying "That password is not valid." then it hangup.
Re: Asterisk configuration
Posted: 02/26/2016
by Mango
Keep in mind the password is specified in two different places, one for incoming calls and one for outgoing.