<div dir="ltr"><div>Following the example of TM Module. <a href="https://www.kamailio.org/docs/modules/devel/modules/tm.html#tm.serial_forking">https://www.kamailio.org/docs/modules/devel/modules/tm.html#tm.serial_forking</a></div><div><br></div><div>Code : <br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>modparam("tm", "contacts_avp", "tm_contacts");<br><br>route {<br> seturi("<a href="mailto:sip%3Aa@example.com">sip:a@example.com</a>");<br> append_branch("<a href="mailto:sip%3Ab@example.com">sip:b@example.com</a>", "0.5");<br> append_branch("<a href="mailto:sip%3Ac@example.com">sip:c@example.com</a>", "0.5");<br> append_branch("<a href="mailto:sip%3Ad@example.com">sip:d@example.com</a>", "1.0");<br><br> t_load_contacts();<br><br> t_next_contacts();<br> t_on_failure("serial");<br> t_relay();<br> break;<br>}<br><br>failure_route["serial"]<br>{<br> if (!t_next_contacts()) {<br> exit;<br> }<br><br> t_on_failure("serial");<br> t_relay();<br>}</div></blockquote><div><br></div><div><br></div><div>My code : <br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>failure_route[GroupFailureRoute]{<br> t_next_contacts();<br> while(!route(GROUP_LOCATION))<br> {<br> if (!t_next_contacts()) {<br> send_reply("408","Nobody available");<br> exit;<br> }<br> }<br> t_on_failure("GroupFailureRoute");<br> t_relay();<br>}<br><br>route[GROUP_RELAY_SER]{<br> append_branch("<a href="mailto:sip%3A9919995@192.168.1.41">sip:9919995@192.168.1.41</a>","1");<br> append_branch("<a href="mailto:sip%3A9919992@192.168.1.41">sip:9919992@192.168.1.41</a>", "0.21"); <br> append_branch("<a href="mailto:sip%3A9919997@192.168.1.41">sip:9919997@192.168.1.41</a>", "0.22");<br> append_branch("<a href="mailto:sip%3A9919991@192.168.1.41">sip:9919991@192.168.1.41</a>", "0.22");<br> t_load_contacts();<br> t_next_contacts();<br> while(!route(GROUP_LOCATION))<br> {<br> if (!t_next_contacts()) {<br> send_reply("408","Timeout or nobody available");<br> exit;<br> }<br> }<br> t_on_failure("GroupFailureRoute");<br> t_relay();<br> break;<br>}</div></blockquote><div><br></div><div>The result : <br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><img src="cid:ii_l129gp380" alt="image.png" style="margin-right: 0px;" width="959" height="582"></div><div></div><div><br></div></blockquote><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> public2_addr 192.168.1.41 192.168.1.24 192.168.1.10 <br></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> ──────────┬───────── ──────────┬───────── ──────────┬───────── ──────────┬───────── <br></blockquote></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div> │ INV (192.168.1.41) │ |<br> │ audio 39776 (g711u) │ |<br> │ ─────────────────────────────── ──────────────> │ <br> │ INV (192.168.1.41) │ │ <br> │─┐ audio 39776 (g711u) │ │ <br> │<┘ │ │ <br> │─┐ 407 Proxy Authentication R│ │ <br> │<┘ │ │ <br> │ CANCEL │ │ <br> │ ─────────────────────> │ │ <br> │─┐ ACK │ │ <br> │<┘ │ │ <br> │ 487 Request Terminated │ │ <br> │ <────────────────────── │ │ <br> │ ACK │ │ <br> │ ─────────────────────> │ │ <br> │ 200 OK │ │ <br> │ <───────────────────── │ │ <br> │ 100 Trying │ <br> │ <────────────────────────────────────────────── │ <br> │ 180 Ringing │ <br> │ <─────────────────────────────────────────── ── │ <br> │ 180 Ringing │ │ │ <br> │ <─────────────────── │ │ │ <br></div></blockquote><div><br></div><div><br></div><div>On the Second "wave" of INVITE with the parallel only the first one is correctly changed with the lookup("location") and not the second.</div><div>Could someone give me some tips?</div><div><br></div><div>Best regards <br></div><div>Thomas<br></div><div><br></div><div><br></div><div><br></div><div><br></div><div> </div></div><div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br>
<table style="border-top:1px solid #d3d4de">
<tr>
<td style="width:55px;padding-top:13px"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" width="46" height="29" style="width: 46px; height: 29px;"></a></td>
<td style="width:470px;padding-top:12px;color:#41424e;font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px">Virus-free. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank" style="color:#4453ea">www.avast.com</a>
</td>
</tr>
</table><a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></div>