<br><br><div class="gmail_quote">On Tue, Apr 13, 2010 at 5:04 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>
</div><div class="im">> On Mon, Apr 12, 2010 at 10: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>
> > I'm wondering if the above error is some kind of AVP storage thing I<br>
> > haven't set up that is causing it not to properly "mark" the<br>
> gateway,<br>
> > or more likely, not remember the mark. But I can't spot anything in<br>
> > the dispatcher documentation that says as such.<br>
> your guess is right - dispatcher module uses AVPs to keep the state<br>
> (between sequential tries on the same dialog).<br>
><br>
> I guess the ds_mark_dst() fails - can you check this? (this function<br>
> search for the dst and grp avps to identify the last tried<br>
> destination.).<br>
><br>
> Greetings Bogdan, and thanks as always;<br>
><br>
> I tried this:<br>
> if( t_check_status("408") ){<br>
> xlog( "L_NOTICE", "[$Tf] FR: $ci -- TIMEOUT for<br>
> Gateway $rd (marking as bad)\n" );<br>
> if (!ds_mark_dst("p")) {<br>
> xlog("L_NOTICE", "[$Tf] Panic! Not marked\n");<br>
> }<br>
> }<br>
><br>
> No 'Panic' in the logs.<br>
><br>
> The dst and grp AVPs are set up, as you saw on my original post,<br>
> but... that doesn't mean I'm not missing anything.<br>
><br>
</div>So, ds_mark does not fail .....<br>
<br>
Are you 100% sure your script does define the "cnt" "grp" "dst" avp<br>
params for the dispatcher module ????<br><br></blockquote><div>Unless somehow I'm doing it wrong, pretty sure:</div><div><br></div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><div>
<div># Set up the dispatcher</div><div>modparam("dispatcher", "db_url", "mysql://<a href="http://openser:password@192.168.0.20/company" target="_blank" style="color: rgb(42, 93, 176); ">openser:password@192.168.0.20/company</a>")</div>
<div>modparam("dispatcher", "table_name", "dispatcher")</div><div>modparam("dispatcher", "flags", 2 )</div><div><br></div><div>modparam("dispatcher", "dst_avp", "$avp(i:271)")</div>
<div>modparam("dispatcher", "grp_avp", "$avp(i:272)")</div><div>modparam("dispatcher", "cnt_avp", "$avp(i:273)")</div><div><br></div><div>modparam("dispatcher", "ds_ping_method", "OPTIONS")</div>
<div>modparam("dispatcher", "ds_ping_interval", 5)</div><div>modparam("dispatcher", "ds_ping_from", "<a href="mailto:sip%3A%2B14109999351@192.168.0.2" target="_blank" style="color: rgb(42, 93, 176); ">sip:+14109999351@192.168.0.2</a>")</div>
<div>modparam("dispatcher", "ds_probing_threshhold", 3)</div></div></span><div> </div><div>As far as I can tell from the documentation and other people's examples, this should be all that is required to make this function...</div>
<div><br></div><div> - Jock</div></div>