Callme.php on non AAH install.......SOLVED

I have been trying to get the callme.php script from nervittles.com to work. I am using Broadvoice with pure SIP. I am using FreePBX 2.10 and Asterisk version 1.2.7.1. I am running Fedora core 5 on a dedicated server that is just for my PBX. I did not use the AAH install but compiled the sources for my redhat box. I have not been able to make the callback initiate due to an issue with authentication. I followed the nerdvittles instructions. I have a fully qualified domain and Static IP. The asterisk box is not in the DMZ but in the LAN. I have the appropratiate ports forwarded for SIP through the NAT firewall. All other Asterisk phone functions work EXCEPT for this and it has been COOKING my hide.
CLI output as follows:

== Parsing ‘/etc/asterisk/manager.conf’: Found
== Parsing ‘/etc/asterisk/manager_additional.conf’: Found
== Connect attempt from ‘127.0.0.1’ unable to authenticate
rosecomb*CLI>

This is all I get from the CLI prompt. Anyone?
Zachary

Works great
Open the callme*.php
and read…

you must have a "Manager"
go look maner_custom.conf

to is to easy to not make it hard

tommy13v,
you were right on time!
I took the Nerdvittles example too literlly that all I had to do was put the call me.php in place and the make the [callout] context. Even the URL to make asterisk callback I was putting wrong.

callme.php now has the proper user specified in manager.conf
and the password that is used for admin to login

==========================================

fputs ($fp, “Username phpagi\r\n”);
----to----
fputs ($fp, “Username admin\r\n”);

==========================================

fputs ($fp, “Secret phpagi\r\n”);
----to----
fputs ($fp, “Secret <my_actual_password_from_manager.conf>\r\n”);

==========================================

[callout] context was renamed in callme.php from

fputs ($fp, “Context callout\r\n”);
----to----
fputs ($fp, “Context custom-callout\r\n”);

extensions_custom.conf was changed here

[callout]
exten => s,4,Authenticate(insert_the_DISA_password)
exten => s,5,DISA(no-password|from-internal)
----to----
[custom-callout]
exten => s,1,Answer
exten => s,2,DigitTimeout(5)
exten => s,3,ResponseTimeout(10)
exten => s,4,Authenticate(insert_the_DISA_password)
exten => s,5,DISA(no-password|from-internal)

=========================================

Using the browser URL to generate the ringback was also wonky

The suggestion at Nervittles was
http//my.FQD.here/callme.php?number=sip/bv/number_to_callbackto

I used
http//my.FQD.here/callme.php?number=sip/my_BroadvoiceNumber/number_to_callbackto

I thank you for the reply. I learned alot sorting through the full debug log
;>}
Zachary

This
== Parsing ‘/etc/asterisk/manager.conf’: Found
== Parsing ‘/etc/asterisk/manager_additional.conf’: Found
== Connect attempt from ‘127.0.0.1’ unable to authenticate

really tells us nothing. What changes did you make to the config file
in the callme.php script? Also paste the log from
/var/log/asterisk/full when you attempt to use the script.

You probably have the wrong username for the manager connection in the script.

On 5/27/06, bdz69 [email protected] wrote:

[quote] This is an edited version of a previous post

I have been trying to get the callme.php script from nervittles.com to work. I am using Broadvoice with pure SIP. I am using FreePBX 2.10 and Asterisk version 1.2.7.1. I am running Fedora core 5 on a dedicated server that is just for my PBX. I did not use the AAH install but compiled the sources for my redhat box. I have not been able to make the callback initiate due to an issue with authentication. I followed the nerdvittles instructions. I have a fully qualified domain and Static IP. The asterisk box is not in the DMZ but in the LAN. I have the appropratiate ports forwarded for SIP through the NAT firewall. All other Asterisk phone functions work EXCEPT for this and it has been COOKING my hide.
CLI output as follows:

== Parsing ‘/etc/asterisk/manager.conf’: Found
== Parsing ‘/etc/asterisk/manager_additional.conf’: Found
== Connect attempt from ‘127.0.0.1’ unable to authenticate
rosecomb*CLI>

This is all I get from the CLI prompt. Anyone?
Zachary


Amportal-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amportal-users

[/quote]


Tom Vile
Baldwin Technology Solutions, Inc
Consulting - Web Design - VoIP Telephony
www.baldwintechsolutions.com
Phone: 518-631-2855 x205
Fax: 518-631-2856


Amportal-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amportal-users

Post generated using Mail2Forum (http://www.mail2forum.com)