<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hello,</p>
<p>in which moment Asterisk leave to qualify the realtime endpoint?
When you restart Asterisk?</p>
<p>On my asterisk 13.9.1, qualify on realtime endpoints works
correctly. My sorcery.conf:</p>
<p>[res_pjsip]<br>
endpoint=realtime,ps_endpoints<br>
endpoint=config,pjsip.conf,criteria=type=endpoint<br>
auth=realtime,ps_auths<br>
auth=config,pjsip.conf,criteria=type=auth<br>
aor=realtime,ps_aors<br>
aor=config,pjsip.conf,criteria=type=aor<br>
domain_alias=realtime,ps_domain_aliases<br>
domain_alias=config,pjsip.conf,criteria=type=domain_alias<br>
contact=realtime,ps_contacts<br>
contact=config,pjsip.conf,criteria=type=contact<br>
<br>
[res_pjsip_endpoint_identifier_ip]<br>
identify=realtime,ps_endpoint_id_ips<br>
identify=config,pjsip.conf,criteria=type=identify</p>
<p>Regards<br>
</p>
<br>
<div class="moz-cite-prefix">El 13/06/2016 a las 14:16, Francisco
Valentin Vinagrero escribió:<br>
</div>
<blockquote
cite="mid:D344618A4B7B0F4ABA8047A07E92D474017E0EBB7E@CERNXCHG52.cern.ch"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<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]-->
<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
style="color:windowtext;mso-fareast-language:EN-GB"
lang="EN-US">From:</span></b><span
style="color:windowtext;mso-fareast-language:EN-GB"
lang="EN-US"> <a class="moz-txt-link-abbreviated" href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a>
[<a class="moz-txt-link-freetext" href="mailto:asterisk-users-bounces@lists.digium.com">mailto:asterisk-users-bounces@lists.digium.com</a>]
<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 <a class="moz-txt-link-rfc2396E" href="mailto:asterisk-users@lists.digium.com"><asterisk-users@lists.digium.com></a><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
moz-do-not-send="true" href="sip:myurl:5060"><a class="moz-txt-link-freetext" href="sip:myurl:5060">sip:myurl:5060</a></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 moz-do-not-send="true" 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
style="font-family:Consolas" lang="FR">default_expiration
:
3600
</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span
style="font-family:Consolas" lang="FR"> mailboxes
:
</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span
style="font-family:Consolas" lang="FR"> max_contacts
:
0
</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span
style="font-family:Consolas" lang="FR"> </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 moz-do-not-send="true" 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
moz-do-not-send="true" href="sip:myurl:5060"><a class="moz-txt-link-freetext" href="sip:myurl:5060">sip:myurl:5060</a></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
moz-do-not-send="true" href="sip:myurl.ch:5060"><a class="moz-txt-link-freetext" href="sip:myurl.ch:5060">sip:myurl.ch:5060</a></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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
</blockquote>
<br>
</body>
</html>