Extension buttons for forwarded to external numbers

Hi,

We are trying to mimic a customer's hosted fop2 setup with their own on-site config. fop2 is up and running fine, but they have buttons they use to forward calls to external numbers. Specifically it would look like this:

* They have different groups for each of their external numbers (which looks like we can get to work with group= parameter)
* They also have extension buttons that are linked to the external numbers so their agents would click on the button, then press either the attended / unattended xfer button.

Any ideas on how to make this work? From their old config we have this type of button config, but fop2 seems to ignore it. There's no such sip device, so I'm not sure whether we need to be adding it in, but I've not really had any luck doing that yet. When I've tried to replace the device name to an existing SIP device (e.g. SIP/201) fop2 forwarded the call to 202@from-internal instead :-/. The config will be changing on a regular basis so we'd like to avoid hacking sip devices if possible.

[SIP/02081234567]
type=extension
extension=02081234567
context=transfer
label= Company X
group=Group Y

Any ideas?

Thanks,
Carel

Comments

  • In case it helps someone else, in the fop2 admin module we had one of more groups selected for each user, which for some reason didn't match up with the groups in the buttons.cfg file. So, changing the users to have NO group membership disabled the group checking which meant the buttons were then displayed.

    C
  • So, you have mixed automatic configurations (via fop2admin) and manual configurations? So, is your issued fixed when removing the automatic config?
  • Hi Nicolas,

    The only buttons we have configured in the manualy buttons.cfg file is the external numbers. Everything else is done via the fop2admin module. So if I comment out the auto-gen script users can't log in (because their logins aren't generated by the autoconfig-users-freepbx.sh script).

    I did briefly stop this warning once fop2 starts in debug mode (it's the first output I receive after about 1 second pause):

    # ./fop2_server -X 15 | tee /tmp/fop2.log
    Use of uninitialized value in quoted execution (``, qx) at /tmp/par-root/cache-5b978559a4be4f63ec5bdb8fa23daafc97123f45/inc/lib/FOP2/License.pm line 591.

    So at the moment it's all working again, seemingly after a reboot of the server, but there is no real explanation as to why it is working. I have noticed the following difference:

    At the moment (with the attended transfer working) I can see:
    i) The fop2 panel is showing a "Line 1 inactive" message for all the buttons (both extensions and buttons we use to forward and transfer calls to external numbers) and changes state as calls are made accordingly. Before this was missing.

    ii) Before when it was occasionally working, when you click on one of the external numbers, the Transfer to voicemail button would be greyed out as it is obviously not an extension with voicemail. At the moment, it doesn't do that, but attended transfers are working.

    iii) Probably the best way to describe the erroneous behaviour is when I have, say, extension 201 dealing with a call and I log in to fop2 with extension 202 and then try to transfer a call (which obviously fail because you're not logged in as 201). However, although I have been testing with different users I am pretty sure I was testing previously with the correct user to the SIP account I was using. Someone else mentioned some potential issues with using devices & users mode on fpbx (which is what we're using). Could it be that or should I just lay off the sugar?

    Thanks,
    Carel
  • Hi,

    If you are going to use buttons for transfers only (and not origination/dial or status monitoring), then you can use dummy information in the channel name, you do not need to even use SIP/xx at all. This is because transfers will use the extension and context settings exclusively, for example, you could have something like:

    [IT/DoesNotExist]
    type=extension
    extension=1234567
    context=dialout-context

    That button will work for transferring calls to 1234567.

    You could also use Local channel if you want origination/dial to work, but then you will have to create a user with the same external number:

    [Local/1234567@from-internal]
    type=extension
    extension=1234567
    context=from-internal

    Best regards,
Sign In or Register to comment.