Re: [asterisk-users] faxdetect timeout configuration

2020-12-29 Thread David Cunningham
Hi Steve,

Thanks for that. Perhaps the change to res_fax might help us? I'm hoping
someone can say whether or not for sure.


On Wed, 30 Dec 2020 at 11:00, Steve Edwards 
wrote:

> On Wed, 30 Dec 2020, David Cunningham wrote:
>
> > Would anyone be able to tell us how to configure this option for calls
> > arriving via chan_sip?
>
> A 30,000 ft peek suggests you're out of luck unless you switch to pjsip:
>
> -ws10::sedwards:~$ rgrep -l faxdetect_timeout /usr/src/asterisk-17.4.0/
> /usr/src/asterisk-17.4.0/CHANGES
> /usr/src/asterisk-17.4.0/ChangeLog
> /usr/src/asterisk-17.4.0/channels/chan_dahdi.c
> /usr/src/asterisk-17.4.0/channels/chan_dahdi.h
> /usr/src/asterisk-17.4.0/channels/chan_misdn.c
> /usr/src/asterisk-17.4.0/channels/chan_pjsip.c
> /usr/src/asterisk-17.4.0/channels/misdn/chan_misdn_config.h
> /usr/src/asterisk-17.4.0/channels/misdn_config.c
> /usr/src/asterisk-17.4.0/configs/samples/chan_dahdi.conf.sample
> /usr/src/asterisk-17.4.0/include/asterisk/res_fax.h
> /usr/src/asterisk-17.4.0/include/asterisk/res_pjsip.h
> /usr/src/asterisk-17.4.0/res/res_fax.c
> /usr/src/asterisk-17.4.0/res/res_pjsip/pjsip_configuration.c
>
> --
> Thanks in advance,
> -
> Steve Edwards   sedwa...@sedwards.com  Voice: +1-760-468-3867 PST
>  https://www.linkedin.com/in/steve-edwards-4244281
>
> --
> _
> -- 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



-- 
David Cunningham, Voisonics Limited
http://voisonics.com/
USA: +1 213 221 1092
New Zealand: +64 (0)28 2558 3782
-- 
_
-- 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

Re: [asterisk-users] faxdetect timeout configuration

2020-12-29 Thread Steve Edwards

On Wed, 30 Dec 2020, David Cunningham wrote:

Would anyone be able to tell us how to configure this option for calls 
arriving via chan_sip?


A 30,000 ft peek suggests you're out of luck unless you switch to pjsip:

-ws10::sedwards:~$ rgrep -l faxdetect_timeout /usr/src/asterisk-17.4.0/
/usr/src/asterisk-17.4.0/CHANGES
/usr/src/asterisk-17.4.0/ChangeLog
/usr/src/asterisk-17.4.0/channels/chan_dahdi.c
/usr/src/asterisk-17.4.0/channels/chan_dahdi.h
/usr/src/asterisk-17.4.0/channels/chan_misdn.c
/usr/src/asterisk-17.4.0/channels/chan_pjsip.c
/usr/src/asterisk-17.4.0/channels/misdn/chan_misdn_config.h
/usr/src/asterisk-17.4.0/channels/misdn_config.c
/usr/src/asterisk-17.4.0/configs/samples/chan_dahdi.conf.sample
/usr/src/asterisk-17.4.0/include/asterisk/res_fax.h
/usr/src/asterisk-17.4.0/include/asterisk/res_pjsip.h
/usr/src/asterisk-17.4.0/res/res_fax.c
/usr/src/asterisk-17.4.0/res/res_pjsip/pjsip_configuration.c

--
Thanks in advance,
-
Steve Edwards   sedwa...@sedwards.com  Voice: +1-760-468-3867 PST
https://www.linkedin.com/in/steve-edwards-4244281

--
_
-- 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

[asterisk-users] faxdetect timeout configuration

2020-12-29 Thread David Cunningham
Hello,

We see there is addition of a faxdetect_timeout option and fix for
FAXOPT(faxdetect) noted in the Asterisk 13 change log:

https://downloads.asterisk.org/pub/telephony/certified-asterisk/releases/asterisk-certified-13.8-cert2-summary.html

Would anyone be able to tell us how to configure this option for calls
arriving via chan_sip? Is it just a matter of setting the FAXOPT(faxdetect)
variable in the dialplan? What we'd like to do is restrict fax detection to
the first N seconds of a call.

Thanks very much for any advice,

