Dear all,<br><br>I&#39;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(&quot;$avp(s:disp_dstgrp)&quot;, &quot;4&quot;))<br>
                {<br>                        $avp(s:term_prefix) = $avp(dsattrs); # avp for CDR purpose<br><br>                                $rU = $avp(dsattrs) + $rU;<br>                        t_on_failure(&quot;FAIL_NATIONAL&quot;);<br>
                        t_relay();<br>                        exit;                 <br><br>}<br><br>In Failure route:<br><br><br> if(!ds_next_domain())<br>                {<br>                        t_reply(&quot;503&quot;, &quot;Service Unavailable&quot;);<br>
                        exit;<br>                } else {<br>                                       <br>                               $rU = $avp(dsattrs) + $rU;<br>                     <br><br>                        t_on_failure(&quot;FAIL_THIS&quot;);<br>
                        append_branch();<br>                        if(!t_relay()) {<br>                                t_reply(&quot;503&quot;,&quot;Service Unavailable&quot;);<br>                                exit;<br>
                        }<br>