<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 03 Nov 2015, at 11:29, Marino Mileti <<a href="mailto:marino.mileti@alice.it" class="">marino.mileti@alice.it</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="WordSection1" style="page: WordSection1; font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-GB" class="">I would like to avoid multiple registration with the same AOR...<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-GB" class="">I know that there's a parameter for this (max_contacts) but if I set it to 1, all REGISTER overwrite location info.<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-GB" class=""> </span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-GB" class="">Instead i would like to reply with error if a REGISTER arrive with the same AOR just registered on location server.<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-GB" class=""> </span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-GB" class="">Is that possible? Any help is appreciated<span class="Apple-converted-space"> </span></span><span lang="EN-GB" style="font-family: Wingdings;" class="">J</span><span lang="EN-GB" class=""><o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-GB" class=""> </span></div></div></div></blockquote>A simple glance at the documentation page for the REGISTRAR shows me a function called “registred”.</div><div><a href="http://kamailio.org/docs/modules/4.3.x/modules/registrar.html#registrar.f.registered" class="">http://kamailio.org/docs/modules/4.3.x/modules/registrar.html#registrar.f.registered</a></div><div><br class=""></div><div style="text-align: justify;">"<span style="font-family: Helvetica, Arial; font-size: 12px; text-align: justify; background-color: rgb(255, 255, 255);" class="">The function returns true if the AOR in the URI is registered, false otherwise.</span><span style="font-family: Helvetica, Arial; font-size: 12px; text-align: justify; background-color: rgb(255, 255, 255);" class=""> </span><font face="Helvetica, Arial" class=""><span style="font-size: 12px;" class="">“</span></font></div><div><span style="font-family: Helvetica, Arial; font-size: 12px; text-align: justify; background-color: rgb(255, 255, 255);" class=""><br class=""></span></div><div><span style="font-family: Helvetica, Arial; font-size: 12px; text-align: justify; background-color: rgb(255, 255, 255);" class="">If you use that one and refuse a registration if true, you will get exactly what you want.</span></div><div><span style="font-family: Helvetica, Arial; font-size: 12px; text-align: justify; background-color: rgb(255, 255, 255);" class=""><br class=""></span></div><div><span style="font-family: Helvetica, Arial; font-size: 12px; text-align: justify; background-color: rgb(255, 255, 255);" class="">Reading available documentation is a good thing (TM) :-)</span></div><div><span style="font-family: Helvetica, Arial; font-size: 12px; text-align: justify; background-color: rgb(255, 255, 255);" class=""><br class=""></span></div><div><span style="font-family: Helvetica, Arial; font-size: 12px; text-align: justify; background-color: rgb(255, 255, 255);" class="">Regards,</span></div><div><span style="font-family: Helvetica, Arial; font-size: 12px; text-align: justify; background-color: rgb(255, 255, 255);" class="">/Olle</span></div></body></html>