-- 
David Cunningham, Voisonics Limited
http://voisonics.com/
USA: +1 213 221 1092
New Zealand: +64 (0)28 2558 3782
-- 
_
-- 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

Re: [asterisk-users] Chasing down CPU issue

2020-12-29 Thread Dovid Bender
Anthony,

I am looking at the CPU usae of the PID. If it was the percent of the
entire box then it would never reach over 100. We routinely see  Asterisk
going over 200 which is normal since we do have 32 cores on the box.



On Tue, Dec 29, 2020 at 11:55 AM Antony Stone <
antony.st...@asterisk.open.source.it> wrote:

> On Tuesday 29 December 2020 at 17:12:45, Dovid Bender wrote:
>
> > I then watched the PID of asterisk for CPU usage and every so often (3-5
> > seconds) the CPU usage would go from 0.0 to 5.X. I know this is not a lot
> > as it's just 5% of one core
>
> I don't get that.
>
> 5.X is not 5% of one core - it's 100% of five cores.
>
> I'd call that significant.
>
>
> Antony.
>
> --
> 90% of networking problems are routing problems.
> 9 of the remaining 10% are routing problems in the other direction.
> The remaining 1% might be something else, but check the routing anyway.
>
>Please reply to the
> list;
>  please *don't* CC
> me.
>
> --
> _
> -- 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
-- 
_
-- 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

Re: [asterisk-users] Chasing down CPU issue

2020-12-29 Thread Antony Stone
On Tuesday 29 December 2020 at 17:12:45, Dovid Bender wrote:

> I then watched the PID of asterisk for CPU usage and every so often (3-5
> seconds) the CPU usage would go from 0.0 to 5.X. I know this is not a lot
> as it's just 5% of one core

I don't get that.

5.X is not 5% of one core - it's 100% of five cores.

I'd call that significant.


Antony.

-- 
90% of networking problems are routing problems.
9 of the remaining 10% are routing problems in the other direction.
The remaining 1% might be something else, but check the routing anyway.

   Please reply to the list;
 please *don't* CC me.

-- 
_
-- 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

[asterisk-users] Chasing down CPU issue

2020-12-29 Thread Dovid Bender
All,

As I have written in the past I am chasing down a CPU issue with Asterisk.I
took a box running 16.13.0 and unloaded all possible modules. The only ones
I was not able to unload were:
pbx_spool.so
res_adsi.so
res_odbc_transaction.so
res_sorcery_memory_cache.so  res_speech.so
res_stasis_device_state.so
res_stasis_recording.so

I then watched the PID of asterisk for CPU usage and every so often (3-5
seconds) the CPU usage would go from 0.0 to 5.X. I know this is not a lot
as it's just 5% of one core but I am wondering what would Asterisk be doing
every X seconds that would cause a small  jump in usage. I did a tcpdump on
the box and the only traffic other then my ssh session that I see is ARP
and DHCP traffic. Amy ideas how the core of Asterisk works and why it would
randomly use a bit of CPU?

TIA.

Dovid
-- 
_
-- 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

[asterisk-users] serverless fastagi/ARI via AWS lambda and a question about dialplan curl for variables

2020-12-29 Thread Jonathan H
I want a very basic Asterisk install on a pi to play two mp3 files, which
change location, one after another.
I have a tiny node script which reads an rss feed and returns the first 2
episodes.

In this case, running a fast-agi server seems like overkill and as it's
simply 2 or 3 variables, I can make a simple dialplan curl request to a
simple text/plain lamdba http endpoint, and then CUT the variables.
(eg: https://example.com/something.mp3|https://example.com/tuesday.mp3)

But it made me wonder: has anyone ever attempted running fastagi on
something serverless like AWS Lambda? I'm not really sure what the agi tcp
spec is - it doesn't seem to be websockets.

I think ARI might be a different proposition as one can configure an API
websocket gateway on Lambda - go into stasis, websocket to the lambda
running node-ari, job done.
And has anyone attempted that too, or is that also a bit hopeful?

PS: Side-question: is it possible to put a curl result directly into a
variable rather than doing these two back to back (curl > file > file >
variable)
https://wiki.asterisk.org/wiki/display/AST/Asterisk+18+Function_CURL
https://wiki.asterisk.org/wiki/display/AST/Asterisk+18+Function_FILE

Thanks again, hope you all had a good Christmas, and stay safe.

PPS - yes, I know none of the above is production-safe and it sounds a bit
insane; this is a little short term micro-project for my own interest, but
the thought of serverless AGI/ARI for bigger things intrigued me
-- 
_
-- 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