I should have included the debug output:
<PJSIP/Twilio-NA-W-3-In-00000006>AGI Rx << CALLERPRES(allowed)
<PJSIP/Twilio-NA-W-3-In-00000006>AGI Tx >> 510 Invalid or unknown
command
-----Original Message-----
From: asterisk-users [mailto:asterisk-users-bounces at lists.digium.com] On
Behalf Of TTT
Sent: Saturday, July 1, 2023 11:37 AM
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
<asterisk-users at lists.digium.com>
Subject: [asterisk-users] SetCallerPres command gone
The AGI debug command worked well, and I found the offending command:
SetCallerPres(allowed)
That worked in Asterisk 13, but from my google searching it looks like this
command has disappeared in Asterisk 20 (actually everything after ver 13). I
thought it was replaced with CALLERPRES(allowed) but this generated an error too
in Asterisk 20.
Is there a replacement command?
-----Original Message-----
From: Eric Wieling [mailto:ewieling at nyigc.com]
Sent: Saturday, July 1, 2023 1:02 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users
at lists.digium.com>; TTT <lists at telium.io>
Subject: Re: [asterisk-users] AGI script commands
You have to read stdin to accept the data Asterisk sends when the AGI
starts before you can send any AGI commands to Asterisk. Also, "agi
set debug on".
On 6/30/23 21:52, TTT wrote:> I have an AGI script written in PHP that worked great with Asterisk 13.
> I’m porting it to an Asterisk 20 site and have a strange problem. I
> tried running the script from the command line and it works fine; I
> see the script commands written to stdout like
>
> VERBOSE “SmartScreen v1”
>
> But when run from asterisk the CLI shows:
>
> [2023-06-30 15:50:47] VERBOSE[1264031][C-00000025] pbx.c: Executing
> [s at function-smartscreen:2]
EAGI("PJSIP/Twilio-NA-W-3-In-00000068",
> "smartscreen/smartscreen.php,"GEORGE SMITH"
<+1234567890>") in new
> stack
>
> [2023-06-30 15:50:47] VERBOSE[1264031][C-00000025] res_agi.c: Launched
> AGI Script /var/lib/asterisk/agi-bin/smartscreen/smartscreen.php
>
> [2023-06-30 15:50:48] VERBOSE[1264031][C-00000025] res_agi.c:
> <PJSIP/Twilio-NA-W-3-In-00000068>AGI Script
> smartscreen/smartscreen.php completed, returning 0
>
> I never see any messages or commands sent from the script to stdout
> (to
> asterisk) Has the way EAGI operates changed? This script doesn’t use
> any AGI libraries…just simply read/write to stdin/stdout.
>
>
--
http://help.nyigc.net/
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
Check out the new Asterisk community forum at: https://community.asterisk.org/
New to Asterisk? Start here:
https://wiki.asterisk.org/wiki/display/AST/Getting+Started
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users