<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hello,<br>
      <br>
      The issue has been solved. Please feel free to test it out.<br>
      <br>
      Regards,<br>
      <pre class="moz-signature" cols="72">Liviu Chircu
OpenSIPS Dev
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
      On 02/10/2013 02:27 AM, Seth Schultz wrote:<br>
    </div>
    <blockquote cite="mid:5116E966.1070802@scholarchip.com" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      <div class="moz-cite-prefix">I have opened a ticket.<br>
        <br>
        <a moz-do-not-send="true" class="moz-txt-link-freetext"
href="https://sourceforge.net/tracker/?func=detail&amp;aid=3603973&amp;group_id=232389&amp;atid=1086410">https://sourceforge.net/tracker/?func=detail&amp;aid=3603973&amp;group_id=232389&amp;atid=1086410</a><br>
        <br>
        Thanks,<br>
        Seth<br>
        On 2/9/2013 7:18 PM, Muhammad Shahzad wrote:<br>
      </div>
      <blockquote
cite="mid:CAFZQphz2D7i+28ssaUds-s3anf-q3SF7ods6xkenD2f8Ltn8sw@mail.gmail.com"
        type="cite">humm, then its most likely a bug. Please report it
        in tracker. :-(<br>
        <br>
        Thank you.
        <div><br>
          <br>
          <div class="gmail_quote">On Sun, Feb 10, 2013 at 1:04 AM, Seth
            Schultz <span dir="ltr">&lt;<a moz-do-not-send="true"
                href="mailto:sschultz@scholarchip.com" target="_blank">sschultz@scholarchip.com</a>&gt;</span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div text="#000000" bgcolor="#FFFFFF">
                <div>Muhammad,<br>
                  <br>
                  Thank you for the reply.&nbsp; I also tried a hard coded
                  value with the same result.<br>
                  <br>
                  Thanks,<br>
                  Seth
                  <div>
                    <div class="h5"><br>
                      On 2/9/2013 6:50 PM, Muhammad Shahzad wrote:<br>
                    </div>
                  </div>
                </div>
                <div>
                  <div class="h5">
                    <blockquote type="cite">I think both group and
                      resource parameters can not be variables. Can you
                      check with hard coded values?<br>
                      <br>
                      Thank you.<br>
                      <br>
                      <br>
                      <div class="gmail_quote">On Sat, Feb 9, 2013 at
                        9:58 PM, Seth Schultz <span dir="ltr">&lt;<a
                            moz-do-not-send="true"
                            href="mailto:sschultz@scholarchip.com"
                            target="_blank">sschultz@scholarchip.com</a>&gt;</span>
                        wrote:<br>
                        <blockquote class="gmail_quote" style="margin:0
                          0 0 .8ex;border-left:1px #ccc
                          solid;padding-left:1ex">
                          <div text="#000000" bgcolor="#FFFFFF"> Hello,<br>
                            <br>
                            I am having trouble with the new function in
                            1.9.0 lb_count_call.&nbsp; Please look at the
                            snippet below.<br>
                            <br>
                            failure_route[1]<br>
                            {<br>
                            ...<br>
                            <blockquote>xlog("L_WARN", "trying to count
                              call ip=$dlg_val(route) port=$dp
                              group=$dlg_val(balance_pool)
                              resource=$dlg_val(balance_resource)\n");<br>
                            </blockquote>
                            <blockquote>if ($dlg_val(balance_pool) =
                              "1")<br>
                              {<br>
                              &nbsp;&nbsp;&nbsp; if
                              (lb_is_destination("$dlg_val(route)",
                              "$dp", "1", "1"))<br>
                              &nbsp;&nbsp;&nbsp; {<br>
                              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xlog("L_WARN", "counting
                              call!\n");<br>
                              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if
                              (lb_count_call("$dlg_val(route)", "$dp",
                              "1", "$dlg_val(balance_resource)"))<br>
                              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>
                              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xlog("L_WARN", "call counted
                              on sip:$du:$dp\n");<br>
                              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
                              &nbsp;&nbsp;&nbsp; }<br>
                              }<br>
                              <br>
                            </blockquote>
                            ...<br>
                            }<br>
                            <br>
                            Here is the output I see in my log file:<br>
                            <br>
                            <blockquote>Feb&nbsp; 9 15:53:07 opensips-vm
                              /sbin/opensips[16562]: trying to count
                              call ip=xxx.xxx.xxx.xxx port=5060 group=1
                              resource=pstn<br>
                              Feb&nbsp; 9 15:53:07 opensips-vm
                              /sbin/opensips[16562]: counting call!<br>
                              Feb&nbsp; 9 15:53:07 opensips-vm
                              /sbin/opensips[16562]:
                              ERROR:load_balancer:lb_count_call: no
                              destination to match the given IP and port
                              (xxx.xxx.xxx.xxx:5060)<br>
                            </blockquote>
                            Notice that it gets a positive result when
                            calling lb_is_destination, however,
                            lb_count_call is throwing an error message
                            indicating it can't match a destination.<br>
                            <br>
                            On a side note, I am having trouble getting
                            the "group" parameter to accept variable
                            input (i.e. $dlg_val(group)).<br>
                            <br>
                            Thanks,<br>
                            Seth<br>
                          </div>
                          <br>
_______________________________________________<br>
                          Users mailing list<br>
                          <a moz-do-not-send="true"
                            href="mailto:Users@lists.opensips.org"
                            target="_blank">Users@lists.opensips.org</a><br>
                          <a moz-do-not-send="true"
                            href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
                            target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
                          <br>
                        </blockquote>
                      </div>
                      <br>
                      <br clear="all">
                      <br>
                      -- <br>
                      <span
style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif">Muhammad


                        Shahzad</span><br
style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif">
                      <span
style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif">------------------------------</span><span
style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif">-----</span><br
style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif">
                      <span
style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif">CISCO


                        Rich Media Communication Specialist (CRMCS)</span><br
style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif">
                      <span
style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif">CISCO


                        Certified Network Associate (CCNA)</span><br
style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif">
                      <span
style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif">Cell:&nbsp;+49


                        176 99 83 10 85</span><br
style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif">
                      <span
style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif">MSN:&nbsp;</span><a
                        moz-do-not-send="true"
                        href="mailto:shari_786pk@hotmail.com"
                        style="color:rgb(17,85,204);font-size:13px;font-family:arial,sans-serif"
                        target="_blank">shari_786pk@hotmail.com</a><br
style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif">
                      <span
style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif">Email:&nbsp;</span><a
                        moz-do-not-send="true"
                        href="mailto:shaheryarkh@googlemail.com"
                        style="color:rgb(17,85,204);font-size:13px;font-family:arial,sans-serif"
                        target="_blank">shaheryarkh@googlemail.com</a> <br>
                      <fieldset></fieldset>
                      <br>
                      <pre>_______________________________________________
Users mailing list
<a moz-do-not-send="true" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
                    </blockquote>
                    <br>
                  </div>
                </div>
              </div>
              <br>
              _______________________________________________<br>
              Users mailing list<br>
              <a moz-do-not-send="true"
                href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
              <a moz-do-not-send="true"
                href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
                target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
              <br>
            </blockquote>
          </div>
          <br>
          <br clear="all">
          <div><br>
          </div>
          -- <br>
          <span
style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Muhammad

            Shahzad</span><br
style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
          <span
style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">------------------------------</span><span
style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">-----</span><br
style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
          <span
style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">CISCO

            Rich Media Communication Specialist (CRMCS)</span><br
style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
          <span
style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">CISCO

            Certified Network Associate (CCNA)</span><br
style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
          <span
style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Cell:&nbsp;+49

            176 99 83 10 85</span><br
style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
          <span
style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">MSN:&nbsp;</span><a
            moz-do-not-send="true" href="mailto:shari_786pk@hotmail.com"
style="color:rgb(17,85,204);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"
            target="_blank">shari_786pk@hotmail.com</a><br
style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
          <span
style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Email:&nbsp;</span><a
            moz-do-not-send="true"
            href="mailto:shaheryarkh@googlemail.com"
style="color:rgb(17,85,204);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"
            target="_blank">shaheryarkh@googlemail.com</a> </div>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
      </blockquote>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>