-router.org
Subject: Re: [SR-Users] Kamailio Routing Logic
Hi Zaka
You have misunderstood this line : if (!t_relay()) {
That line explicitly calls t_relay() and the packet is relayed at that time.
If the packet cannot be relayed then the t_relay() function returns an error
and the conditional block is
again!
>
> Have an awesome day!
>
> Zaka
>
>
> From: sr-users-boun...@lists.sip-router.org
> [sr-users-boun...@lists.sip-router.org] on behalf of Paul Smith
> [paul.sm...@claritytele.com]
> Sent: Thursday, November 13,
.com]
Sent: Thursday, November 13, 2014 9:38 AM
To: sr-users@lists.sip-router.org
Subject: Re: [SR-Users] Kamailio Routing Logic
Hi Zaka,
The stageful forwarding takes place in the t_relay() function. If relaying is
unsuccessful then an error is returned and the conditional block executed to
send
Hi Zaka,
The stageful forwarding takes place in the t_relay() function. If relaying is
unsuccessful then an error is returned and the conditional block executed to
send an error back to the originator using sl_reply_error().
Your other question is about why to use the call to route(1): Yes you