<div dir="ltr"><p style="MARGIN:0cm 0cm 10pt" class="MsoNormal"><font face="arial,helvetica,sans-serif">Hi,</font></p>
<p style="MARGIN:0cm 0cm 10pt" class="MsoNormal"><font face="arial,helvetica,sans-serif">The service i built in kamailio is simple - a caller dials an Access number, my gateway send it to kamailio.</font></p>
<p style="MARGIN:0cm 0cm 10pt" class="MsoNormal"><font face="arial,helvetica,sans-serif">kamailio finds the shadow number for this Access number and send an invite to the same gateway with the shadow number as destination (state full proxy).</font></p>

<p style="MARGIN:0cm 0cm 10pt" class="MsoNormal"><font face="arial,helvetica,sans-serif">In kamailio i change only the RURI and the “To” and “From” stays untouched.</font></p>
<p style="MARGIN:0cm 0cm 10pt" class="MsoNormal"><font face="arial,helvetica,sans-serif">Now, when a client performs “diversion”, I can see that I can find myself in an unwanted long loop….</font></p>
<p style="MARGIN:0cm 0cm 10pt" class="MsoNormal"><font face="arial,helvetica,sans-serif">Example :</font></p>
<p style="MARGIN:0cm 0cm 10pt" class="MsoNormal"><font face="arial,helvetica,sans-serif">A calls B</font></p>
<p style="MARGIN:0cm 0cm 10pt" class="MsoNormal"><font face="arial,helvetica,sans-serif">B diverted the call unconditionally to C.</font></p>
<p style="MARGIN:0cm 0cm 10pt" class="MsoNormal"><font face="arial,helvetica,sans-serif">C is an Access Number that its shadow number is D.</font></p>
<p style="MARGIN:0cm 0cm 10pt" class="MsoNormal"><font face="arial,helvetica,sans-serif">D diverted the call to B…….</font></p>
<p style="MARGIN:0cm 0cm 10pt" class="MsoNormal"><font face="arial,helvetica,sans-serif"> </font></p>
<p style="MARGIN:0cm 0cm 10pt" class="MsoNormal"><font face="arial,helvetica,sans-serif">Well, that is a bad loop to have!</font></p>
<p style="MARGIN:0cm 0cm 10pt" class="MsoNormal"><font face="arial,helvetica,sans-serif">It can be longer or shorter, but the idea I understood (I think).</font></p>
<p style="MARGIN:0cm 0cm 10pt" class="MsoNormal"><font face="arial,helvetica,sans-serif">I thought about diversion check, counters, dialog “To” and “From” check, etc….</font></p>
<p style="MARGIN:0cm 0cm 10pt" class="MsoNormal"><font face="arial,helvetica,sans-serif">Anyone here dealt with it? </font></p>
<p style="MARGIN:0cm 0cm 10pt" class="MsoNormal"><font face="arial,helvetica,sans-serif">What will be the best way to check and see if the situation accrues?</font></p>
<p style="MARGIN:0cm 0cm 10pt" class="MsoNormal"><font face="arial,helvetica,sans-serif">Thanks,</font></p>
<p style="MARGIN:0cm 0cm 10pt" class="MsoNormal"><font face="arial,helvetica,sans-serif">Uri</font></p></div>