[OpenSER-Users] CPL serial forking behaviour
Daniel
d.grotti at gmail.com
Tue Nov 20 11:20:58 CET 2007
Hi all,
I'd like to understand CPL the behaviour or serial forking made by CPL.
This is my CPL script (for USER A):
<incoming>
<lookup source="registration">
<success>
<proxy ordering="sequential" />
</success>
</lookup>
</incoming>
</cpl>
The first question is : In this case, if I have 2 contacts for USER A, what
is its behaviour ?
I have made a couple of tests about it.
USER A has 2 contacts : USERA at IP_1 and USERA at IP_2 and the CPL script as
above.
USER B has 1 contact : USERB at IP_3
The location table is:
ID username contact q
318 USERB USERB at IP_3 1
319 USERA USERA at IP_1 1
320 USERA USERA at IP_2 1
In this case the CPL script calls both of Contacts of USER A, at the same
time.
Then, I've changed the two contact's q parameters:
ID username contact q
318 USERB USERB at IP_3 1
319 USERA USERA at IP_1 1
320 USERA USERA at IP_2 0.1
In this case CPL script calls first USERA at IP_2 (low q paramenter) and then
USERA at IP_1 (high q-value)
ID username contact q
318 USERB USERB at IP_3 1
319 USERA USERA at IP_1 0.1
320 USERA USERA at IP_2 1
In this case CPL script calls first USERA at IP_1 (low q paramenter) and then
USERA at IP_2 (high q-value)
ID username contact q
318 USERB USERB at IP_3 1
319 USERA USERA at IP_1 0.1
320 USERA USERA at IP_2 0.5
In this case CPL script calls first USERA at IP_1 (low q paramenter) and then
USERA at IP_2 (high q-value)
ID username contact q
318 USERB USERB at IP_3 1
319 USERA USERA at IP_1 0.1
320 USERA USERA at IP_2 0.1
In this case the CPL script calls both of Contacts of USER A, at the same
time.
It seem work in the reverse mode: it call first the lowest q value and
then the highest.
So, does PROXY element (with ordering="sequential") care about q-parameter ?
Can somebody help me?
Regards,
Daniel
--
Daniel Grotti
________________________
e-mail : d.grotti at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/users/attachments/20071120/cd00ad4f/attachment.htm
More information about the Users
mailing list