Dear all,<br><br>I'm trying with the Dispatcher module to terminate a call to three different gateways serially. For each gw I use the attribute field to get the attribute and add it as a prefix to the RU.<br>The problem is that the $avp(dsattrs) is returning always the first value of the first gw that is using.<br>
<br>example:<br><br>destination sip:<a href="http://100.12.12.12:5060">100.12.12.12:5060</a> attrs 111<br>destination sip:<a href="http://100.12.12.11:5060">100.12.12.11:5060</a> attrs 222<br>destination sip:<a href="http://100.12.12.10:5060">100.12.12.10:5060</a> attrs 333<br>
<br><br>In this example the rU will always be 111+number. I tried also to initiate the avp in the Failure route by giving null value but still does not change the result.<br><br><br>In Request route:<br><br> if(ds_select_domain("$avp(s:disp_dstgrp)", "4"))<br>
{<br> $avp(s:term_prefix) = $avp(dsattrs); # avp for CDR purpose<br><br> $rU = $avp(dsattrs) + $rU;<br> t_on_failure("FAIL_NATIONAL");<br>
t_relay();<br> exit; <br><br>}<br><br>In Failure route:<br><br><br> if(!ds_next_domain())<br> {<br> t_reply("503", "Service Unavailable");<br>
exit;<br> } else {<br> <br> $rU = $avp(dsattrs) + $rU;<br> <br><br> t_on_failure("FAIL_THIS");<br>
append_branch();<br> if(!t_relay()) {<br> t_reply("503","Service Unavailable");<br> exit;<br>
}<br>