Hi Koray,
I'm not sure I understand your use case.
If you are handling registrations, why having an rtimer process that check if there are new contacts?

Regards,

Federico

On Wed, Jul 3, 2019 at 7:37 AM Koray Vatansever <koray.vatansever@gmail.com> wrote:
Hi Daniel,

I'm using usrloc with db_mode only. So location table is in the database.

When an Invite is received, I suspend the transaction and send push notification to the called clients.
There is an rtimer process polling location table to find out any client registered.
When a record is found, I continue the previously suspended transaction.
If two records are found, parallel ringing occurs successfully.

My problem starts when one client is registered later then the other (mostly happens as expected).
In this case transaction is continued when the first registration found and the other client couldn't get the call.

I'm planning to continue polling location table on an rtimer process, and append new branches when new registrations are found, until 200OK is received.

Regards,
Koray
 

On Tue, Jul 2, 2019 at 3:17 PM Daniel-Constantin Mierla <miconda@gmail.com> wrote:
Hello,
what is the process? When you get the 180 ringing you want to push to rtimer an event to create a new branch? Or just based on rtimer you want to create a new branch no matter the 180 was received or not? Try to give details about the scenario so we can figure out if there is a way to identify the transaction and see what can be done.

Cheers,
Daniel

On Tue, Jul 2, 2019 at 8:45 AM Koray Vatansever <koray.vatansever@gmail.com> wrote:
Hi all,

I want to fork a new branch, while the first one is ringing.
Forking will take place in a rtimer process. 
So I will save the invite transaction in a htable, and using this transaction info I need to append a branch.

I saw TSILO module provides some methods to append branch.
However documentation says that it can be used when register message received.

What is the best way to implement this?

Thanks,
Koray
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


--
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users