[SR-Users] mq_fetch and while loops

Watkins, Bradley Bradley.Watkins at compuware.com
Tue Jun 28 23:53:45 CEST 2011


>
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 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.html
>
>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