[SR-Users] mq_fetch and while loops

Watkins, Bradley Bradley.Watkins at compuware.com
Wed Jun 29 00:18:35 CEST 2011


Just a correction to my previous statement:
Apparently I was incorrect and I was running Kamailio 3.1.3 and not 3.1.4.  I have installed 3.1.4 and it seems this fix is indeed in a released version now.

Regards,
- Brad

>
The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it.

>From: sr-users-bounces at lists.sip-router.org [mailto:sr-users-
>bounces at lists.sip-router.org] On Behalf Of Watkins, Bradley
>Sent: Tuesday, June 28, 2011 5:54 PM
>To: sr-users at lists.sip-router.org
>Subject: Re: [SR-Users] mq_fetch and while loops
you received it in error please notify us immediately and
>then destroy it.
>
>>From: sr-users-bounces at lists.sip-router.org [mailto:sr-users-
>>bounces at lists.sip-router.org] On Behalf Of Alex Balashov
>>Sent: Tuesday, June 28, 2011 5:42 PM
>>To: sr-users at lists.sip-router.org
>>Subject: Re: [SR-Users] mq_fetch and while loops
>>
>>I reported this back in October:
>>
>>
>> http://lists.sip-router.org/pipermail/sr-users/2010-October/065740.htm
>> l
>>
>>A fix was committed to the master branch almost immediately:
>>
>>
>> http://lists.sip-router.org/pipermail/sr-dev/2010-October/009499.html
>>
>>I requested that it be backported into the 3.1 branch in May and it was
>>done:
>>
>>    http://lists.sip-router.org/pipermail/sr-dev/2011-May/011132.html
>>
>>However, I don't know that it's made it into the tarballs yet.  You can
>>get the
>>3.1 branch with the fix by doing this:
>>
>>    git clone git://git.sip-router.org/sip-router -b 3.1
>>
>>Otherwise, here's the workaround I was using before:
>>
>>       while(mq_fetch("myq")) {
>>          ...
>>
>>          if(!defined $mqk(myq))
>>             break;
>>
>>           ...
>>        }
>>
>>Cheers,
>>
>>-- Alex
>
>Excellent, thanks for the quick response!
>
>Regards,
>- Brad





More information about the sr-users mailing list