<div dir="ltr"><br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">santosh satapathy</b> <span dir="ltr"><<a href="mailto:santosh.satapathy@gmail.com">santosh.satapathy@gmail.com</a>></span><br>
Date: Fri, Nov 15, 2013 at 4:23 PM<br>Subject: Fwd: sr-users Digest, Vol 102, Issue 53<br>To: Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>><br><br><br><div dir="ltr"><div>Appreciate for the input Daniel. </div>
<div><br></div><div>I was looking here little different scenario where in weights are dynamic. </div><div><br></div><div>Load distribution should happen in such a way that first it round robins among the nodes with weight 3 until they are equal with other sets of nodes with weight 2. Once this stage is reached where in all the nodes in both the sets are equally weighted, then LB should round robin among all the nodes uniformly. </div>

<div><br></div><div>This means that dynamically nodes with higher weights will get more calls until their weight difference is substantiated and after that all nodes are treated as equal.</div><div><br></div><div>Is it possible to configure script for the above scenario?</div>

<div><br></div><div>Thanks ,</div><div>Santosh</div><div><div><div class="h5"><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername"></b> <span dir="ltr"><<a href="mailto:sr-users-request@lists.sip-router.org" target="_blank">sr-users-request@lists.sip-router.org</a>></span><br>

Date: Thu, Nov 14, 2013 at 2:26 AM<br>Subject: sr-users Digest, Vol 102, Issue 53<br>To: <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br><br><br>Send sr-users mailing list submissions to<br>


        <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:sr-users-request@lists.sip-router.org" target="_blank">sr-users-request@lists.sip-router.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:sr-users-owner@lists.sip-router.org" target="_blank">sr-users-owner@lists.sip-router.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of sr-users digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. Re: Kamailio/Radius problem (Daniel-Constantin Mierla)<br>
   2. Re: Variables in event_route[sl:local-response]<br>
      (Daniel-Constantin Mierla)<br>
   3. Re: Query regd the dispatcher algorithm support<br>
      (Daniel-Constantin Mierla)<br>
   4. WORDS_BIGENDIAN error in auth_diameter.h (Sotas Development)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Thu, 14 Nov 2013 10:06:20 +0100<br>
From: Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>><br>
To: "Kamailio (SER) - Users Mailing List"<br>
        <<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>><br>
Subject: Re: [SR-Users] Kamailio/Radius problem<br>
Message-ID: <<a href="mailto:5284928C.9080300@gmail.com" target="_blank">5284928C.9080300@gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"<br>
<br>
<br>
On 11/14/13 10:02 AM, Daniel-Constantin Mierla wrote:<br>
> Hello,<br>
><br>
> On 11/14/13 4:31 AM, jonathan augenstine wrote:<br>
>> I am working on the configuration to enable RADIUS in Kamailio 4.0.<br>
>>  The basic install worked successfully and the daemon started without<br>
>> problems.  I then install radiusclient-ng and configured RADIUS in<br>
>> the Kamailio build/configuration.  All seemed OK until the Kamailio<br>
>> restart and I encountered the following error during the restart:<br>
>><br>
>> Nov 13 06:52:23 lax-vproxy2-a kernel: [  348.808624] kamailio[5346]:<br>
>> segfault at 0 ip 00007f375d249a5d sp 00007fff4d42eed0 error 4 in<br>
>> libradiusclient-ng.so.2.0.0[7f375d243000+c000]<br>
>> Nov 13 06:52:23 lax-vproxy2-a kamailio: ERROR: <core><br>
>> [daemonize.c:307]: daemonize(): Main process exited before writing to<br>
>> pipe<br>
>><br>
>> After some research it seemed that others encountered a similar error<br>
>> and traced it to the dictionary.  I have gone through the dictionary<br>
>> configuration and all seems to be correct.  Any guidance on what<br>
>> might be the issue or some troubleshooting steps?<br>
> did you get a core dump? Looking at the backtrace may show where is<br>
> the problem in libradiusclient-ng.<br>
Just found this one that seems to be similar:<br>
<br>
- <a href="http://sip-router.org/tracker/index.php?do=details&task_id=310&project=1" target="_blank">http://sip-router.org/tracker/index.php?do=details&task_id=310&project=1</a><br>
<br>
It mentions that acctserver was not set in radius config.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
--<br>
Daniel-Constantin Mierla - <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a><br>
<a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a><br>
Kamailio Advanced Trainings - Berlin, Nov 25-28<br>
   - more details about Kamailio trainings at <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a> -<br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.sip-router.org/pipermail/sr-users/attachments/20131114/e6432ceb/attachment-0001.html" target="_blank">http://lists.sip-router.org/pipermail/sr-users/attachments/20131114/e6432ceb/attachment-0001.html</a>><br>


