<div dir="ltr">Hello,<div><br></div><div>Thank you for the help.</div><div><br></div><div>I was reading documentation and it did not mention REPLY ROUTE has access to unregister().</div><div><br></div><div>I was able to use it and that solved the problem.</div><div><br></div><div>Thank you.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 25, 2022 at 5:18 PM Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>> wrote:<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>
    <p>Hello,</p>
    <p>at least in v5.5.x, the unregister() is exported for use in any
      route block.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div>On 25.04.22 13:08, Linux Vince wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">
        <div dir="ltr">
          <div>I forgot to add URL in previous email</div>
          <div><br>
          </div>
          <div><a href="https://lists.kamailio.org/pipermail/sr-users/2020-October/110782.html" target="_blank">https://lists.kamailio.org/pipermail/sr-users/2020-October/110782.html</a><br>
          </div>
          <div><br>
          </div>
          <div><br>
          </div>
          <br>
          <div class="gmail_quote">
            <div dir="ltr" class="gmail_attr">On Mon, Apr 25, 2022 at
              4:34 PM Linux Vince <<a href="mailto:linuxv@gmail.com" target="_blank">linuxv@gmail.com</a>>
              wrote:<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 dir="ltr">
                <div dir="ltr">Hello,
                  <div><br>
                  </div>
                  <div>I am trying to implement scenario described in
                    this thread by Daniel-Constantin Mierla.</div>
                  <div><br>
                  </div>
                  <div>I am able to cache registration using save but i
                    am not able to handle unregistration.</div>
                  <div><br>
                  </div>
                  <div>Unregister function of registrar module is not
                    available in onreply routes and I cannot unregister
                    until upstream registrar returns 200 OK on Expire 0
                    message.</div>
                  <div><br>
                  </div>
                  <div>Is there any workaround to fix this?</div>
                  <div><br>
                  </div>
                  <div>Thanks,</div>
                </div>
              </div>
            </blockquote>
          </div>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <pre>__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
  * <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
  * <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <pre cols="72">-- 
Daniel-Constantin Mierla -- <a href="http://www.asipto.com" target="_blank">www.asipto.com</a>
<a href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - Online
  * <a href="https://www.asipto.com/sw/kamailio-advanced-training-online/" target="_blank">https://www.asipto.com/sw/kamailio-advanced-training-online/</a></pre>
  </div>

</blockquote></div>