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 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. 
    Please look at the snippet below.<br>
    <br>
    failure_route[1]<br>
    {<br>
    ...<br>
    <blockquote>xlog(&quot;L_WARN&quot;, &quot;trying to count call ip=$dlg_val(route)
      port=$dp group=$dlg_val(balance_pool)
      resource=$dlg_val(balance_resource)\n&quot;);<br>
    </blockquote>
    <blockquote>if ($dlg_val(balance_pool) = &quot;1&quot;)<br>
      {<br>
          if (lb_is_destination(&quot;$dlg_val(route)&quot;, &quot;$dp&quot;, &quot;1&quot;, &quot;1&quot;))<br>
          {<br>
              xlog(&quot;L_WARN&quot;, &quot;counting call!\n&quot;);<br>
              if (lb_count_call(&quot;$dlg_val(route)&quot;, &quot;$dp&quot;, &quot;1&quot;,
      &quot;$dlg_val(balance_resource)&quot;))<br>
              {<br>
                  xlog(&quot;L_WARN&quot;, &quot;call counted on sip:$du:$dp\n&quot;);<br>
              }<br>
          }<br>
      }<br>
      <br>
    </blockquote>
    ...<br>
    }<br>
    <br>
    Here is the output I see in my log file:<br>
    <br>
    <blockquote>Feb  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  9 15:53:07 opensips-vm /sbin/opensips[16562]: counting call!<br>
      Feb  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&#39;t match a destination.<br>
    <br>
    On a side note, I am having trouble getting the &quot;group&quot; parameter to
    accept variable input (i.e. $dlg_val(group)).<br>
    <br>
    Thanks,<br>
    Seth<br>
  </div>

<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a 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-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: +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: </span><a 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: </span><a 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>