-
Notifications
You must be signed in to change notification settings - Fork 77
Open
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels