<div dir="ltr">David,<div><br></div><div>Thank you for sharing your solution!</div><div><br></div><div>Just to clarify. Do you use the same or a different location for GSM contacts than for regular contacts (do you perform lookup only from one location or two times from different locations)?</div><div><br></div><div>Thanks a lot!</div><div><br></div><div>Regards, Volodymyr Ivanets</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">вт, 7 вер. 2021 о 16:25 David Villasmil <<a href="mailto:david.villasmil.work@gmail.com">david.villasmil.work@gmail.com</a>> пише:<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 dir="auto">Hello,</div><div dir="auto"><br></div><div dir="auto">I ended up simply adding an extra location for these specific users. I needed to do it for GSM users, so adding the GSM users to the location table would immediately add a branch in addition to whatever location the user had if registered.</div><div dir="auto"><br></div><div dir="auto">Hope that helps</div><div dir="auto"><br></div><div dir="auto">David</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 7 Sep 2021 at 14:10, Володимир Іванець <<a href="mailto:volodyaivanets@gmail.com" target="_blank">volodyaivanets@gmail.com</a>> wrote:<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 dir="ltr">Hello David!<div><br></div><div>I'm trying to do a similar thing and can not make Kamailio create an additional branch. Were you able to find a solution?</div><div><br></div><div>Thank you!</div><div><br></div><div>Regards, Volodymyr Ivanets</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">вт, 15 черв. 2021 о 17:03 David Villasmil <<a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a>> пише:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"></blockquote></div></div><div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello guys,<div><br></div><div>I'm trying to dynamically add a branch after doing lookup.</div><div>The user is found, but in some cases I need to add a branch and do parallel forking.</div><div><br></div><div>So i'm basically doing:</div><div><font face="monospace"><br></font></div><div><font face="monospace">route[LOCATION] {<br>    if (!lookup("location")) {<br>        ....<br>    }<br>    <br>    if (something) {<br>        route(BRANCH_TO_EXTRA);<br>    }<br>    <br>    route(RELAY);<br>}<br><br>route[BRANCH_TO_EXTRA] {<br>    $fs = MY_SOCKET;<br>    append_branch("sip:$tU@" + $sel(cfg_get.pstn.gw_ip) + ":" + $sel(cfg_get.pstn.gw_port));<br>    return;<br>}</font><br></div><div><br></div><div>For some reason only the branch appended is being used (I have append_branches=1)</div><div><br clear="all"><div><div dir="ltr"><div dir="ltr"><div>Ideas?</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div></div></div></div></blockquote></div></div><div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
__________________________________________________________<br>
Kamailio - Users Mailing List - Non Commercial Discussions<br>
  * <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
Important: keep the mailing list in the recipients, do not reply only to the sender!<br>
Edit mailing list options or unsubscribe:<br>
  * <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div></div>
__________________________________________________________<br>
Kamailio - Users Mailing List - Non Commercial Discussions<br>
  * <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
Important: keep the mailing list in the recipients, do not reply only to the sender!<br>
Edit mailing list options or unsubscribe:<br>
  * <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div></div>-- <br><div dir="ltr"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div>
__________________________________________________________<br>
Kamailio - Users Mailing List - Non Commercial Discussions<br>
  * <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
Important: keep the mailing list in the recipients, do not reply only to the sender!<br>
Edit mailing list options or unsubscribe:<br>
  * <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>