<br><br><div class="gmail_quote">On Tue, Apr 20, 2010 at 4:07 AM, Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">Hi Jock,<br>
<br>
Jock McKechnie wrote:<br>
><br>
><br>
</div><div class="im">> On Fri, Apr 16, 2010 at 5:48 AM, Bogdan-Andrei Iancu<br>
</div><div class="im">> <<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a> <mailto:<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>>> wrote:<br>
><br>
> Hi Jock,<br>
><br>
</div><div class="im">> ok, while investigating, I found a small harmless bug in the<br>
> ds_next_xxxx() functions - they were trying to populate the ATTR avp<br>
> even if it was not set - this was the reason for the err message you<br>
> were getting.<br>
><br>
> The bug was fixed, so if you update from SVN it should go away.<br>
><br>
><br>
> That's great, Bogdan - however I'm guessing this doesn't help the<br>
> ds_select_domain()'s inability to avoid marked entries.<br>
><br>
> Any thoughts on that one? :/<br>
><br>
</div>First, are you sure your destination is in inactive state - please check<br>
via MI with "opensipsctl fifo ds_list" to see the "I" or "P" state for<br>
the destination.<br></blockquote><div><br></div><div>Argh, no, the state remains "A". I -am- running the ds_mark_dst("p"), and it isn't returning an error:</div><div><br></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><div class="im" style="color: rgb(80, 0, 80); ">
<div> if( t_check_status("408") ){</div><div> xlog( "L_NOTICE", "[$Tf] FR: $ci -- TIMEOUT for Gateway $rd (marking as bad)\n" );</div></div><div> if (!ds_mark_dst("p")) {</div>
<div> xlog("L_NOTICE", "[$Tf] Panic! Not marked\n");</div><div> }</div><div> }</div></span></div><div> </div></div>It correctly logs "marking as bad", so it is falling into the right if {} block, but apparently, isn't working.<div>
<br></div><div>I've done a bit more digging:</div><div>I changed the "p" to a "i", and it correctly marks it as "Inactive".</div><div>I enabled full debugging (level 4), set it back to "p" and restarted, and then ran the call again. I see this in the logs:</div>
<div>DBG:dispatcher:ds_mark_dst: mode [2] grp [1101] dst [sip:<a href="http://192.168.0.20:5060">192.168.0.20:5060</a>]</div><div>I then searched for the phrase "probing set", which is what dispatch.c's ds_check_timer() spits out when it attempts to check, with no hits matching the probing message, so I also know that it isn't somehow probing and deciding it is working between when it is marked as "to probe" and when I run the opensipsctl 'ds_list' request. This would suggest that ds_mark_dst() and/or ds_set_state() aren't functioning correctly.</div>
<div><br></div><div>I've read through the ds_mark_dst, ds_set_state() and I'm just not seeing why this isn't being set - not that I'm a particularly great C coder, but I know enough to be able to read it fairly well.</div>
<div><br></div><div>I'm just not sure. Thanks, Bogdan, I appreciate your continued help.</div><div><br></div><div> - Jock</div>