Can I add additional 'call' action to an extension?

We're running Asterisk Open Source 11 + FOP2, with an extension pattern of XXX. We have several extensions that have a "special" extension (1XXX) that will call the user's cell phone instead of the office phone. Information about the extension (including the cell phone number that gets dialed when a user dials 1XXX) is stored in a database, and FOP2's buttons.cfg is being dynamically generated via bash script using that database.

I see there currently exists a "call" button that will call a given extension when selected. Is there a relatively simple way I can add "call cell phone", either as an action button on top or as a "context menu" item within the menu that pops up when you click on a button's status indicator?

Comments

  • You can add the "external" setting in the button configuration. That will enable the transfer to mobile button (Available in fop2 since version 2.24 or so).

    [SIP/100]
    type=extension
    extension=100
    label=John
    external=1XXX@from-internal

    where from-internal is the context where 1xxx is located in your dialplan. There is no need to put the actual mobile phone number, you can very well use your current dialplan for it.
  • Thanks, don't know why I didn't catch that from the documentation.

    The one thing that I'm running into at the moment is, I can get a "transfer to mobile" button, but there doesn't seem to be a "dial mobile" option? I tried adding dialexternal permissions for my users, but no "dial mobile" button is available. Similarly, I don't see a "dial mobile" when using a user with "all" permissions. Is there some other way to originate a new call to the user's mobile number that I'm not seeing?
  • There is no dial to mobile button, only the transfer one. It would be possible to create a custom action button with that option, but it requires some programming. Here is an article describing on how to add a custom action button:

    http://www.fop2.com/blog/creating-a-cus ... ion-button
Sign In or Register to comment.