[SR-Users] Dialplan priority
igor.potjevlesch at gmail.com
igor.potjevlesch at gmail.com
Tue Aug 21 11:27:08 CEST 2018
hi Dmitri,
Having 2 dpid and use rand_event() seems to work like a charm! Thank you for the suggestion.
Regards,
Igor.
De : sr-users <sr-users-bounces at lists.kamailio.org> De la part de Dmitri Savolainen
Envoyé : lundi 20 août 2018 19:41
À : Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org>
Objet : Re: [SR-Users] Dialplan priority
hi, Igor
I'm not sure to understand in which situation "pr" value is used.
assume you want send 200 to 200 and others to 100
1. ^.*$ -> 100
2. ^200$->200
so you should set more priority to second rule (for avoid 200 to 100 translation) like
1. ^.*$ -> 100; pr=2
2. ^200$->200; pr=1
The finality I'd like to accomplish is having some kind of load balacing between two values into "repl_exp" with the same inputs conditions.
For balancing you may look for another modules, like drouting or dispatcher
Or use different DPIDs within dialplan: DPID may be chosen by $RANDOM (from cfgutils module)
On 20 August 2018 at 17:56, <igor.potjevlesch at gmail.com <mailto:igor.potjevlesch at gmail.com> > wrote:
Hello,
I'm not sure to understand in which situation "pr" value is used. For example: if I have two identical rules except pr value: 1 with 1 and the second with 2, then the rule with pr 2 is never used.
Someone can help me to understand? Thank you.
The finality I'd like to accomplish is having some kind of load balacing between two values into "repl_exp" with the same inputs conditions.
Thank you.
Regards,
Igor.
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users at lists.kamailio.org <mailto:sr-users at lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Savolainen Dmitri
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180821/02ffde60/attachment.html>
More information about the sr-users
mailing list