Hello David!

I'm trying to do a similar thing and can not make Kamailio create an additional branch. Were you able to find a solution?

Thank you!

Regards, Volodymyr Ivanets

вт, 15 черв. 2021 о 17:03 David Villasmil <david.villasmil.work@gmail.com> пише:
Hello guys,

I'm trying to dynamically add a branch after doing lookup.
The user is found, but in some cases I need to add a branch and do parallel forking.

So i'm basically doing:

route[LOCATION] {
    if (!lookup("location")) {
        ....
    }
   
    if (something) {
        route(BRANCH_TO_EXTRA);
    }
   
    route(RELAY);
}

route[BRANCH_TO_EXTRA] {
    $fs = MY_SOCKET;
    append_branch("sip:$tU@" + $sel(cfg_get.pstn.gw_ip) + ":" + $sel(cfg_get.pstn.gw_port));
    return;
}


For some reason only the branch appended is being used (I have append_branches=1)

Ideas?

David Villasmil
phone: +34669448337
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users