Digium phone contacts list

Community based support for the Digium Phone Application Programming Interface (API).

Moderators: jwitt, sruffell, malcolmd, Moderator

Digium phone contacts list

Postby crc32 » Thu Mar 26, 2015 10:02 am

Is there a way to force the contacts list to sort differently than alphabetical? Perhaps by extension number? I really only care for one or two extensions to always appear at the top of the list, but don't want to place "AA_", "AB_", etc. in front of them.

See below:
Code: Select all
<phonebooks>
    <contacts group_name="xxx" editable="0" id="0">
        <contact
            server_uuid="b6cb3377-28a7-4661-84d0-925b9f3706c4"
            id="frontdesk"
            first_name="AA_Front"
            last_name="Desk"
            contact_type="sip"
            organization="xxx"
            account_id="frontdesk"
            subscribe_to="auto_hint_frontdesk"
        >
            <emails>
                <email address="xxx" label="Work" primary="1" />
            </emails>
            <actions>
                <action id="primary" dial="200" label="Call Front Desk" name="Front Desk" />
             </actions>
        </contact>
        <contact
            server_uuid="b6cb3377-28a7-4661-84d0-925b9f3706c4"
            id="markham"
            first_name="Markham"
            last_name="Suite"
            contact_type="sip"
            organization="xxx"
            account_id="markham"
            subscribe_to="auto_hint_markham"
        >
            <emails>
                <email address="xxx" label="Work" primary="1" />
            </emails>
            <actions>
                <action id="primary" dial="305" label="Call Markham" name="Markham Suite" />
             </actions>
        </contact>
        <contact
            server_uuid="b6cb3377-28a7-4661-84d0-925b9f3706c4"
            id="lathrop"
            first_name="Lathrop"
            last_name="Suite"
            contact_type="sip"
            organization="xxx"
            account_id="lathrop"
            subscribe_to="auto_hint_lathrop"
        >
            <emails>
                <email address="xxx" label="Work" primary="1" />
            </emails>
            <actions>
                <action id="primary" dial="306" label="Call Lathrop" name="Lathrop Suite" />
             </actions>
        </contact>
        <contact
            server_uuid="b6cb3377-28a7-4661-84d0-925b9f3706c4"
            id="austin"
            first_name="Austin"
            last_name="Suite"
            contact_type="sip"
            organization="xxx"
            account_id="austin"
            subscribe_to="auto_hint_austin"
        >
            <emails>
                <email address="xxx" label="Work" primary="1" />
            </emails>
            <actions>
                <action id="primary" dial="307" label="Call Austin" name="Austin Suite" />
             </actions>
        </contact>
    </contacts>
</phonebooks>


On this contacts list, I want the Front Desk to always appear at the top of the list. I don't really care what order the rest are in (alpha, numeric, whatever). In the real use, there are 4 extensions I want at the top (sorted 1,2,3,4) followed by the rest that can be sorted however.

I tried is to insert a non-printing ascii character (using both NUL & STX), but that didn't work either. NUL sorted to the end of the list, and STX seemed to be ignored.
crc32
Newsterisk
 
Posts: 3
Joined: Sun Dec 21, 2014 1:47 pm

Re: Digium phone contacts list

Postby malcolmd » Thu Mar 26, 2015 11:03 am

Negative. Within the application they're always going to sort alphabetically.
Malcolm Davenport
Digium, Inc. | Senior Product Manager
malcolmd
Moves Like Spencer
 
Posts: 3019
Joined: Wed Aug 03, 2005 3:53 pm
Location: Huntsville, AL, US


Return to Digium Phone API

Who is online

Users browsing this forum: No registered users and 1 guest