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

Wrong arguments numbering [BUG] #50

Open
frenzymind opened this issue Aug 6, 2020 · 0 comments
Open

Wrong arguments numbering [BUG] #50

frenzymind opened this issue Aug 6, 2020 · 0 comments

Comments

@frenzymind
Copy link

Hello.
I run script like this:
AGI(agi-scripts/createCall/run.php,HI,THERE,WITH,ARGUMENTS)

In exmaples I found this way to get arguments:

$variables = $pagiClient->getChannelVariables();

for ($i = 0; $i < $variables->getTotalArguments(); $i++) {
    $pagiClient->getAsteriskLogger()->notice(' -- Argument ' . intval($i) . ': ' . $variables->getArgument($i));
}

but in this case argument with index 0 is always empty and last argument is always absent.

TEMPORARY FIX:

I have to start from "index = 1 to <= total" counts in for loop.

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