<div dir="ltr"><div> </div>
<div>Hi,</div>
<div>the maxfwd will not help me prevent the loop on the first round, it would only stop it a little sooner the X times. no?</div>
<div>the dlg_var is interesting, but i didn&#39;t understand how to use it exactly. how do i match two dialogs? is the spiral detection on dialog module helps?</div>
<div>thanks,</div>
<div>Uri</div>
<div> </div>
<div>&gt;Hi Uri,<br>&gt;for that you can easily count the forwards by using the maxfwd module <br>&gt;(mf_process_maxfwd_deader &lt;your max&gt;) or you can store all your spiraled <br>&gt;calls into a dialog-variable like <br>
&gt;$dlg_var(forward-chain)=&lt;B&gt;;&lt;C&gt;|&lt;C&gt;;&lt;B&gt; and check whether the next <br>&gt;number is already stored or not.<br><br><br>Bye Sven<br><br><br>Am 20.02.2012 13:20, schrieb Uri Shacked:<br>&gt;<i><br>
</i>&gt;<i> Hi,<br></i>&gt;<i><br></i>&gt;<i> The service i built in kamailio is simple - a caller dials an Access <br></i>&gt;<i> number, my gateway send it to kamailio.<br></i>&gt;<i><br></i>&gt;<i> kamailio finds the shadow number for this Access number and send an <br>
</i>&gt;<i> invite to the same gateway with the shadow number as destination <br></i>&gt;<i> (state full proxy).<br></i>&gt;<i><br></i>&gt;<i> In kamailio i change only the RURI and the “To” and “From” stays <br></i>&gt;<i> untouched.<br>
</i>&gt;<i><br></i>&gt;<i> Now, when a client performs “diversion”, I can see that I can find <br></i>&gt;<i> myself in an unwanted long loop….<br></i>&gt;<i><br></i>&gt;<i> Example :<br></i>&gt;<i><br></i>&gt;<i> A calls B<br>
</i>&gt;<i><br></i>&gt;<i> B diverted the call unconditionally to C.<br></i>&gt;<i><br></i>&gt;<i> C is an Access Number that its shadow number is D.<br></i>&gt;<i><br></i>&gt;<i> D diverted the call to B…….<br></i>&gt;<i><br>
</i>&gt;<i> Well, that is a bad loop to have!<br></i>&gt;<i><br></i>&gt;<i> It can be longer or shorter, but the idea I understood (I think).<br></i>&gt;<i><br></i>&gt;<i> I thought about diversion check, counters, dialog “To” and “From” <br>
</i>&gt;<i> check, etc….<br></i>&gt;<i><br></i>&gt;<i> Anyone here dealt with it?<br></i>&gt;<i><br></i>&gt;<i> What will be the best way to check and see if the situation accrues?<br></i>&gt;<i><br></i>&gt;<i> Thanks,<br>
</i>&gt;<i><br></i>&gt;<i> Uri<br></i>&gt;<i><br></i></div></div>