No actions toolbar
We are currently in the proces of setting up or Asterisk server. I defined a few SIP phone devices and extensions, and I wanted to take a look at FOP2. We use the MAC adres to define the name of the device, or a string in case of a softphone.
I thought I'd take a look with a small config.. I only defined one extension, and my two trunks.. I don't have voicemails or queues setup yet, so I thought I'd comment that out.
I was also wondering: do these extensions in sop2.cfg (user=622:1234 for example) need to match the sip.conf in asterisk?
Am I missing something in my Asterisk config files?
I thought I'd take a look with a small config.. I only defined one extension, and my two trunks.. I don't have voicemails or queues setup yet, so I thought I'd comment that out.
[SIP/spRoland]
type=extension
extension=337
context=stumpel-zwaag
label=Roland
;mailbox=620@default
;extenvoicemail=*620@from-internal
;external=5551234@from-internal
;privacy=clid
;queuechannel=Local/620@from-queue/n|Penalty=1|MemberName=Nicolas|StateInterface=SIP/620
Now when I go to the webclient of FOP, I do see the button for extension 337, but I don't see the action buttons in the toolbar. I cannot dial, or do anything else.I was also wondering: do these extensions in sop2.cfg (user=622:1234 for example) need to match the sip.conf in asterisk?
Am I missing something in my Asterisk config files?
Comments
You missed the 3rd question in the FAQ:
http://www.fop2.com/documentation-faq.php
In order for the action toolbar to appear, you MUST login with an extension that is also listed in the extensions list. If there is no matching button for the extension your are loggin as, the toolbar will not be displayed, as FOP2 will not be able to figure out the device to use for performing the actions. If you are using the free version, you must have to login with an extension that is part of the first 15 buttons displayed.
So, if you have a button with extension 337, you must login with the 337 user.
So it seems to me that FOP assumes that an extension is always connected to one device, am I right?
But I could connect several devices to one extension. How does FOP handle this? (I browsed the FAQ again before asking this question).
[SIP/100]
type=extension
extension=100
context=from-internal
channel=IAX2/100
channel=SIP/200
channel=DAHDI/1
however, actions that involves origination, will use only the default device, or the originatechannel that you also might configure on the button config:
[SIP/100]
type=extension
extension=100
context=from-internal
channel=IAX2/100
channel=SIP/200
channel=DAHDI/1
originatechannel=Local/100@from-internal
Using Local channels will go to your dialplan and reach whatever device is 'attached' to that extension.
Best regards,
user=103:mypassword:all
and in the buttons.cfg file
[SIP/whatever]
type=extension
extension=103
label=whatever
context=from-internal
That *will* work, for sure, no questions, no other posibilites or outcomes. However, if you have this
user=103:mypassword:all
and in buttons.cfg
[SIP/103]
type=extension
label=whatever
extension=9999
context=idonotknowwhattowritehere
Then it will fail, as there is no match between the user number and the extension=xxx in your buttons.cfg file
Best regards,
thanks
thanks
fop2 is mostly a javascript application, so it could work cached, but perhaps not fully. Not sure how that would impact the toolbar as there is no php involved, but most probably the cached client you had was from a previous version than the running fop2 server, and that will cause all sorts of strange issues (using old client on new server or viceversa).
Best regards,