<br><br><div class="gmail_quote">On 10 June 2011 23:36, Robert Thomas <span dir="ltr"><<a href="mailto:thomcr@gmail.com">thomcr@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Try something like this <br><br>if (t_check_status("486|408") && t_local_replied("all")) {<br></blockquote><div><br></div><div>That is what I am doing at the moment in the failure route - however if probing mode is set to 1 then opensips will handle all the setting to probing for you (no failure route logic or manual ds_set_state required), which it does automatically on receiving n 408 responses.</div>
<div><br></div><div>What I want to know is can opensips be limited to only counting it as a failure if the 408 is locally generated.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br><br><div class="gmail_quote"><div><div></div><div class="h5">On Fri, Jun 10, 2011 at 4:52 AM, Pete Kelly <span dir="ltr"><<a href="mailto:pkelly@gmail.com" target="_blank">pkelly@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="h5">I am testing with the dispatcher module at the moment, one of the options is to set the probing mode to 1 which means the module will automatically disable a gateway if it receives a 408.<div>
<br></div><div>Is it possible to make this only set to probing if a *locally* generated 408 is received? At the moment it disables even if the downstream gateway returns a 408 which seems wrong to me. If the gateway has responded then it is not inactive.</div>
<div><br></div><div>The code looks like this but I am not sure if it's easy to derive if the 408 is locally generated from the tmcb_params </div><div><br></div><div>struct tmcb_params *ps</div><div><br></div><div><div>
if(ds_probing_mode==1 && ps->code == 408)</div><div> {</div><div> if (ds_set_state(group, &uri, DS_PROBING_DST, 1) != 0)</div><div> {</div><div> LM_ERR("Setting the probing state failed (%.*s, group %d)\n",</div>
<div> uri.len, uri.s, group);</div><div> }</div><div> }</div></div><div><br></div>
<br></div></div>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><font color="#888888">Robert<br>
</font></blockquote></div><br>