Short Numbers
From Wildix
Short numbers as service
You can use shornumbers implemented as service in WMS (the service is speed dial in features menu. In this case (if you have *7 as speed dial code you have to dial:
*7*shortnumumber to get your real number dialed
Look up name from a short number
It is possible to look up the name of a contact calling the pbx by accessing the Short Numbers from dialplan, example:
_7X.,1,SQL("SELECT contactName FROM pbx WHERE realNumber ='${CALLERID(num)}';",/var/www/wmsdb)
- proceed with the dialplan if no name if found
_7X.,n,GotoIf($[ 0${contactName} = 0]?4)
_7X.,n,Set(CALLERID(name)=${contactName})
_7X.,n, ......
Short numbers via macro shornum
A more flexible way to use shortnumbers is calling directly the macro shortnum
To use short numbers from 8000 to 8999 add the following in the context associated to the phone.
_8XXX,1,macro(shortnum|${EXTEN}|0|users)
_8XXX,2,hangUp
The macro asks to the phonebook the realnumber. the realnumber get a 0 as prefix. Then a goto(users|0realnumber|1)
is performed