<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Thu, 14 Nov 2013 10:15:48 +0100<br>
From: Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>><br>
To: "Kamailio (SER) - Users Mailing List"<br>
        <<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>><br>
Subject: Re: [SR-Users] Variables in event_route[sl:local-response]<br>
Message-ID: <<a href="mailto:528494C4.80604@gmail.com" target="_blank">528494C4.80604@gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"<br>
<br>
Hello,<br>
<br>
for sl:local-response, the attributes of remote address are available<br>
via $sndto(...) variables, see the cookbook from the wiki.<br>
<br>
For dialog, current sip message under processing is given (so all pvs<br>
should refgect it), but sometime there is no such message (at the dialog<br>
timeout event). However, the attributes of the dialog should be visible<br>
via $dlg(...) variables.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
On 11/14/13 9:17 AM, Kelvin Chua wrote:<br>
> well as far as i know, $rU comes up NULL on event_route[dialog:XXXX]<br>
> how do we pass pseudo-variables to event_route properly?<br>
><br>
> Kelvin Chua<br>
><br>
><br>
> On Thu, Jun 20, 2013 at 2:58 AM, Sergey Okhapkin<br>
> <<a href="mailto:sos@sokhapkin.dyndns.org" target="_blank">sos@sokhapkin.dyndns.org</a> <mailto:<a href="mailto:sos@sokhapkin.dyndns.org" target="_blank">sos@sokhapkin.dyndns.org</a>>> wrote:<br>
><br>
>     Which variables I can use in event_route[sl:local-response] route<br>
>     to xlog proto:ip:port to which the response will be sent?<br>
><br>
>     event_route[sl:local-response] {<br>
><br>
>     xlog("L_INFO","Local response to $??\n$mb\n");<br>
><br>
>     }<br>
><br>
><br>
>     _______________________________________________<br>
>     SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing<br>
>     list<br>
>     <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a> <mailto:<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>><br>

>     <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
> <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
> <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br>
--<br>
Daniel-Constantin Mierla - <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a><br>
<a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a><br>
Kamailio Advanced Trainings - Berlin, Nov 25-28<br>
   - more details about Kamailio trainings at <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a> -<br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.sip-router.org/pipermail/sr-users/attachments/20131114/36955a1b/attachment-0001.html" target="_blank">http://lists.sip-router.org/pipermail/sr-users/attachments/20131114/36955a1b/attachment-0001.html</a>><br>


<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Thu, 14 Nov 2013 10:21:14 +0100<br>
From: Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>><br>
To: "Kamailio (SER) - Users Mailing List"<br>
        <<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>><br>
Subject: Re: [SR-Users] Query regd the dispatcher algorithm support<br>
Message-ID: <<a href="mailto:5284960A.5040004@gmail.com" target="_blank">5284960A.5040004@gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"<br>
<br>
Hello,<br>
<br>
there is no such algorithm done internally. But you can get it via<br>
configuration:<br>
<br>
- use two set ids, first with the 3 nodes and then the second with the<br>
other 2 nodes<br>
- first to ds_select_*(setid1, 4) and ds_next_*() utill you consume all<br>
of them<br>
- if no answer yet and no more addresses with setid1, then call<br>
ds_select_*(setid2, 4) and ds_next_*()<br>
<br>
You can also look to see if weight based distribution fits your needs,<br>
so you can have the 3 good nodes with high weight and the other with<br>
something lower. But it won't try first the 3 good ones, it will<br>
distribute across all of them based on their weight.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
On 11/14/13 2:54 AM, santosh satapathy wrote:<br>
> Hi,<br>
><br>
> Any input for the below query is highly appreciated.<br>
><br>
> *Question:*<br>
><br>
> Does the dispatcher module allow combination like "weighted round<br>
> robin" algorithm. Or Do we have any similar algorithm ?<br>
><br>
> Example:<br>
><br>
> 3 of 5 nodes are in better condition so I set them as weight 1 and the<br>
> other two as weight 2.<br>
><br>
> Then the dispatcher will round robin between the 3 nodes with weight 1<br>
> until all 5 are with the same weight.<br>
><br>
> That also means that the weight should be dynamic and updated as<br>
> conditions of the node changes.<br>
><br>
><br>
> --<br>
> Thanks<br>
><br>
> Santosh<br>
><br>
><br>
><br>
> --<br>
> Thanks<br>
><br>
> Santosh<br>
><br>
><br>
> _______________________________________________<br>
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
> <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
> <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br>
--<br>
Daniel-Constantin Mierla - <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a><br>
<a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a><br>
Kamailio Advanced Trainings - Berlin, Nov 25-28<br>
   - more details about Kamailio trainings at <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a> -<br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.sip-router.org/pipermail/sr-users/attachments/20131114/9e883f02/attachment-0001.html" target="_blank">http://lists.sip-router.org/pipermail/sr-users/attachments/20131114/9e883f02/attachment-0001.html</a>><br>


<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Thu, 14 Nov 2013 11:25:59 +0100<br>
From: Sotas Development <<a href="mailto:sotasdev@gmail.com" target="_blank">sotasdev@gmail.com</a>><br>
To: "SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) -<br>
        Users   Mailing List" <<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>><br>
Subject: [SR-Users] WORDS_BIGENDIAN error in auth_diameter.h<br>
Message-ID:<br>
        <CAM0BVXxpUxXdAHMeZ3uL4i7V3T=wF-MDZOv=<a href="mailto:g3_f4ORw2Z_0AA@mail.gmail.com" target="_blank">g3_f4ORw2Z_0AA@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Hello All,<br>
<br>
We are currently cross compiling Kamailio for powerpc and are encountering<br>
an "issue", of which we want to know whether or not it is intentional. In<br>
the modules/auth_diameter/diameter_msg.h of Kamailio 4.0.4 (latest) we<br>
found the following line:<br>
<br>
72:     #error BIG endian detected!!<br>
<br>
But it looks like if all the code is in place to make big endian function<br>
as desired. Is this a leftover debug message? The reason we are asking is<br>
because we previously encountered another error with a similar check for<br>
WORDS_BIGENDIAN, in MD5.h.<br>
<br>
It appears as the check is built in on multiple places for this<br>
preprocessor directive, however it is not set anywhere. Are we missing a<br>
necessary build step somewhere?<br>
We have solved the issue for now by patching the diameter_msg.h to remove<br>
the #error statement, and start the makefile using:<br>
CC_EXTRA_OPTS = "-DWORDS_BIGENDIAN"<br>
<br>
This seems to solve our initial issue, which was an md5 mismatch on<br>
authentication, however we are still unsure if this is a proper workaround,<br>
or if we are missing something else. It would be very nice if someone could<br>
shed some light on this.<br>
<br>
Thanks in advance,<br>
<br>
<br>
Sotas Team<br>
(Pascal, Yuri).<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.sip-router.org/pipermail/sr-users/attachments/20131114/81938b76/attachment.html" target="_blank">http://lists.sip-router.org/pipermail/sr-users/attachments/20131114/81938b76/attachment.html</a>><br>


<br>
------------------------------<br>
<br>
_______________________________________________<br>
sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br>
<br>
End of sr-users Digest, Vol 102, Issue 53<br>
*****************************************<br>
</div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br><div dir="ltr">Thanks<div><br><div>Santosh</div></div></div>
</font></span></div></div>
</div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Thanks<div><br><div>Santosh</div></div></div>
</div>