You don't need to do so in branch route. You can do this within
request_route.

On Thu, 4 May 2023, 12:55 Benoit Panizzon, <[email protected]> wrote:

> Hello
>
> Is there a possibility to send a reply from within a branch route?
>
> Experimental case (yes, I know it's a non working set-up, but I just
> wonder if that would be possible).
>
> Two registrar nodes, location information shared between the two.
>
> CPE registers via TLS, therefore the existing connection shall be used
> towards the CPE and that only exists on one of the registrars.
>
> So in the Branch Route I would like to do something like:
>
> $var(socket) = $(ulc(aor=>socket)[$T_branch_idx]);
>
> if ($var(socket) == 0) {
>         send_reply("503","no local socket");
> }
>
> This would cause the core routing instance to select the next registrar
> from the dispatcher list which hopefully holds the active socket.
>
> But none of the 'send_reply' variants seem to be allowed within a
> branch route.
>
> Or is there a better solution?
>
> Mit freundlichen Grüssen
>
> -Benoît Panizzon-
> --
> I m p r o W a r e   A G    -    Leiter Commerce Kunden
> ______________________________________________________
>
> Zurlindenstrasse 29             Tel  +41 61 826 93 00
> CH-4133 Pratteln                Fax  +41 61 826 93 01
> Schweiz                         Web  http://www.imp.ch
> ______________________________________________________
> __________________________________________________________
> Kamailio - Users Mailing List - Non Commercial Discussions
> To unsubscribe send an email to [email protected]
> Important: keep the mailing list in the recipients, do not reply only to
> the sender!
> Edit mailing list options or unsubscribe:
>
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:

Reply via email to