Looking on the Web, i found that is more than the simple code above, i need to edit the manager.conf and write my code more complex, a long task to perform
If i had to guess, it is because the user that is running apache, which runs your php script, has no access to the asterisk console. Is asterisk running under root?
try with
[color=#40FFFF]sudo [/color]/usr/sbin/asterisk -rx "originate SIP/101 extension 100@extensiones"
good luck
if above doesn’t work…
why don’t you try with AMI…
Never follow advice like this unless you are operating “system high” (i.e. everyone with potential access to the whole system is fundamentally trustworthy) or you thoroughly understand the security implications.
In particular, the above attempts to give:
execute to everyone.
set user
set group
sticky status
I’m not sure that execute is meaningful on a pipe, but the fact remains that simply opening up permissions is not something htat should be done lightly.
[quote=“ajayteck”]try with
[color=#40FFFF]sudo [/color]/usr/sbin/asterisk -rx "originate SIP/101 extension 100@extensiones"
good luck
if above doesn’t work…
why don’t you try with AMI…[/quote]
Never follow advice like this unless you are operating “system high” (i.e. everyone with potential access to the whole system is fundamentally trustworthy) or you thoroughly understand the security implications.
In particular, the above attempts to give:
execute to everyone.
set user
set group
sticky status
I’m not sure that execute is meaningful on a pipe, but the fact remains that simply opening up permissions is not something htat should be done lightly.[/quote]
Thanks david, I know that the persmission are not set properly but im working with a test server, not a production server, will change the permission later any sugestion or advise will be aprecitated