You can set variables in pjsip.conf on specific endpoints. See
pjsip.conf.sample
On 2/26/21 9:56 AM, Dovid Bender wrote:
Steve,
What language are your AGI's written in? I have been using PHP for a
long time and every time it's launched there seems to be a run on the
CPU. I wonder if I would be better off using Python or something other
than PHP.
On Thu, Feb 25, 2021 at 4:58 PM Steve Edwards <asterisk....@sedwards.com
<mailto:asterisk....@sedwards.com>> wrote:
On Thu, 25 Feb 2021, Dovid Bender wrote:
> Other than creating an AGI that opens a file to get a json object
to set
> as variables is there any other easy way to set variables for a call
> when it starts?
Regardless of if there is a way in dialplan, I'd vote for an AGI to
avoid
what I suspect will be a bunch of fragile, difficult to maintain
dialplan
with quoting issues.
But, I am an AGI kind of guy :)
Some may argue that dialplan MAY be more performant, but I have an AGI
that sets over 2,000 channel variables from MySQL tables and nobody has
ever complained about call startup time.
--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards sedwa...@sedwards.com <mailto:sedwa...@sedwards.com>
Voice: +1-760-468-3867 PST
https://www.linkedin.com/in/steve-edwards-4244281
<https://www.linkedin.com/in/steve-edwards-4244281>--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com
<http://www.api-digital.com> --
Check out the new Asterisk community forum at:
https://community.asterisk.org/ <https://community.asterisk.org/>
New to Asterisk? Start here:
https://wiki.asterisk.org/wiki/display/AST/Getting+Started
<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
<http://lists.digium.com/mailman/listinfo/asterisk-users>
--
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