<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
color:black;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
color:black;
mso-fareast-language:EN-US;}
span.EmailStyle18
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.EmailStyle19
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:#1F497D;}
span.EmailStyle20
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="EN-GB" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Yes, we’re implementing the dialplan in realtime too.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Here the contents of sorcery.conf:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:Consolas;color:#1F497D">[res_pjsip]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:Consolas;color:#1F497D">endpoint=realtime,ps_endpoints<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:Consolas;color:#1F497D">aor=realtime,ps_aors<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:Consolas;color:#1F497D">contact=realtime,ps_contacts<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:Consolas;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:Consolas;color:#1F497D">[res_pjsip_endpoint_identifier_ip]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:Consolas;color:#1F497D">identify=realtime,ps_endpoint_id_ips<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:Consolas;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:Consolas;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:Consolas;color:#1F497D">Cheers, Francisco.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="color:windowtext;mso-fareast-language:EN-GB">From:</span></b><span lang="EN-US" style="color:windowtext;mso-fareast-language:EN-GB"> asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com]
<b>On Behalf Of </b>Annus Fictus<br>
<b>Sent:</b> 13 June 2016 14:11<br>
<b>To:</b> Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users@lists.digium.com><br>
<b>Subject:</b> Re: [asterisk-users] PJSIP does not qualify contacts after starting Asterisk<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p>Hello Francisco,<span style="font-size:12.0pt;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
<p>you have to use:<o:p></o:p></p>
<p><span style="font-family:Consolas">extensions => odbc,asterisk</span><o:p></o:p></p>
<p><span style="font-family:Consolas">only if you want use dialplan in Realtime</span><o:p></o:p></p>
<p>can you share your sorcery.conf file?<o:p></o:p></p>
<p>Regards<o:p></o:p></p>
<div>
<p class="MsoNormal">El 13/06/2016 a las 10:21, Francisco Valentin Vinagrero escribió:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span lang="ES">Hi all,</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">(sending this again from the correct address)</span><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">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.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">I’ve defined several aors in the table ps_aors, like this (real url replaced by myurl):<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas">*CLI> pjsip show aor pbx-node-1
</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas"> </span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas"> Aor: <Aor..............................................> <MaxContact>
</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas"> Contact: <Aor/ContactUri............................> <Hash....> <Status> <RTT(ms)..>
</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas"> =========================================================================================
</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas"> </span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas"> Aor: pbx-node-1 0
</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas"> Contact: pbx-node-1/<a href="sip:myurl:5060">sip:myurl:5060</a> 771bf6a7d4 Created 0.000
</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas"> </span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas"> </span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas"> ParameterName : ParameterValue
</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas"> ===================================================
</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas"> authenticate_qualify : false
</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas"> contact :
<a href="sip:myurl:5060">sip:myurl:5060</a> </span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas"> </span><span lang="FR" style="font-family:Consolas">default_expiration : 3600
</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="FR" style="font-family:Consolas"> mailboxes :
</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="FR" style="font-family:Consolas"> max_contacts : 0
</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="FR" style="font-family:Consolas"> </span><span style="font-family:Consolas">maximum_expiration : 7200
</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas"> minimum_expiration : 60 </span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas"> outbound_proxy :
<a href="sip:myurl:5060">sip:myurl:5060</a>
</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas"> qualify_frequency : 30
</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas"> qualify_timeout : 3.000000 </span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas"> remove_existing : false
</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas"> support_path : false
</span><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">So I think that those aors should be qualified automatically when I run Asterisk, but if I do “<i>pjsip show contacts”</i>, I get that it was just Created but not qualified:<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas">*CLI> pjsip show contacts</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas"> </span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas"> Contact: <Aor/ContactUri..............................> <Hash....> <Status> <RTT(ms)..></span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas">=========================================================================================</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas"> Contact: pbx-node-1/<a href="sip:myurl:5060">sip:myurl:5060</a> 771bf6a7d4 Created 0.000</span><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">And not a single OPTIONS message if I take a trace…<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">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:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"> <o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas">*CLI> pjsip show contacts</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas"> </span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas"> Contact: <Aor/ContactUri..............................> <Hash....> <Status> <RTT(ms)..></span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas">=========================================================================================</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas"> Contact: pbx-node-1/<a href="sip:myurl.ch:5060">sip:myurl.ch:5060</a> 771bf6a7d4 Avail 8.833</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:Consolas"> </span><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">The extconfig.conf file looks like this:<o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:Consolas"> </span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas">[settings]</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas">ps_endpoints => odbc,asterisk</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas">ps_auths => odbc,asterisk</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas">ps_aors => odbc,asterisk</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas">ps_domain_aliases => odbc,asterisk</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas">ps_endpoint_id_ips => odbc,asterisk</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas">ps_contacts => odbc,asterisk</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-family:Consolas">extensions => odbc,asterisk</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:Consolas"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:Consolas"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:Consolas"> </span><o:p></o:p></p>
<p class="MsoNormal">Any idea why I need to reload PJSIP if I want the aors to be qualified?<o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:Consolas"> </span><o:p></o:p></p>
<p class="MsoNormal">Cheers, Francisco.<o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:Consolas"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:Consolas"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-GB"><br>
<br>
<o:p></o:p></span></p>
</blockquote>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
</div>
</body>
</html>