<div dir="ltr"><span style="font-size:12.8px">Hello list,</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><span style="font-size:12.8px">I have a proxy that manage fix </span><span class="gmail-il" style="font-size:12.8px">calls</span><span style="font-size:12.8px"> and a proxy that manage mobile </span><span class="gmail-il" style="font-size:12.8px">calls</span><span style="font-size:12.8px">. I want to implement </span><span class="gmail-il" style="font-size:12.8px">call</span><span style="font-size:12.8px"> </span><span class="gmail-il" style="font-size:12.8px">forking</span><span style="font-size:12.8px"> so when I </span><span class="gmail-il" style="font-size:12.8px">call</span><span style="font-size:12.8px"> to a fix phone the </span><span class="gmail-il" style="font-size:12.8px">call</span><span style="font-size:12.8px"> goes to the fix proxy and it forks to the mobile proxy who manage the </span><span class="gmail-il" style="font-size:12.8px">call</span><span style="font-size:12.8px"> and viceversa. I want the fix to ring 2 or 3 times before the mobile.</span><br></div><div style="font-size:12.8px"><span style="font-size:12.8px"><br></span></div><div style="font-size:12.8px"><span style="font-size:12.8px">In order to do so I </span><span style="font-size:12.8px">relay first to the fixed proxy, which will bounce back to mobile proxy the branch for mobile device.</span></div><div style="font-size:12.8px"><span style="font-size:12.8px"><br></span></div><div style="font-size:12.8px"><span style="font-size:12.8px">But now if I want to be able to choose which phone (mobile or fixe) rings before I have tried by doing the "async_route("RELAY", "7");" in the fixe proxy like in the mobile proxy but it doesn't work.</span><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><span class="gmail-im"><div style="font-size:12.8px">My code is:</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Fix proxy:</div><div style="font-size:12.8px"><br></div></span><div style="font-size:12.8px">if($rU==123456789){<br></div><div style="font-size:12.8px">   add_diversion("<span class="gmail-il">forking</span>");</div><div style="font-size:12.8px">   $var(priority)=1;</div><div style="font-size:12.8px">   append_branch("sip:987654321@<wbr>proxy_mobile");</div><div style="font-size:12.8px">}</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><div style="font-size:12.8px"><div>route[INVITE]{</div><div><br>if(<span style="font-size:12.8px">$var(priority)</span> == "1"){<br></div></div><span class="gmail-im"><div style="font-size:12.8px">   async_route("RELAY", "7");</div><div style="font-size:12.8px">}<span style="font-size:12.8px">else{</span></div><div style="font-size:12.8px">   route(RELAY);</div><div style="font-size:12.8px">   exit;</div><div style="font-size:12.8px">}</div></span></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Mobile proxy:<br><br><div>if($tU==987654321){<br></div><div><span style="font-size:12.8px">   $rU=</span><span style="font-size:12.8px">123456789</span><span style="font-size:12.8px">;</span><br></div><span class="gmail-im"><div>}<br><br><br>route[INVITE]{</div><div><br>if($dir == "<span class="gmail-il">forking</span>"){<br></div></span></div><span class="gmail-im"><div style="font-size:12.8px">   async_route("RELAY", "7");</div></span><div style="font-size:12.8px">}<span style="font-size:12.8px">else{</span></div><div style="font-size:12.8px">   route(RELAY);</div><div style="font-size:12.8px">   exit;</div><div style="font-size:12.8px">}</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">}</div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Thanks.</div></div>