Skip to content

Wrong arguments numbering [BUG] #50

@frenzymind

Description

@frenzymind

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions