<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Uri,<br>
for that you can easily count the forwards by using the maxfwd
module (mf_process_maxfwd_deader <your max>) or you can store
all your spiraled calls into a dialog-variable like
$dlg_var(forward-chain)=<B>;<C>|<C>;<B> and
check whether the next number is already stored or not.<br>
<br>
<br>
Bye Sven<br>
<br>
<br>
Am 20.02.2012 13:20, schrieb Uri Shacked:
<blockquote
cite="mid:CAMMbDhSRi_fuDtuMsFUF3k-iq+uoeEqg+aO0yc_+QTJ523wFxg@mail.gmail.com"
type="cite">
<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>
</blockquote>
</body>
</html>