[asterisk-users] PJSIP does not qualify contacts after starting Asterisk

Francisco Valentin Vinagrero francisco.valentin.vinagrero at cern.ch
Mon Jun 13 03:21:02 CDT 2016


Hi all,
(sending this again from the correct address)

I'm running Asterisk 13.8.0 (I need to check if that happens with 13.9.1 too when I have the time to build it) with PJSIP realtime config.

I've defined several aors in the table ps_aors, like this (real url replaced by myurl):

*CLI> pjsip show aor pbx-node-1

      Aor:  <Aor..............................................>  <MaxContact>
    Contact:  <Aor/ContactUri............................> <Hash....> <Status> <RTT(ms)..>
 =========================================================================================

      Aor:  pbx-node-1                                           0
    Contact:  pbx-node-1/sip:myurl:5060      771bf6a7d4 Created       0.000


 ParameterName        : ParameterValue
 ===================================================
 authenticate_qualify : false
 contact              : sip:myurl:5060
 default_expiration   : 3600
 mailboxes            :
 max_contacts         : 0
 maximum_expiration   : 7200
 minimum_expiration   : 60
 outbound_proxy       : sip:myurl:5060
 qualify_frequency    : 30
 qualify_timeout      : 3.000000
 remove_existing      : false
 support_path         : false



So I think that those aors should be qualified automatically when I run Asterisk, but if I do "pjsip show contacts", I get that it was just Created but not qualified:


*CLI> pjsip show contacts

  Contact:  <Aor/ContactUri..............................> <Hash....> <Status> <RTT(ms)..>
=========================================================================================
  Contact:  pbx-node-1/sip:myurl:5060        771bf6a7d4 Created       0.000


And not a single OPTIONS message if I take a trace...


If I want Asterisk to start sending OPTIONS, I need to do pjsip reload and after that, they are qualified and their status changes dynamically:

*CLI> pjsip show contacts

  Contact:  <Aor/ContactUri..............................> <Hash....> <Status> <RTT(ms)..>
=========================================================================================
  Contact:  pbx-node-1/sip:myurl.ch:5060        771bf6a7d4 Avail         8.833



The extconfig.conf file looks like this:

[settings]
ps_endpoints => odbc,asterisk
ps_auths => odbc,asterisk
ps_aors => odbc,asterisk
ps_domain_aliases => odbc,asterisk
ps_endpoint_id_ips => odbc,asterisk
ps_contacts => odbc,asterisk
extensions => odbc,asterisk



Any idea why I need to reload PJSIP if I want the aors to be qualified?

Cheers, Francisco.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20160613/90c987ba/attachment.html>


More information about the asterisk-users mailing list