<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'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>>Hi Uri,<br>>for that you can easily count the forwards by using the maxfwd module <br>>(mf_process_maxfwd_deader <your max>) or you can store all your spiraled <br>>calls into a dialog-variable like <br>
>$dlg_var(forward-chain)=<B>;<C>|<C>;<B> and check whether the next <br>>number is already stored or not.<br><br><br>Bye Sven<br><br><br>Am 20.02.2012 13:20, schrieb Uri Shacked:<br>><i><br>
</i>><i> Hi,<br></i>><i><br></i>><i> The service i built in kamailio is simple - a caller dials an Access <br></i>><i> number, my gateway send it to kamailio.<br></i>><i><br></i>><i> kamailio finds the shadow number for this Access number and send an <br>
</i>><i> invite to the same gateway with the shadow number as destination <br></i>><i> (state full proxy).<br></i>><i><br></i>><i> In kamailio i change only the RURI and the “To” and “From” stays <br></i>><i> untouched.<br>
</i>><i><br></i>><i> Now, when a client performs “diversion”, I can see that I can find <br></i>><i> myself in an unwanted long loop….<br></i>><i><br></i>><i> Example :<br></i>><i><br></i>><i> A calls B<br>
</i>><i><br></i>><i> B diverted the call unconditionally to C.<br></i>><i><br></i>><i> C is an Access Number that its shadow number is D.<br></i>><i><br></i>><i> D diverted the call to B…….<br></i>><i><br>
</i>><i> Well, that is a bad loop to have!<br></i>><i><br></i>><i> It can be longer or shorter, but the idea I understood (I think).<br></i>><i><br></i>><i> I thought about diversion check, counters, dialog “To” and “From” <br>
</i>><i> check, etc….<br></i>><i><br></i>><i> Anyone here dealt with it?<br></i>><i><br></i>><i> What will be the best way to check and see if the situation accrues?<br></i>><i><br></i>><i> Thanks,<br>
</i>><i><br></i>><i> Uri<br></i>><i><br></i></div></div>