Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

basic example not working #51

Closed
kunwon1 opened this issue Apr 28, 2017 · 1 comment
Closed

basic example not working #51

kunwon1 opened this issue Apr 28, 2017 · 1 comment

Comments

@kunwon1
Copy link

kunwon1 commented Apr 28, 2017

Hello

Attempting a basic setup, attempting to connect to asterisk and invoke the channel list example, this seems to fail before it even gets to connect step

{
    "require": {
        "php": ">=5.3.9",
        "educoder/pest": "1.0.0",
        "devristo/phpws": "dev-master",
        "greenfieldtech-nirs/phpari": "dev-master"
    }
}
[general]
debug=1
logfile=console

[asterisk_ari]
username=hey
password=redacted
host=redacted
port=8088
endpoint=/ari
transport=ws
#!/usr/bin/php5
<?php

require_once("vendor/autoload.php");

echo "Starting ARI Connection\n";
$ariConnector = new phpari();
echo "Active Channels: " . json_encode($ariConnector->channels()->channel_list()) . "\n";
echo "Ending ARI Connection\n";

?>

user@host:~/phpari$ ./connectivity_test.php
Starting ARI Connection
PHP Notice:  Undefined index: protocol in /home/user/phpari/vendor/greenfieldtech-nirs/phpari/phpari.php on line 100
2017-04-28T10:04:20-05:00 DEBUG (7): Initializing WebSocket Information
2017-04-28T10:04:20-05:00 DEBUG (7): Initializing Stasis Event Emitter
PHP Notice:  Undefined property: phpari::$ariEndpoint in /home/user/phpari/vendor/greenfieldtech-nirs/phpari/src/interfaces/channels.php on line 35
Exception raised: Missing PestObject or empty string
File: /home/user/phpari/vendor/greenfieldtech-nirs/phpari/src/interfaces/channels.php
Line: 36user@host:~/phpari$


@kunwon1
Copy link
Author

kunwon1 commented Apr 28, 2017

I now see #50 - using release-3 resolves this. I recommend updating your composer.json in the example to use dev-release-3 instead of dev-master

@kunwon1 kunwon1 closed this as completed Apr 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant