Pls help!
How do I increase aor qualify_timeout from 3.0 (default) to 6.0 in freepbx 16.0.40.11?
This sounds like fixing the symptom, rather than the cause. If you are hitting this limit, speech quality is likely to be unacceptable.
Welcome to the forum!
As far as I know, this param is not settable in the GUI. You can adjust it by locating the relevant section in /etc/asterisk/pjsip.aor.conf
and then adding this in pjsip_custom_post.conf
[4003](+type=aor)
qualify_timeout=6.0
I have tryed same method by terminal and nano.
[4003](+type=aor)
qualify_timeout=6.0
it gives an error when reloading.
david55
This sounds like fixing the symptom, rather than the cause. If you are hitting this limit, speech quality is likely to be unacceptable.
Maybe so, I would like to try it as the first step))).
Please mark up your logs, and configuration files as pre-formatted text, so they don’t get mangled by the forum.
The documentation I’ve seen says the value is milliseconds. Whilst you should have told us the exact error message, my guess is that the “.” is causing a syntax error.
In my view, if it takes more than 100ms to get back a response, you need to fix the network. You should really be aiming for less than 50ms.
I can confirm that the method I outlined above does work
pjsip show aor 4003
Aor: <Aor..............................................> <MaxContact>
Contact: <Aor/ContactUri............................> <Hash....> <Status> <RTT(ms)..>
==========================================================================================
Aor: 4003 3
Contact: 4003/sip:[email protected]:7910;x-ast-orig- 930af048a9 Avail 41.419
ParameterName : ParameterValue
======================================================================================
authenticate_qualify : false
contact : sip:[email protected]:7910;x-ast-orig-host=192.168.98.131:7910
default_expiration : 3600
mailboxes : 4003@default
max_contacts : 3
maximum_expiration : 7200
minimum_expiration : 60
outbound_proxy :
qualify_frequency : 60
qualify_timeout : 6.000000 <-- *************************
remove_existing : true
remove_unavailable : false
support_path : false
voicemail_extension :
Problem
1072 [2024-11-27 10:43:13] VERBOSE[25149] res_pjsip_registrar.c: Removed contact 'sip:[email protected]:3151;x-ast-orig-host=7.123.36.43:56005' from AOR '310301192' due to remove existing
1073 [2024-11-27 10:43:13] VERBOSE[11699] res_pjsip/pjsip_options.c: Contact 310301192/sip:[email protected]:3151;x-ast-orig-host=7.123.36.43:56005 has been deleted
1074 [2024-11-27 10:43:13] VERBOSE[9881] res_pjsip/pjsip_options.c: Contact 310301192/sip:[email protected]:45779;x-ast-orig-host=7.123.36.43:56005 is now Reachable. RTT: 90.568 msec
1075 [2024-11-27 10:44:16] VERBOSE[25149] res_pjsip/pjsip_options.c: Contact 310301192/sip:[email protected]:45779;x-ast-orig-host=7.123.36.43:56005 is now Unreachable. RTT: 0.000 msec
1076 [2024-11-27 11:43:15] VERBOSE[9881] res_pjsip/pjsip_options.c: Contact 310301192/sip:[email protected]:45779;x-ast-orig-host=7.123.36.43:56005 has been deleted
What is the name of such a file of freepbx and where is it located?
There is an hour after the unreachable. That suggests to me that connectivity has become permanently blocked. Maybe you are using an ISP that gratuitously changes IP addresses, or maybe the remote side is using a router with dynamic NAT and/or firewall rules. It is often possible to work round dynamic rule timeouts by increasing the frequency of registration or qualify attempts.
My guess, in this case, is that the registration temporarily opens up the router at the far end, but that times out after a minute, or less, and doesn’t re-open until the remote side next tries to register. One needs to be very aggressive with qualify or register to cope with a 60 second (or less) timeout, so it is advisable to increase the timeout, use static rules, on the remote end router, if that is the case.
(I though you were saying that the logs showed an error when parsing the .conf file.)
I’m not sure about that.
11 [2024-11-27 05:45:47] VERBOSE[11699] res_pjsip_registrar.c: Added contact 'sip:[email protected]:42349;x-ast-orig-host=7.113.36.43:56005' to AOR '310301' with expiration of 3600 seconds
12 [2024-11-27 05:45:47] VERBOSE[11699] res_pjsip_registrar.c: Removed contact 'sip:[email protected]:60561;x-ast-orig-host=7.113.36.43:56005' from AOR '310301' due to remove existing
13 [2024-11-27 05:45:47] VERBOSE[11699] res_pjsip/pjsip_options.c: Contact 310301/sip:[email protected]:60561;x-ast-orig-host=7.113.36.43:56005 has been deleted
14 [2024-11-27 05:45:47] VERBOSE[11699] res_pjsip/pjsip_options.c: Contact 310301/sip:[email protected]:42349;x-ast-orig-host=7.113.36.43:56005 is now Reachable. RTT: 94.862 msec
15 [2024-11-27 05:46:50] VERBOSE[11699] res_pjsip/pjsip_options.c: Contact 310301/sip:[email protected]:42349;x-ast-orig-host=7.113.36.43:56005 is now Unreachable. RTT: 0.000 msec
16 [2024-11-27 06:45:16] VERBOSE[25149] res_pjsip_registrar.c: Added contact 'sip:[email protected]:3865;x-ast-orig-host=7.113.36.43:56005' to AOR '310301' with expiration of 3600 seconds
17 [2024-11-27 06:45:16] VERBOSE[25149] res_pjsip_registrar.c: Removed contact 'sip:[email protected]:42349;x-ast-orig-host=7.113.36.43:56005' from AOR '310301' due to remove existing
18 [2024-11-27 06:45:16] VERBOSE[25149] res_pjsip/pjsip_options.c: Contact 310301/sip:[email protected]:42349;x-ast-orig-host=7.113.36.43:56005 has been deleted
19 [2024-11-27 06:45:17] VERBOSE[25149] res_pjsip/pjsip_options.c: Contact 310301/sip:[email protected]:3865;x-ast-orig-host=7.113.36.43:56005 is now Reachable. RTT: 87.578 msec
20 [2024-11-27 06:46:19] VERBOSE[25149] res_pjsip/pjsip_options.c: Contact 310301/sip:[email protected]:3865;x-ast-orig-host=7.113.36.43:56005 is now Unreachable. RTT: 0.000 msec
This is a NAT/firewall issue where the phone is. Increasing the timeout value will just take longer for it to fail.
It was a regional city, distance 1400 km. One provider inet is good, several with problems. I am trying to decide problems.