<div dir="ltr">You could do a mid_registrar_lookup on your route for traffic from the PBX and if it fails drop the response. <br></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Sep 12, 2018 at 8:38 AM Dominic <<a href="mailto:wallnut.monkeys@gmail.com">wallnut.monkeys@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div>i think I may have figured it out, OpenSIPS is behaving properly (it sends the unregister after expiery) I haden't seen it initially in the asterisk CLI. However the issue is that it looks like asterisk continues to send it's SIP OPTIONS to that peer and OpenSIPS replies 404 not found and then asterisk thinks that peer is still "alive" because he received a response, therefore I still si that peer in the list show peers list. Here is what I see in the asterisk CLI:</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>[Sep 12 11:16:05] -- Unregistered SIP 'jit000106258' <span style="color:rgb(255,0,0)"><=== OpenSips sends unregister after exiery</span><br>[Sep 12 11:16:07] NOTICE[16484]: chan_sip.c:23898 handle_response_peerpoke: Peer 'jit000106258' is now Reachable. (2ms / 5000ms) <span style="background-color:rgb(255,255,255)"> <span style="color:rgb(255,0,0)"><== asterisk sends 404 in reply to SIP OPTION</span></span><br>sipdev1-mtl*CLI> sip show peers<br>Name/username Host Dyn Forcerport Comedia ACL Port Status Description Realtime<br>jit000106258/jit000106258 64.254.249.190 D Yes Yes A 5060 OK (2 ms) Cached RT<br>...<br></div></blockquote><div><br></div><div><br></div><div>Sorry for the initial email, I had not looked properly on my end before submitting.<br></div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Sep 12, 2018 at 9:58 AM Liviu Chircu <<a href="mailto:liviu@opensips.org" target="_blank">liviu@opensips.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<p><tt>Hi Dominic,</tt></p>
<p><tt>This should be working -- are you able to reproduce this
problem? Also, any setup details (binary version, mid-registrar
modparams, SIP traces) would be of great help.</tt></p>
<p><tt>Best regards,</tt><br>
</p>
<pre class="m_-3008187127238751331m_6560881595927802561moz-signature" cols="72">Liviu Chircu
OpenSIPS Developer
<a class="m_-3008187127238751331m_6560881595927802561moz-txt-link-freetext" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
<div class="m_-3008187127238751331m_6560881595927802561moz-cite-prefix">On 12.09.2018 16:52, Dominic wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>Hi, I setup OpenSIPs as a mid_registrar in contact
throttling mode, in front of an asterisk server. Everything is
working fine so far exept that I would like for when an entry
in usrloc expires on the OpenSIPS, that an unregister is sent
to the Asterisk. Right now, I see the sip device registered on
the asterisk (sip show peers) but it is expired on OpenSIPS
(opensipsctl ul show). Could anyone point me in the right
direction?</div>
<div><br>
</div>
<div>Thanks</div>
<div>Dominic<br>
</div>
</div>
<br>
<fieldset class="m_-3008187127238751331m_6560881595927802561mimeAttachmentHeader"></fieldset>
<br>
<pre>_______________________________________________
Users mailing list
<a class="m_-3008187127238751331m_6560881595927802561moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a class="m_-3008187127238751331m_6560881595927802561moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects.<br>---Heinlein</div>