Genesys CTI User Forum
Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: vma on February 22, 2014, 12:56:03 PM
-
Hello,
If I have the DN number, is it possible to retrieve it's alias in IRD? I do believe I should use GetObjectProperty but can't seem to find any documentation for this function.
Thank you,
Mihai
-
Number alone is not enough to completely identify DN object - sometheing else need to be known like switch name (or switch dbid) this dn belongs to.
Assuming this information is available (switch myswitch, dn number id 123) function FindConfigObject to get information you need.
- Create variable (say DNObject) of type LIST or STRING (FindConfigObject return LIST value)
- DNObject= FindConfigObject[CFGDN, 'switch:myswitch|number:123']
(or DNObject= FindConfigObject[CFGDN, 'switchdbid:dbidofswitch|number:123'])
returned DNObject will contain quite a bit info about DN including alias (aka name) - you can print it and see.
- alias= KVListGetStringValue[DNObject, 'name']
-
worked like a charm
Thank you!