Dial box not working
I am running FOP 2.2 against asterisk 1.6.2.3 managed by FreePBX 2.8.0.2.
After running for a while, with not much usage as we are only testing at present, the dialbox has stopped working completely. I can successfully originate a call by selecting an extension, then clicking on the Dial button. If I enter the same extension into the dialbox and hit ENTER, nothing happens.
Below is an excerpt of the output from the fop2_server at debuglevel 15 when using the Dial button:
And when using the dialbox:
The above line is the only output when using the dialbox, so it seems that the dial message is being silently dropped. I have checked the various asterisk settings - callevents=yes, read/write=all, event_mask commented out.
Thanks.
After running for a while, with not much usage as we are only testing at present, the dialbox has stopped working completely. I can successfully originate a call by selecting an extension, then clicking on the Dial button. If I enter the same extension into the dialbox and hit ENTER, nothing happens.
Below is an excerpt of the output from the fop2_server at debuglevel 15 when using the Dial button:
10.0.28.248 <= <msg data="6|originate|8|3779e1ed97121b000bd42c3d75ced8b4" />
127.0.0.1 -> Action: Originate
127.0.0.1 -> Channel: SIP/14502
127.0.0.1 -> Exten: 4008
127.0.0.1 -> Context: from-internal
127.0.0.1 -> Priority: 1
127.0.0.1 -> CallerID: Reception 1 <4006>
127.0.0.1 -> Async: True
127.0.0.1 <- Response: Success
127.0.0.1 <- Message: Originate successfully queued
127.0.0.1 <- Server: 0
.....
10.0.28.248 => { 'btn': '6@GENERAL', 'cmd': 'settimer', 'data': '0@UP', 'slot': '1' }
10.0.28.248 => { 'btn': '6@GENERAL', 'cmd': 'state', 'data': 'RINGING', 'slot': '1' }
10.0.28.248 => { 'btn': '6@GENERAL', 'cmd': 'settext', 'data': '4006 Reception 1', 'slot': '1' }
And when using the dialbox:
10.0.28.248 <= <msg data="6|dial|4008|3779e1ed97121b000bd42c3d75ced8b4" />
The above line is the only output when using the dialbox, so it seems that the dial message is being silently dropped. I have checked the various asterisk settings - callevents=yes, read/write=all, event_mask commented out.
Thanks.
Comments
FOP2 is doing its job. It sends the correct command, is asterisk or your phone that is not accepting the origination.
Now, if I type the extension into the dialbox and hit ENTER, I cannot find anything in the full log relating to this request - no mention of and 'Originate' command or anything like that. The only output I see in the logs available to me are the dial msg tag being sent by the web client (seen in firebug), and the msg being received by fop2_server when running it at debuglevel 15.
So FOP2 succeeds in originating the call when the Dial button is clicked, but is unable to originate a call when the dialbox is used.
Look at the originate command that you first posted, does it seem ok? It does to me, but I am not sure if the originate channel is correct. As you see , the originate command was sent, and asterisk accepted it ok, after that all is done in asterisk-phone, not in fop2.
Enable sip debug, see if your phone is rejecting calls, look at the originate ami command and see if its correct or not. Do it with dial or typing and compare them. It is a task you have to do on YOUR box. It is not a general issue.
Best regards,
The originate command I first posted is a result of clicking on the Dial button, when the dialbox is used, nothing is sent to the asterisk server.
I think we are getting somewhere now. This is the output from debuglevel 511: The above is when signing into FOP2 as extension 4006, which is fixed to device id 14502.
Interestingly, if I try the same thing when logged into FOP as an extension that is not fixed to a device, but logged in to an adhoc device, it works:
Same error as before:
I also checked fop2.cfg for an event_mask line - there is one, but it is commented out.
I tried restarting everything (fop2, asterisk, ctrl-F5 in browser) to make sure that nothing had got in a weird state, but it didn't help.
In the meantime, there is probably a way to fix this problem using the originatechannel configuration parameter. If you have the fop2admin module installed, go to Tools - FOP2 Buttons, and set the originatechannel of one of your users to Local/XXXX@from-internal where XXXX is the user/extension number. Then try again.
Best regards,
I tried setting the originate line, but it did not work. The error message is essentially the same:
Unfortunately I cannot provide you with remote access. As a developer, I understand how difficult it can be to diagnose a problem without access to the system with said problem. The system I am working on will become our live server soon, so has a lot of user information.
If there is anything I can send you directly - database dumps, config files, etc, I'd be happy to provide them. I can also try anything else you might suggest.
Thanks for your continued help.
Im also experiencing this with the latest version. Im using asterisk 1.4.22.
I just downloaded and purchased the basic version.
When i hit enter on the Dial textbox, it does not react nor any debug messages to the asterisk cli is popping out
Appreciate any assistance on this matter
Thanks