SOLVED AsteriDex 2020 Fixes

toddhutch

Member
Joined
Jul 12, 2008
Messages
45
Reaction score
1
Good evening/morning,

I read about an update for the RPI that fixes a couple of issues with AsteriDex, is there a patch for the Clearlyip appliance 716 that would work? (Since RPI patches aren't applied to this device)

The problem is that the extension is never dialed.

I see this in the log when trying to use the functionality.
[2020-02-12 22:47:53] NOTICE[505] manager.c: 127.0.0.1 failed to authenticate as 'admin'
[2020-02-12 22:47:53] NOTICE[505] manager.c: 127.0.0.1 failed to authenticate as 'admin'

I saw a very old thread about this, but I was concerned about applying that fix to a 2020.2 for CentOS 7 install.
 
FORUM QUIRK: replace * below with /

1. Look at the manager.conf file in *etc*asterisk and copy your admin password.

2. Insert a line in the [admin] section whitelisting the private LAN subnet of your PBX, e.g.
Code:
permit=192.168.0.1/255.255.255.0

3. Restart Asterisk: fwconsole restart

4. Next, edit callboth.php in *var*www*html*asteridex4.

5. Search for admin and insert your password in the secret field on the next line.
 
Last edited:
I did the above, and put the secret in the callboth.php file and added \r\n to the end.

fputs ($fp, "Secret: I put the secret here\r\n");

No joy, it still acts the same, I rebooted the box just incase something was cached. Also I noticed that when I put an extension in to replace the default 701 and click save (Mine is 1111) it doesn't save the extension.

I think I probably need to read more about asteridex, I haven't configured anything with it. I just tried to run it on the PBX716.

I think I need to configure to config.inc.php

Should I just go through the steps to do the install here, or should I just go through the configuration steps?

 
Last edited:
Good morning,

Thank you for the response. Is it safe to assume that you can have two permit lines?

There is already a -
permit=127.0.0.1/255.255.255.0

So it looks like this-

permit=127.0.0.1/255.255.255.0
permit=192.168.111.1/255.255.255.0


It didn't correct the issue.

Another note, when I go to the page http://192.168.111.84/admin/config.php?display=asteridex, it prompts me to login. I use the admin account that I've setup that I use to access the dashboard.
 
1. Two permit lines is fine
2. If login still fails, then your admin password in manager.conf doesn't match the one in callboth.php
3. run /root/apache-pw-reset to set an Apache admin password. You need that password for web applications like AsteriDex.
 
Confirming- callboth.php

fputs ($fp, "Secret: ThisIsMyPasswordILeftThoseAtTheEnd\r\n");

The \r\n should be left inside of the quotes? My password does not have \r\n but all of the other lines had it at the end.


fputs ($fp, "Action: login\r\n");
fputs ($fp, "Username: admin\r\n");
fputs ($fp, "Secret: ThisIsMyPasswordILeftThoseAtTheEnd\r\n");
fputs ($fp, "Events: off\r\n\r\n");
sleep(1) ;
fputs ($fp, "Action: Originate\r\n");
fputs ($fp, "Channel: $IN\r\n");
fputs ($fp, "Context: custom-callboth\r\n");
fputs ($fp, "Exten: $OUT\r\n");
fputs ($fp, "Priority: 1\r\n\r\n");
fputs ($fp, "Callerid: $CallerID\r\n\r\n");
fputs ($fp, "Timeout: 30\r\n\r\n");
 
Correct. \r\n = carriage return + line feed

And the entry you're adding is the password from the admin section of modules.conf??

Is 192.168.111.x your private LAN and are you accessing AsteriDex from a PC on that private LAN?
 
That is correct, I didn't change the the apache password. The command you mentioned above was not available on my install it was /root/apache-pw-change

Would you like me to try the apache-pw-change I have been copying and pasting the password, so I' pretty sure it's correct when I double check it visually.

Also I'm not seeing any error messages in the log now when I try the asteridex. It just pops up the dialog, and the dialog that says it's going to dial when the line is picked up goes away after about 5 seconds.

Here is what is setup in the manger.conf

[general]
enabled = yes
port = 5038
bindaddr = 0.0.0.0
displayconnects=no ;only effects 1.6+
 
Last edited:
The Apache admin password has nothing to do with making calls with AsteriDex. It's the password that lets you get web access to AsteriDex. The password that matters for click-to-dial in AsteriDex is the admin password in manager.conf which must match the admin secret stored in callboth.php.

Based upon our discussion, I think you might be better off using the Asterisk Phonebook in the FreePBX GUI. It's preconfigured and lets your store phonebook entries just like AsteriDex does.
 
I'm also assuming you have set up a trunk for outbound calls as well as an Outbound Route for NXXNXXXXXX calls using that trunk. And you've tested making a 10-digit call from an extension on your PBX that completes successfully. Correct??
 
I love the Asterisk Phonebook, I have used that in the past to have all of my Grandstream phones have the same phone books local on the phones pointed to speed dial codes. Then I managed all of the phone numbers in the Asterisk Phonebook so when phone numbers change I don't have to update all of the phones. Everyone pretty much calls the same people/vendors, except for me.

I was really hoping to be able to use AsteriDex click to dial, as that saves me a ton of time, and off course I never miss dial phone numbers.

This system is the out of the box pbx716, with a single trunk setup with Skyetel, inbound and outbound has been configured and works. IVR has been setup, and is pushing inbound to the extension 1111 which is the one I'm trying to get Asteridex to use.
 
You need to use extension 701 for AsteriDex click-to-dial.
 
I added a extension 701 to my clearlyip phone as registration 2, and confirmed I can dial outbound calls from it, and other internal phones can call the extension.

When I change the extension on this page - http://192.168.111.84/admin/config.php?display=asteridex and click save, it does save the new extension.

So I hit save with 701 entered, and now the popup is showing 701

Extension 701 is ringing now.
When 701 answers, call to 18002527522 will be placed.

It was showing the below information.

Extension 1111 is ringing now.
When 1111 answers, call to 18002527522 will be placed.

It doesn't dial the 701 extension and the popup window disappears after about 5 seconds.
 
If that doesn't fix it, you probably need to clear out all the cookies in your browser after setting it back to 701.
 
I'm using Legacy SIP.

I'm not using the chan_pjsip, I'm using the chan_sip.
 

Members online

No members online now.

Forum statistics

Threads
26,687
Messages
174,410
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top