How to set qualifyfreqok for IAX2 devices

bc3011

New Member
Joined
Apr 26, 2011
Messages
3
Reaction score
0
I am trying to get qualifyfreqok set for iax2 devices that I create via the pbx in a flash gui. The gui doesn't have an option to set the qualifyfreqok or add custom settings when I create or modify an iax device. I need the frequency of the check to be less than the default of 60 seconds.

If I edit iax_addtional.conf by hand to add qualifyfreqok=20000 to the device config and reload, I see the server send a check out every 20 seconds. The problem is once I make any changes via the gui the config is naturally rewritten and I lose the option.

Is there away to define the qualifyfreqok option either globally or can I can put option in another file that isn't written out by pbx in a flash and associate it with a device? I don't want to lose the management of the devices via the gui by creating them in another config and just including it. Any ideas?
 
Standard questions:

What version of Piaf are you using?

What version of FreePBX are you running?

If you want faster help, follow these guidelines...
 
Last edited by a moderator:
Isn't there a IAX2 protocol module for FreePBX 2.8? This is not the IX2 extension configuration.
 
Thanks lgaetz for helping that dim little light turn on in my tiny brain. If i would have properly read all of the iax.conf file before i would have noticed this greatly useful piece of info at the very bottom of the file.

;iax_custom_post.conf will allow you to modify FreePBX generated IAX setups so
;that you can add additional parameters to a auto-generated setup.
;if you have a auto-generated context of [foobar] and need to add a parameter
;to it then create this line [foobar](+) and place your additions on the next line
;
#include iax_custom_post.conf

So in my auto generated iax_addtional.conf file i have this.

[9000]
deny=0.0.0.0/0.0.0.0
secret=giggity02
transfer=no
context=from-internal
host=dynamic
type=friend
port=4569
qualify=yes
dial=IAX2/9000
mailbox=9000@device
permit=0.0.0.0/0.0.0.0
callerid=device <9000>
setvar=REALCALLERIDNUM=9000


In my iax_custom_post.conf is

[9000](+)
qualifyfreqok=20000

I tried putting it in the iax_custom.conf file but I guess since its included before iax_addtional.conf it either tries to add something to a nonexistent context or is overwritten by iax_addtional.conf

Now my system is sending out checks every 20 seconds and keeping the session open through our firewall and not getting overwritten anytime a change is made.
 

Members online

No members online now.

Forum statistics

Threads
26,687
Messages
174,411
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top