How to get extension's Display name in event Incoming voice call?

How to get extension’s Display name in event Incoming voice call?

I want send jabber message to user using external Jabber server if he/she missed a call. Jabber user in external Jabber server = extension’s Display name in FreePBX.
How can I get Display name of the extension in event Incoming voice call?

Native Asterisk variable DIALEDPEERNAME is broken.

Do anybody have any suggestions? Thanks in advance.

p.s. - my first attemp to ask help :slight_smile:

You can get it from the database:

${DB(AMPUSER/${AMPUSER}/cidname)}
1 Like

Thanks. I tried ${DB(AMPUSER/${AMPUSER}/cidname)}. It returns empty field, while Display Name is not empty in extension details.

So substitute an appropriate variable name for ${AMPUSER} that has the dialed extension.

1 Like

Thank you very much!!! It works!
Looks so simple!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.