Set FOP user label

Hello
I'm currently using FreePBX 2.10, FOP2 2.26. I'm also having a custom CRM to manage agent. I'd like to re-set user FOP label with CMS username every time our agent login to CMS.

Any advise would be much appreciated.

Thanks
Vinh Phan

Comments

  • There is no way to change button labels in runtime besides adding Local type queue members with name matching the extension/context defined on a button. So, if in your CRM you can fire a command to add a queue member with name, then it might be possible to do it. Now, if those extensions are queue members "for real" then you will have problems. So:

    1) create a queue, for example queue 777 , it won't be used for any purpose but to add/remove members
    2) modify your crm so when a user logs in it sends a command to asterisk of the type:

    asterisk -rx "queue add member Local/1111@from-internal to 777 as CRM_Name"

    3) The button in FOP2 with extension=1111 and context=from-internal will be renamed to CRM_Name

    4) Modify the logout from your CRM so it REMOVES from the queue on logot

    So, it is an ugly hack, but might work.
Sign In or Register to comment.