function telecoms.num.list

Arguments:

argrequired?syntaxinfo
custIDNposintcustID of account that owns the number (default is your own account)
numberNlist:posintoptional filter to limit the phone numbers returned; can be an array of numbers or a comma separated list
number.startsNunsintoptional filter; eg if you supply "08238" then output is limited to numbers starting with 08238
number.endsNunsintoptional filter; similar to number.starts but for specifying the ending instead
number.containsNunsintoptional filter; similar to number.starts
destnumberNposintoptional filter; limits results to numbers pointing at a specific terminating number
destnumber.startsNunsintoptional filter; similar to number.starts but filtering on the terminating number
destnumber.endsNunsintoptional filter; similar to destnumber.starts
destnumber.containsNunsintoptional filter; similar to destnumber.starts
edit_timestamp.minNposintoptional filter; limits results to numbers last altered at this time or later
edit_timestamp.maxNposintoptional filter; limits results to numbers last altered at this time or earlier
notes.matchNstringoptional filter; search notes
routeto_typeNset:nowhere|externally-routed|fax2email|number|routeplan|dayparting|sip|voicemail|ivroptional filter; limits results to numbers routing to one of these destination types
routeplanIDNposintoptional filter; limits results to numbers pointing at this specific route plan
daypartIDNposintoptional filter; limits results to numbers pointing at this specific day parting
mailboxIDNposintoptional filter; limits results to numbers pointing at this specific voicemail mailbox
ivrIDNposintoptional filter; limits results to numbers pointing at this specific IVR menu
soundclipIDNposintoptional filter; limits results to numbers pointing to a pre-recorded announcement with this soundclipID
optfieldsNlist:enumallows you to specify additional information to fetch (info that is not supplied by default)

Further argument information

notes.match

Optional filter (and sort criteria, depending on other args). If this argument is specified, then a fulltext match is done with the supplied string against the notes field for each number. If you supply several words in your search string, then a number will be matched if any of the words in its notes match any of the words in your search string.

Match relevance will be higher if more than one word matches, and/or the matching words are rarer. Note that word rarity will be measured across notes against numbers on our entire system, not just numbers on an individual account. There are also a list of "stopwords" that will be ignored by the search (for further information, read documentation on MySQL fulltext searches).

If the sort argument is NOT also defined, then supplying the notes.match argument will cause the results to be sorted in descending order of match relevance (ie strongest matches first).

routeto_type

Optional filter. If you supply this argument, only numbers that are routing to one of the supplied destination types will be returned. Supply a list of one or more routeto_type values. See telecoms.num.route:routeto_type for a list and explanation of possible values.

optfields

A list of extra fields to fetch with the call data. Fields specified here will be returned as well as the fields that are returned by default.

Supply the value as a string of field names separated by commas, or as an array of field names. Values are: