I am tackling Hunting and see that there are two functions recommended to accomplish this. Before I jump into using them I wanted to know a bit about each regard to the call flow.
From where does t_load_contacts() load contacts and how does it order then in case of a serial fork flow,
Is there a generic way of doing it say with a loop in the script. Docs on these two functions are a bit cryptic for me H
KamDev Essa writes:
From where does t_load_contacts() load contacts and how does it order
then in case of a serial fork flow,
as readme tells, from destination set and it orders them based on q and +sip.instance values. destination set can gets its values, e.g., as result of lookup() call.
-- juha
But lookup looks at urloc (location) table but that is dynamic. How do I say these extensions need to be in this hunt group. What static table do I place that info in. On Wednesday, May 16, 2018, 1:00:31 PM EDT, Juha Heinanen jh@tutpro.com wrote:
KamDev Essa writes:
From where does t_load_contacts() load contacts and how does it order
then in case of a serial fork flow,
as readme tells, from destination set and it orders them based on q and +sip.instance values. destination set can gets its values, e.g., as result of lookup() call.
-- juha
_______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
I want to implement hunting dynamically. Say I have one Inbound # 12345678909 that needs to hunt 4 extensions. 201, 202, 203 and 204. where do I store this relationship in the db becuse a customer can change sequence to 202, 203, 201 and 204. KD On Wednesday, May 16, 2018, 1:15:36 PM EDT, Juha Heinanen jh@tutpro.com wrote:
KamDev Essa writes:
But lookup looks at urloc (location) table but that is dynamic. How do I say these extensions need to be in this hunt group. What static table do I place that info in.
Sorry, I don't understand.
-- Juha
_______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
KamDev Essa writes:
I want to implement hunting dynamically. Say I have one Inbound # 12345678909 that needs to hunt 4 extensions. 201, 202, 203 and 204. where do I store this relationship in the db becuse a customer can change sequence to 202, 203, 201 and 204.
If you want to use load_contacts()/next_contacts(), then the customer could add permanent registrations for the extensions to location table with different q values.
-- Juha
- How do I mark the entries in the location table as permanent. - How do I group the entries in the location table as belonging to one hunt group ike the 4 extensions I mentioned - If I mark the entery as permanent how would I know if that extension is currently registered or not.
On Wednesday, May 16, 2018, 2:11:23 PM EDT, Juha Heinanen jh@tutpro.com wrote:
KamDev Essa writes:
I want to implement hunting dynamically. Say I have one Inbound # 12345678909 that needs to hunt 4 extensions. 201, 202, 203 and 204. where do I store this relationship in the db becuse a customer can change sequence to 202, 203, 201 and 204.
If you want to use load_contacts()/next_contacts(), then the customer could add permanent registrations for the extensions to location table with different q values.
-- Juha
_______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
KamDev Essa writes:
- How do I mark the entries in the location table as permanent.
you can use a flag for it or use long expires time.
- How do I group the entries in the location table as belonging to
- one hunt group ike the 4 extensions I mentioned
uris of the extensions are permanent contacts of the called number.
- If I mark the entery as permanent how would I know if that
- extension is currently registered or not.
permanent contact is always registered.
-- juha