<div dir="ltr">I have tried to configure SIP through SIREMIS. Could you please share some documents for this. I want y SIP endpoint to join in the Jitsi Conference room. Please guide me.<div><br></div><div>Thanks and regards,</div><div>Santanu</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 13, 2020 at 5:31 PM Henning Westerholt <<a href="mailto:hw@skalatan.de">hw@skalatan.de</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 lang="DE" style="overflow-wrap: break-word;">
<div class="gmail-m_3882762008003059101WordSection1">
<p class="MsoNormal"><span>Hello,<u></u><u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">have a look to the transformations for URIs:
<a href="https://www.kamailio.org/wiki/cookbooks/devel/transformations#uri_transformations" target="_blank">
https://www.kamailio.org/wiki/cookbooks/devel/transformations#uri_transformations</a><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">There is one to get parameters as well.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">$shm variables are shared in shared memory, so you can share them in other calls. The $avp/$xavp are shared between processes, but belongs to the SIP transaction.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">About routing calls by prefix – have a look to the lcr, carrierroute or drouting modules, for example.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Cheers,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Henning<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">-- <u></u>
<u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Henning Westerholt –
</span><span><a href="https://skalatan.de/blog/" target="_blank"><span lang="EN-GB" style="color:rgb(5,99,193)">https://skalatan.de/blog/</span></a></span><span lang="EN-GB"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Kamailio services –
</span><span><a href="https://gilawa.com/" target="_blank"><span lang="EN-GB" style="color:rgb(5,99,193)">https://gilawa.com</span></a></span><span>
<span lang="EN-GB"><u></u><u></u></span></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0cm 0cm">
<p class="MsoNormal" style="margin-left:35.4pt"><b>From:</b> sr-users <<a href="mailto:sr-users-bounces@lists.kamailio.org" target="_blank">sr-users-bounces@lists.kamailio.org</a>>
<b>On Behalf Of </b>sai sudheer<br>
<b>Sent:</b> Tuesday, October 13, 2020 12:44 PM<br>
<b>To:</b> <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>; <a href="mailto:sr-dev@lists.kamailio.org" target="_blank">sr-dev@lists.kamailio.org</a><br>
<b>Subject:</b> [SR-Users] how to get a value from SIP INVITE Header<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-left:35.4pt"><u></u> <u></u></p>
<blockquote style="margin-left:0cm;margin-right:0cm;margin-bottom:15pt">
<div style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(109,0,246);padding:0cm 0cm 0cm 15pt;margin-top:7.5pt">
<div id="gmail-m_3882762008003059101yMail_cursorElementTracker_1602585772493">
<p class="MsoNormal" style="margin-left:35.4pt">Hii<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">Please help me to get the a value from SIP INVITE header reached to kamailio like INVITE sip:+<a href="mailto:341930203454@sub.domain.com" target="_blank">341930203454@sub.domain.com</a>;myid=+<a href="mailto:34@sub.domain.com" target="_blank">34@sub.domain.com</a>
 SIP/2.0 and i want to save the myid value +34 into a variable, without the domain name.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">     $var(uri) = $sel(ruri);<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">     xavp_params_explode("$(var(uri){s.unbracket})", "uri");<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">     xlog("L_INFO", "$var(uri) Received converted to $xavp(uri=>myid[0])\n");<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">I tried above and it prints +<a href="mailto:34@sub.domain.com" target="_blank">34@sub.domain.com</a> But i want to just save +34 into a variable to further check the prefix based routing from the database.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">1) Could you please help how to get it or If there is any alternate/single line approach to get this value?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">2) $var & $xavp are process-local variables, and they cant be shared with other calls? Right<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">3) What is the best module to route calls based their prefix ? pstn_route or dynamic routing or any suggestions?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">Please help, thanks in advance.<u></u><u></u></p>
</div>
</div>
</blockquote>
</div>
</div>

_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>