[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openser-users
Subject:    [SR-Users] custom mid registrar using kamailio.
From:       Yuriy Nasida <ynasida () gmail ! com>
Date:       2023-05-26 23:40:11
Message-ID: CADihe3KBM2dUUkKCGSFA2TGHFDxekZD3NB7M_uxpPRnk_=i5TQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hello,

https://lists.kamailio.org/pipermail/sr-users/2020-October/110792.html

I read this thread very carefully and I think I managed to implement all
the steps described by Daniel. Thank you so much for the detailed
description.

But it looks like I'm stuck on the last step. I can't delete records from
htable when an incoming call cannot reach the registered device (e.g., no
more internet access, power off at the device). I try to do this from
failure route but looks like i kamailio has not access to htable from it.

failure_route[INTERNAL_TO_EXTERNAL_FAILURE] {
  if (t_check_status("408")) {
  xlog("L_WARN", "$ci|log| hello \n");
  xlog("L_WARN", "$ci|log| mid reg token -
$sht(mid_reg_token=>$fU::$si::$sp) \n");
   }
}

I do not see xlog message with mid reg token but i see 'hello'.
Yes, htable record exists in case i check using:
kamcmd htable.dump mid_reg_token

Also I need a way to remove registration at the registrar (Freeswitch in my
case). This means I need to send api request from kamailio or just run some
script that will do this. What is the best way ? module exec ?

Please advice,
Thanks

[Attachment #5 (text/html)]

<div dir="ltr">Hello,  <div><br></div><div><a \
href="https://lists.kamailio.org/pipermail/sr-users/2020-October/110792.html">https:// \
lists.kamailio.org/pipermail/sr-users/2020-October/110792.html</a><br></div><div><br></div><div>I \
read this thread very carefully and I think I managed to implement all the steps \
described by Daniel. Thank you so much for the detailed \
description.<br></div><div><br></div><div><div>But it looks like I&#39;m stuck on the \
last step. I can&#39;t delete records from htable when an incoming call cannot reach \
the registered device  <span style="color:rgb(0,0,0);white-space:pre-wrap">(e.g., no \
more internet access, power off at the device).  I try to do this from failure route \
but looks like i kamailio has not access to htable from \
it.</span><br></div></div><div><span \
style="color:rgb(0,0,0);white-space:pre-wrap"><br></span></div><div>failure_route[INTERNAL_TO_EXTERNAL_FAILURE] \
{<br>   if (t_check_status(&quot;408&quot;)) {</div><div>   xlog(&quot;L_WARN&quot;, \
&quot;$ci|log| hello \n&quot;);<br></div><div>   xlog(&quot;L_WARN&quot;, \
&quot;$ci|log| mid reg token - $sht(mid_reg_token=&gt;$fU::$si::$sp) \n&quot;);<br>   \
}<br>}<br><br></div><div>I do not see xlog message with mid reg token but i see  \
&#39;hello&#39;.</div><div>Yes, htable record exists in case i check using:<br>kamcmd \
htable.dump mid_reg_token<br></div><div><span \
style="color:rgb(0,0,0);white-space:pre-wrap"><br></span></div><div><span \
style="color:rgb(0,0,0);white-space:pre-wrap">Also I need a way to remove \
registration at the registrar (Freeswitch in my case). This means I need to send api \
request from kamailio or just run some script that will do this. What is the best way \
? module exec ?</span></div><div><span \
style="color:rgb(0,0,0);white-space:pre-wrap"><br></span></div><div><span \
style="color:rgb(0,0,0);white-space:pre-wrap">Please advice,</span></div><div><span \
style="color:rgb(0,0,0);white-space:pre-wrap">Thanks</span></div></div>



__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-leave@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic