Hi Community,
Is it possible to append a branch to a transaction after the call is in a ringing state? Say a call comes in and an AOR only has two contacts. Branches are created to the contacts. A third comes in why the two are in the ringing state. Can we create a branch to the third?
On Oct 8, 2024, at 1:02 pm, Knserbrave via sr-users sr-users@lists.kamailio.org wrote:
Is it possible to append a branch to a transaction after the call is in a ringing state? Say a call comes in and an AOR only has two contacts. Branches are created to the contacts. A third comes in why the two are in the ringing state. Can we create a branch to the third?
You can, but since Kamailio is driven by external events, you'd have to devise some means of doing it.
The `tsilo` module is one popular way, but it is coupled to the registrar and doesn't allow you to inject arbitrary branches at arbitrary times, so you may need to devise an alternative.
-- Alex
It looks like TSILO ts_append is a good candidate for this.
On Tue, Oct 8, 2024 at 1:02 PM Knserbrave knserbrave@gmail.com wrote:
Hi Community,
Is it possible to append a branch to a transaction after the call is in a ringing state? Say a call comes in and an AOR only has two contacts. Branches are created to the contacts. A third comes in why the two are in the ringing state. Can we create a branch to the third?
As long as the destination you're wanting to do a deferred fork to is a new registration contact, it fits like a glove. This is because ts_append() reads registration contacts internally, "performing a contact lookup on the table specified by the domain parameter" (from the ts_append() docs). The other functions are variations on that same theme, with the same mechanism.
If you're wanting to do a deferred fork to arbitrary destinations, on the other hand, you might be out of luck for the moment. I'm not aware of a way, beyond `tsilo`, to side-load new branches into a pending transaction, though I'd be excited to find out I'm wrong.
-- Alex
On Oct 8, 2024, at 1:32 pm, Knserbrave via sr-users sr-users@lists.kamailio.org wrote:
It looks like TSILO ts_append is a good candidate for this.
On Tue, Oct 8, 2024 at 1:02 PM Knserbrave knserbrave@gmail.com wrote: Hi Community,
Is it possible to append a branch to a transaction after the call is in a ringing state? Say a call comes in and an AOR only has two contacts. Branches are created to the contacts. A third comes in why the two are in the ringing state. Can we create a branch to the third? __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: