Re: How to get count of contacts/branches after t_next_contacts()

Benoît Panizzon via sr-users <[email protected]>
Newsgroups gmane.comp.voip.ser
Organization ImproWare AG
Message-ID <[email protected]>
Hi

Publishing what think I have found while trying out different ways:

After calling:  t_load_contacts()

$cnt($xavp(tm_contacts)) contains the total number loaded contacts + 1

After calling: t_next_contacts()

$cnt($xavp(tm_contacts)) contains 1 (maybe if there contacts?)

$branch(count) contains the number of _additional_ branches with
matching Q Value and $null if only the main branch exists.

So I can check for $branch(count) != $null to remove PRACK.

-- 
Mit freundlichen Grüssen

-Benoît Panizzon- @ HomeOffice und normal erreichbar
-- 
I m p r o W a r e   A G    -    Leiter Commerce Kunden
______________________________________________________

Zurlindenstrasse 29             Tel  +41 61 826 93 00
CH-4133 Pratteln                Fax  +41 61 826 93 01
Schweiz                         Web  http://www.imp.ch
______________________________________________________
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the sender!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.