Re: [asterisk-users] HELP! AGI AUTOHANGUP does not seem to hangup the channel.

2021-05-26 Thread Jonathan H
8:01, Joshua C. Colp wrote: > > On Wed, May 26, 2021 at 1:58 PM Jonathan H wrote: >> >> I have also tried configuring pjsip wizard like this. >> >> endpoint/rtp_timeout=5 >> >> And I see this shortly after the "hangup" command has be

Re: [asterisk-users] HELP! AGI AUTOHANGUP does not seem to hangup the channel.

2021-05-26 Thread Jonathan H
, 26 May 2021 at 17:22, Jonathan H wrote: > > https://wiki.asterisk.org/wiki/display/AST/Asterisk+18+AGICommand_set+autohangup > > "Cause the channel to automatically hangup at time seconds in the future" > > SET AUTOHANGUP TIME > > Looks great. Except... it doesn't

[asterisk-users] HELP! AGI AUTOHANGUP does not seem to hangup the channel.

2021-05-26 Thread Jonathan H
https://wiki.asterisk.org/wiki/display/AST/Asterisk+18+AGICommand_set+autohangup "Cause the channel to automatically hangup at time seconds in the future" SET AUTOHANGUP TIME Looks great. Except... it doesn't. It just causes AGI to send "HANGUP" and any audio to stop playing. It does NOT hangup

Re: [asterisk-users] AGI: Why is stream file and wait for digit result ASCII, but get data is "normal"?

2021-05-24 Thread Jonathan H
On Mon, 24 May 2021 at 18:41, Steve Edwards wrote: > > If you're not using a library, you may want to consider it. 'Comma' is not a valid 'digit' so this the same as '#*0123456789' > I'm using ts-agi which has served me well. In the docs, it suggests phonekeys is an array:

[asterisk-users] AGI: Why is stream file and wait for digit result ASCII, but get data is "normal"?

2021-05-24 Thread Jonathan H
Having been scratching my head the whole morning to find a bug, I now have an A4 poster on the wall (not joking!) saying: "get data" = *number* "wait for digit" and "stream file" = *ascii !!!* As you can see here: AGI Rx << STREAM FILE "hello-world" "1,2,3,4,5,6,7,8,9,*,0,#" AGI Tx >> 200

Re: [asterisk-users] S3 Bucket support for playing sound files

2021-05-06 Thread Jonathan H
What authentication? I just point to the bucket URL. On Thu, 6 May 2021, 21:28 Dovid Bender, wrote: > Jonathan, > > How do you get around the authentication part? In my case I am using GSM > files so there are no issues there. > > > > On Thu, May 6, 2021 at 4:11 AM J

Re: [asterisk-users] S3 Bucket support for playing sound files

2021-05-06 Thread Jonathan H
d it might be if Asterisk were to offer a way of using ControlPlayback etc with an external library? Good luck! -- Forwarded message ----- From: Jonathan H Date: Wed, 23 Dec 2020 at 09:33 Subject: Re: [asterisk-users] Playing MP3's in Asterisk To: Asterisk Users Mailing List - Non-

Re: [asterisk-users] Help needed with ARI RTP externalMedia bridging please

2021-01-04 Thread Jonathan H
etc! Thanks again. On Mon, 4 Jan 2021 at 17:03, Joshua C. Colp wrote: > On Sun, Jan 3, 2021 at 4:14 PM Jonathan H wrote: > >> Very simply, I want to pipe some external audio into a channel (bridge) >> using the externalMedia channel option. >> Running Asterisk 18 on ubu

Re: [asterisk-users] How do I extract CPLAYBACKOFFSET from ARI playback?

2021-01-04 Thread Jonathan H
On Mon, 4 Jan 2021 at 10:17, Joshua C. Colp wrote: > On Mon, Jan 4, 2021 at 6:14 AM Jonathan H wrote: > >> Following the playback.js ari-client example, I now need to store the >> current playback offsetms, either when it was skipped or hung up on. >> >> The inform

[asterisk-users] How do I extract CPLAYBACKOFFSET from ARI playback?

2021-01-04 Thread Jonathan H
Following the playback.js ari-client example, I now need to store the current playback offsetms, either when it was skipped or hung up on. But I can't seem to find it. I know that https://wiki.asterisk.org/wiki/display/AST/Asterisk+18+Application_ControlPlayback sets CPLAYBACKOFFSET but that

[asterisk-users] Help needed with ARI RTP externalMedia bridging please

2021-01-03 Thread Jonathan H
Very simply, I want to pipe some external audio into a channel (bridge) using the externalMedia channel option. Running Asterisk 18 on ubuntu, here's what I did to try and test things out: open a console tab vlc -vvv https://media-ssl.musicradio.com/LBCUK --sout

[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

Re: [asterisk-users] Playing MP3's in Asterisk

2020-12-23 Thread Jonathan H
for music on > hold. I simply had asterisk call ffmpeg to play the files (to get around > all the issues). Where I have local files I convert them over to wav or gsm > and call it a day. > > > On Wed, Dec 23, 2020 at 4:33 AM Jonathan H wrote: > >> Hi all, >> >> R

Re: [asterisk-users] Playing MP3's in Asterisk

2020-12-23 Thread Jonathan H
Hi all, Returning to the issue of mp3 support in Asterisk, it seems it is using a build from 1997?! http://svn.digium.com/svn/thirdparty/mp3/trunk/layer3.c I have the same problems as everyone with the mp3 add-on, but now a new one: - "mp3/interface.c: Junk at the beginning of frame

Re: [asterisk-users] CURLOPT(useragent) fails with Set requires an '=' to be a valid assignment

2020-12-14 Thread Jonathan H
Of course! Thank you. I had not thought about escaping it because ";" is not a character I've normally had to escape. Thanks again for this - so obvious now you mention it. On Mon, 14 Dec 2020 at 18:54, Joshua C. Colp wrote: > > On Mon, Dec 14, 2020 at 2:51 PM Jonathan H wrote:

Re: [asterisk-users] CURLOPT(useragent) fails with Set requires an '=' to be a valid assignment

2020-12-14 Thread Jonathan H
, 14 Dec 2020 at 18:34, Richard Mudgett wrote: > > There are semicolons in the useragent string you are trying to set. If that > is the exact dialplan line then > those semicolons are being seen as a start of a comment. > > Richard > > On Mon, Dec 14, 2020 at 12:25 PM Jonatha

[asterisk-users] CURLOPT(useragent) fails with Set requires an '=' to be a valid assignment

2020-12-14 Thread Jonathan H
All my other CURLOPT settings like timeout work fine. But this: same => n,Set(CURLOPT(useragent)="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.41 Safari/537.36") give the following warning on dialplan reload, with and without quotes around

Re: [asterisk-users] Any api (agi/ari/ami) equivalent of "core show calls"?

2020-06-14 Thread Jonathan H
g me sound ungrateful. I don't mean to be! On Sun, 14 Jun 2020, 22:39 Steve Edwards, wrote: > On Sun, 14 Jun 2020, Jonathan H wrote: > > > Thank you... but "just update the database" - hmm, what database? > > I used MySQL. > > > Did you mean ARI? I

Re: [asterisk-users] Any api (agi/ari/ami) equivalent of "core show calls"?

2020-06-14 Thread Jonathan H
Thank you... but "just update the database" - hmm, what database? Did you mean ARI? I still can't find the command! The asterisk wiki is somewhat, um... spread around! On Sat, 13 Jun 2020 at 16:56, Steve Edwards wrote: > > On Sat, 13 Jun 2020, Jonathan H wrote: > &

[asterisk-users] Any api (agi/ari/ami) equivalent of "core show calls"?

2020-06-13 Thread Jonathan H
I'm parsing ` sudo asterisk -rx "core show calls" | grep active | head -c 1 ` as an external call from within the Asterisk dialplan then passing it to agi, but this seems really hacky and ugly. However, I cannot find any ARI/AGI/AMI function (or global variable I can get with agi) which shows me

Re: [asterisk-users] Old Asterisk forums not working

2020-05-15 Thread Jonathan H
ver *above* 1.5 seconds - DNS, SSL and Connect all about 50ms >From UK London test point, never *under *4 seconds - DNS, SSL and Connect all about 500ms (10x more) Anyway, not to worry, a few seconds is fine, just thought I'd point out the discrepancy! Thanks again for the project/service Jo

Re: [asterisk-users] Old Asterisk forums not working

2020-05-15 Thread Jonathan H
olp wrote: > On Mon, Mar 23, 2020 at 9:30 AM Jonathan H wrote: > >> Hope you're all well. >> >> I know we should be using https://community.asterisk.org/ but until >> someone lets Google know that it's moved, all the search results (and >> Asterisk's own search r

[asterisk-users] Tip/Question about encoding temporary data for storage in Asterisk variable to use in AGI

2020-05-13 Thread Jonathan H
I wanted to store a JSON object between agi requests for the duration of a call. Turns out asterisk does NOT like a stringified JSON object! AGI complains of "520-Invalid command syntax" So, I just base64 encode/decode it. Assuming I don't need to manipulate the JSON object within Asterisk

Re: [asterisk-users] Better way of streaming radio than "musiconhold" for Asterisk 17.4 ?

2020-05-06 Thread Jonathan H
Thanks Dan - might have to scratch my head over that one for a while! The phrase "you make your own RTP server" has made me all twitchy ;) Jonathan On Wed, 6 May 2020 at 07:21, Dan Jenkins wrote: > Hi Jonathan, > > I'd probably go down the external media route in the ARI no

[asterisk-users] Better way of streaming radio than "musiconhold" for Asterisk 17.4 ?

2020-05-03 Thread Jonathan H
Way back in 2016 the only way to allow callers to listen in to a stream "at will" was to do the following: moh.conf [radio] mode=custom application=/usr/bin/mplayer https://example.com/stream.mp3 -quiet -ao pcm:file=/dev/stdout -af volume=5,resample=8000,channels=1,format=alaw extensions.conf

[asterisk-users] Old Asterisk forums not working

2020-03-23 Thread Jonathan H
Hope you're all well. I know we should be using https://community.asterisk.org/ but until someone lets Google know that it's moved, all the search results (and Asterisk's own search results) come from https://forums.asterisk.org/ In most browsers, it's not displaying; in Firefox, it says:

Re: [asterisk-users] AGI: "Get variable" returns variable VALUE vs "Get full variable" returns variable NAME - bug or my misunderstanding?

2019-12-27 Thread Jonathan H
, Sean Bright wrote: > On 12/27/2019 2:24 PM, Jonathan H wrote: > > AGI Rx << SET VARIABLE myVar "Hello > > World!!!" > > AGI Tx >> 200 result=1 > > AGI Rx << GET FULL VARIABLE myVar > > AGI Tx >> 200 result=1 (myVar) > > >

[asterisk-users] AGI: "Get variable" returns variable VALUE vs "Get full variable" returns variable NAME - bug or my misunderstanding?

2019-12-27 Thread Jonathan H
Just trying out a node agi package (https://github.com/sergey12313/ts-agi/ , and it wasn't behaving as I expected, but when turning on agi debug, it looks like it might be Asterisk (using 17.1.0) This works as expected AGI Rx << SET VARIABLE myVar "Hello World!!!" AGI Tx >> 200 result=1 AGI Rx

[asterisk-users] Simple, fast single-word offline free speech recognition in Asterisk (or as an AGI)?

2019-11-25 Thread Jonathan H
e changed :) On Wed, 16 Jan 2019 at 17:42, Jonathan H wrote: > When I last looked into this a couple of years ago, simple one-word speech > recognition was rather complex and slow. > > At the moment, I use Google Speech Recognition which uses no local > processing power, and is

Re: [asterisk-users] Multiple readfile oddities, newlines etc

2019-10-29 Thread Jonathan H
_publish_varset: Error creating message -- Executing [s@root:42] Set("Local/s@root-0011;2", "feature=1") in new stack -- Executing [s@root:43] Verbose("Local/s@root-0011;2", "1,feature is 1 unfilteredfeat is ▒=") in new stack feature is 1 unfilteredf

[asterisk-users] Simple one-word offline free speech recognition in Asterisk (or as an AGI)?

2019-01-16 Thread Jonathan H
When I last looked into this a couple of years ago, simple one-word speech recognition was rather complex and slow. At the moment, I use Google Speech Recognition which uses no local processing power, and is very accurate and fast, allowing me to run on a very low end VPS. However, with the

[asterisk-users] Is order of channels shown by Function_CHANNELS consistently newest first?

2018-10-26 Thread Jonathan H
After originating a PJSIP call, I need to get the channel for that call, so I can end it later in a hangup handler. So I use this: https://wiki.asterisk.org/wiki/display/AST/Function_CHANNELS In this bit of dialplan: same => n,Originate(PJSIP/0203123456@voipfone-205

Re: [asterisk-users] How can I connect an existing Confbridge to a new SIP channel when DIALEDPEERNAME is empty?

2018-10-25 Thread Jonathan H
-an-existing-conference-to-a-new-call/76806/7 Many thanks in advance. On Wed, 24 Oct 2018 at 17:17, Jonathan H wrote: > Asterisk 16.0, PJSIP > > For the first caller to a conference, I want to dial out and bridge that > conference to a new PJSIP external call. > > For the next ca

[asterisk-users] How can I connect an existing Confbridge to a new SIP channel when DIALEDPEERNAME is empty?

2018-10-24 Thread Jonathan H
Asterisk 16.0, PJSIP For the first caller to a conference, I want to dial out and bridge that conference to a new PJSIP external call. For the next callers, I just want them to join the local Asterisk conference. After the last caller leaves the conference, I want to hangup the call it

Re: [asterisk-users] After updating to 16 "Some non-required modules failed to load"

2018-10-23 Thread Jonathan H
Thanks Richard - any idea if these matter? And how to stop the errors: cdr_sqlite3_custom declined to load. cel_sqlite3_custom declined to load pbx_ael declined to load Standard 16.0 build, just updated a 15.4; nothing fiddled with in menuselect. On Tue, 23 Oct 2018 at 23:02, Richard Mudgett

Re: [asterisk-users] Struggling to make sense of sending DTMF and why DIAL is trying to make multiple calls?

2018-10-18 Thread Jonathan H
-to-make-multiple-calls/75556/2 Many thanks On Thu, 2 Aug 2018 at 12:44, Jonathan H wrote: > > Hi there; I'm trying to dial into a Zoom conference, send some digits, > wait, send a name, and be "in the room", as it were. > > I thought this would work: > > same

[asterisk-users] After updating to 16 "Some non-required modules failed to load"

2018-10-18 Thread Jonathan H
I just noticed this upon startup since updating from 15.6.1 to 16.0.0 - do any of these matter? [Oct 18 12:12:18] WARNING[4489]: loader.c:2228 load_modules: Some non-required modules failed to load. [Oct 18 12:12:18] ERROR[4489]: loader.c:2243 load_modules: res_pjsip_transport_websocket declined

[asterisk-users] Connecting an existing conference via PJSIP?

2018-10-17 Thread Jonathan H
Let's say I have a conference room of 8 users. At some point in the evening, we need to hook up with a Zoom conference. That means hooking up that existing pool of users to a new PJSIP channel. An admin would dial in, enter a pin, and initiate that connection. Sounds really simple, but I've

Re: [asterisk-users] Spontaneous reboot due to MySQL lookups ?

2018-10-12 Thread Jonathan H
Or better still, skip straight to the current LTS version 16 which was release a few days ago, supported right through until 10-2023! If you're going to do a big upgrade, might as well leap onto the current release :) https://wiki.asterisk.org/wiki/display/AST/Asterisk+Versions On Fri, 12 Oct

[asterisk-users] What's the best way of extracting call data which has been written to flat files?

2018-10-11 Thread Jonathan H
I'm dealing with a blind charity phone information system which writes its logs to two flat csv files (Although the log COULD actually now be written to dynamoDB or sqlite3, too if needed). The first file contains basic call information, one line per call and a unique call ID (distinct from

Re: [asterisk-users] Spontaneous reboot due to MySQL lookups ?

2018-10-04 Thread Jonathan H
On Thu, 4 Oct 2018 at 20:36, Jonas Kellens wrote: > I stick to 1.8 because it just works. Well, clearly it doesn't because you're posting here! In a few days time, the *8-year-old* Asterisk 1.8 line will be *three years past EOL.* That means End of Life. Do not use. No more support. Now, if

[asterisk-users] Struggling to make sense of sending DTMF and why DIAL is trying to make multiple calls?

2018-08-02 Thread Jonathan H
Hi there; I'm trying to dial into a Zoom conference, send some digits, wait, send a name, and be "in the room", as it were. I thought this would work: same => n,Dial(PJSIP/02036950088@voipfone-205,12,r(callWaiting)D(WWW12345W#WW::)) But it didn't, so I tried all of these: same =>

Re: [asterisk-users] dialplan reload not showing debug info even with debug on (ast 15.5)

2018-07-29 Thread Jonathan H
debug is still 4. But it always respects "core set debug" in whichever direction of verbosity is required. Thanks again! On Sun, 29 Jul 2018 at 13:14, Richard Mudgett wrote: > > > > On Sat, Jul 28, 2018 at 1:10 PM, Jonathan H wrote: >> >> I've not needed to do a

Re: [asterisk-users] Any way of "flattening out" 2 channels back into one?

2018-07-28 Thread Jonathan H
ds Asterisk Hankup the call > > Regards > > --- > I'm SoCIaL, MayBe > > On 7/28/18 16:08, Jonathan H wrote: > > Last question for today, I promise! > > > > The problem: In order to disconnect calls after x minutes, I need to do > > this: > > > > [se

Re: [asterisk-users] SRV with pjsip on Asterisk 15.5: yes or no?

2018-07-28 Thread Jonathan H
OK, thanks. Shall I file a ticket to get that example file updated? On Sat, 28 Jul 2018 at 21:50, Joshua Colp wrote: > > On Sat, Jul 28, 2018, at 5:42 PM, Jonathan H wrote: > > I'm trying to configure sip2sip, which says: > > http://wiki.sip2sip.info/projects/sip2sip/wiki/

Re: [asterisk-users] Can someone please help with this sip2sip pjsip_wizard "no matching endpoint" issue?

2018-07-28 Thread Jonathan H
again. Shall I file a bug? On Sat, 28 Jul 2018 at 21:55, Joshua Colp wrote: > > > > On Sat, Jul 28, 2018, at 3:06 PM, Jonathan H wrote: > > Using pjsip 2.7.2 on Asterisk 15.5 > > Really struggling to make sense of translating these old 1.8 SIP > > instructions into a n

[asterisk-users] Any way of "flattening out" 2 channels back into one?

2018-07-28 Thread Jonathan H
Last question for today, I promise! The problem: In order to disconnect calls after x minutes, I need to do this: [setup] exten => setup,1,Answer() same => n,Set(LIMIT_PLAYAUDIO_CALLER=yes) same => n,Set(LIMIT_WARNING_FILE=/var/lib/asterisk/sounds/en_GB_TNS/time_limit_reached) same

[asterisk-users] SRV with pjsip on Asterisk 15.5: yes or no?

2018-07-28 Thread Jonathan H
I'm trying to configure sip2sip, which says: http://wiki.sip2sip.info/projects/sip2sip/wiki/SipDevicesAsterisk "Asterisk, is currently unable to handle more that one result for a DNS SRV lookup, and the Asterisk configuration needed for getting it work with the SIP2SIP service is not trivial" It

[asterisk-users] dialplan reload not showing debug info even with debug on (ast 15.5)

2018-07-28 Thread Jonathan H
I've not needed to do a dialplan reload for a while, so I don't know exactly which version is stopped working, but on 15.5, I'm not seeing ANY debug info at any debug level. So I'm not really sure how to find mistakes in the dialplan. This is all I get... how do I enable this debug mode to see

[asterisk-users] Can someone please help with this sip2sip pjsip_wizard "no matching endpoint" issue?

2018-07-28 Thread Jonathan H
Using pjsip 2.7.2 on Asterisk 15.5 Really struggling to make sense of translating these old 1.8 SIP instructions into a neat pjsip_wizard conf suitable for 2018 http://wiki.sip2sip.info/projects/sip2sip/wiki/SipDevicesAsterisk#Version-18 In pjsip_wizard.conf, I have the following, which seems to

Re: [asterisk-users] G729

2018-07-26 Thread Jonathan H
Hmmm, again, this conversation has just faded out. I wondered why no response from Digium? So I found this discussion - https://community.asterisk.org/t/why-does-g729-still-require-licensing/71920/8 - seems very clear that G729 is patent free, but still no response from Digium. Also, the link to

[asterisk-users] TALK_DETECT - having trouble figuring it out.

2018-02-23 Thread Jonathan H
Is there a bit more of a detailed explanation of TALK_DETECT anywhere? I googled and found nothing really beyond the wiki at https://wiki.asterisk.org/wiki/display/AST/Asterisk+15+Function_TALK_DETECT I really only want it to listen for one side (the caller) but it seems to listen to both. OK, I

Re: [asterisk-users] What does pct mean?

2018-02-13 Thread Jonathan H
Um, I may be missing something here, but if it was "percent", wouldn't it simply be the internationally recognised symbol for percent, the, um, percent symbol? % That's why I don't think it can be percent. On 13 February 2018 at 18:32, Eric Wieling wrote: > Could this gap

[asterisk-users] ast_iostream_close: SSL_shutdown() failed: Underlying BIO error: Bad file descriptor

2018-02-09 Thread Jonathan H
Before I file a bug any ideas? Got valid certs, working fine for everything I need them from, but this seems to popup randomly in my logs. [Feb 9 12:43:07] ERROR[14968]: iostream.c:507 ast_iostream_close: SSL_shutdown() failed: error:0005:lib(0):func(0):DH lib, Underlying BIO error: Bad

Re: [asterisk-users] "Cannot write OGG/Opus streams. Sorry" - any ideas?

2018-01-28 Thread Jonathan H
. Thanks. On 28 Jan 2018 9:47 pm, "Joshua Colp" <jc...@digium.com> wrote: > On Sun, Jan 28, 2018, at 5:34 PM, Jonathan H wrote: > > So as y'all know, with your help I managed to get Opus installed at > last. Yay! > > > > With excitement, I wrote my dialplan

[asterisk-users] "Cannot write OGG/Opus streams. Sorry" - any ideas?

2018-01-28 Thread Jonathan H
So as y'all know, with your help I managed to get Opus installed at last. Yay! With excitement, I wrote my dialplan, dialled in, and [Jan 28 21:30:11] ERROR[29977][C-001d]: format_ogg_opus.c:95 ogg_opus_rewrite: Cannot write OGG/Opus streams. Sorry :( [Jan 28 21:30:11]

Re: [asterisk-users] Installation instructions for Opus are incorrect - maybe?

2018-01-27 Thread Jonathan H
curl >= version 7.10.1... yes checking whether libcurl is usable... yes checking for curl_free... yes Then of course, make menuselect worked and I now have opus! Hmm, as it's free and open, I wonder why opus isn't a core codec? Anyway, thanks for t

Re: [asterisk-users] Installation instructions for Opus are incorrect - maybe?

2018-01-27 Thread Jonathan H
On 27 January 2018 at 09:27, Ludovic Gasc <gml...@gmail.com> wrote: > Hi Jonathan, > > If you put the cursor on the line XXX, you will see what are the > dependencies are missing to enable the option. > In this case, it's certainly curl that is missing on your system. Ah, O

[asterisk-users] Installation instructions for Opus are incorrect - maybe?

2018-01-26 Thread Jonathan H
Before I got an log a ticket, can I just check I'm not doing anything wrong? In 15.2, to install Opus: 1) run `make menuselect` 2) Highlight "Codec Translators" and press enter. 3) Scroll down to "codec_opus" in the section labeled "External" 4) Press enter to select the codec if it is not

Re: [asterisk-users] Can anyone help with a quick app_record.c module improvement and can explain over-riding modules?

2018-01-23 Thread Jonathan H
t; n,AGI(agi-ruvoip-net.php,speeddial-voice,${ARG1},${tmp_recor > d_file}-in.wav16) > same => n,NoOp(Voice recognition result: "${agi_result}") > same => n,Gotoif($[ "${agi_result}" != "found" ]?end) > same => n,Return(${agi_call_exten}) >

Re: [asterisk-users] Can anyone help with a quick app_record.c module improvement and can explain over-riding modules?

2018-01-20 Thread Jonathan H
On 20 January 2018 at 23:30, Tim S wrote: > I have seen this take over 2 seconds before on a sluggish machine. Thanks - my host uses SSD and everything seems pretty quick, but I'll give it a 1 second pause. > you'd need to pipe that to a Google Speech API tunnel. >

Re: [asterisk-users] Can anyone help with a quick app_record.c module improvement and can explain over-riding modules?

2018-01-20 Thread Jonathan H
Oh, what a good idea! That's exactly the kind of lateral thinking I was hoping someone would come up with. I thought it was called MixMonitor, and tried to wrap my head around it but couldn't. I'll give this a go tomorrow and let you know what I come up with! Many thanks, Jonathan T On 20

[asterisk-users] Can anyone help with a quick app_record.c module improvement and can explain over-riding modules?

2018-01-20 Thread Jonathan H
Hello, I want to start recording with a prompt of "press or say 1 to 5". If no DMTF is pressed, I want to send the recording to Google Speech to get the number back (got that part working already). If any dtmf key is pressed while Application_Record is running with option y, then the recording

Re: [asterisk-users] Handling a long-running agi on hangup-handler?

2018-01-20 Thread Jonathan H
atch from the controlling terminal so we don't become a > zombie when we die. > if (posix_setsid() == -1) { > die("could not detach from terminal"); > > } > > > On 01/18/2018 12:27 PM, Jonathan H wrote: > > I know that hangup handlers (ht

[asterisk-users] Handling a long-running agi on hangup-handler?

2018-01-18 Thread Jonathan H
I know that hangup handlers ( https://wiki.asterisk.org/wiki/display/AST/Hangup+Handlers) have to finish quickly. So it's no surprise that my speech to text agi which takes 8 seconds gets killed. However, can anyone think of a way round this? So, once the caller has hung up, I need to take one

Re: [asterisk-users] Simple speech recognition for driving IVR - "press or say one".

2017-12-10 Thread Jonathan H
ting and recompiling a core application or doing any complex workaround? Thanks On 6 December 2017 at 23:25, Jonathan H <lardconce...@gmail.com> wrote: > Thanks for your responses - it looks like I have the following > options, in order of ease: > > 1: Modify and recompile ap

Re: [asterisk-users] Simple speech recognition for driving IVR - "press or say one".

2017-12-06 Thread Jonathan H
Please check code of it. It listens for # and it is quite easy to add all > other keys 1-9 and etc > > Then change code accordingly so script returns value of key. > > As far as I remember it wasn't hard. > > With kind regards, > > > Jurijs > > On Wed, Dec 6, 2017 at

Re: [asterisk-users] Simple speech recognition for driving IVR - "press or say one".

2017-12-06 Thread Jonathan H
Thanks Jurijs, Yes, in fact I'm already using that, and it works fine. The problem here is that I cannot find a way of recording speech AND listening for a DTMF digit being pressed as an alternative. That's where the problem lies. J. --

[asterisk-users] Simple speech recognition for driving IVR - "press or say one".

2017-12-06 Thread Jonathan H
Briefly: I want to be able to have "press or say (number)", with Asterisk listening for a spoken number, but accepting a DTMF digit, too. I'm posting everything I found so far, here, partly to show working, but also in case anyone else finds it useful. So, moving on This looked hopeful for a

Re: [asterisk-users] ASR Suggestions for small dictionnary (<1000 entries) lookup in France/french

2017-10-22 Thread Jonathan H
Having experimented with something similar myself, I'd say you are about to create a vast amount of complexity by moving away from keypad entry. Also, a lot of the natural language APIs don't support French - for example, Amazon Lex or https://dialogflow.com would be great for this as they

Re: [asterisk-users] speech-recog.agi

2017-10-19 Thread Jonathan H
<cur...@telecomab.mx> wrote: > On 10/19/17 3:53 PM, Jonathan H wrote: > >> That's because it uses a deprecated API and endpoint. >> >> However, funny you should ask this, because I've just finished >> updating my Google TTS routine to take advantage of the new >&

Re: [asterisk-users] speech-recog.agi

2017-10-19 Thread Jonathan H
That's because it uses a deprecated API and endpoint. However, funny you should ask this, because I've just finished updating my Google TTS routine to take advantage of the new streamlined API. If you can wait a couple of days, I've stick it up on the repo - BUT... it's going to require

[asterisk-users] Asterisk 15, Jack, streams, speech recognition… so many questions!

2017-09-22 Thread Jonathan H
I know Asterisk has a speech recognition interface built in, but I need to go beyond that, with APIs like Lex, Wit or Luis etc. There's also the very cheap/free high quality speech synthesis services like Amazon Polly, which can also return an audio stream object (or save a file). These APIs can

Re: [asterisk-users] Asterisk Voicemail changes

2017-08-31 Thread Jonathan H
rs-boun...@lists.digium.com [mailto:asterisk-users- > boun...@lists.digium.com] *On Behalf Of *Jonathan H > *Sent:* Thursday, August 31, 2017 6:13 PM > > *To:* Asterisk Users Mailing List - Non-Commercial Discussion > *Subject:* Re: [asterisk-users] Asterisk Voicemail changes > &

Re: [asterisk-users] Asterisk Voicemail changes

2017-08-31 Thread Jonathan H
m looking for. If possible, > I’d like to modify the source and re-compile the existing voicemail to make > it match what I have today. > > > > Thanks. > > > > *From:* asterisk-users-boun...@lists.digium.com [mailto:asterisk-users- > boun...@lists.digium.com] *On Behalf Of *Jonath

Re: [asterisk-users] Asterisk Voicemail changes

2017-08-31 Thread Jonathan H
What about MiniVM? http://doxygen.asterisk.org/trunk/App_minivm.html Example: http://doxygen.asterisk.org/trunk/Config_minivm_examples.html That said, I don't know if it's actually actively developed or stable (docs last updated 2015 - Asterisk team?) Also make sure your Asterisk is up to date

Re: [asterisk-users] Integration of Google Speech API V2

2017-07-19 Thread Jonathan H
git repository for the API mentioned is https://github.com/GoogleCloudPlatform/python-docs-samples/tree/master/speech/cloud-client Hope that all makes sense! On 19 July 2017 at 10:17, Rahul MathuR <rahul.ultim...@gmail.com> wrote: > Hi Jonathan > > Thanks ! > That would i

Re: [asterisk-users] Integration of Google Speech API V2

2017-07-19 Thread Jonathan H
Yes! But I can only tell you if you can use Python, as I used Google's own demo code. If you can hold on for half an hour, I'll remove personal info and put a version up on Github if you're interested? On 19 July 2017 at 09:37, Rahul MathuR wrote: > Hi, > > I'm

Re: [asterisk-users] Asterisk Wiki down?

2017-07-09 Thread Jonathan H
Definitely not just you - not working for me either, and tested from a few ping sites too On 9 July 2017 at 20:39, Dovid Bender wrote: > I am tryint to get to > https://wiki.asterisk.org/wiki/display/AST/Function_REGEX both via V6 and v4 > and it seems to be timing out. > >

Re: [asterisk-users] Simplest way of executing a non-blocking (async) python AGI script?

2017-07-01 Thread Jonathan H
t; IM: mhter...@jabber.mundoopensource.com.br > https://www.mundoopensource.com.br > https://twitter.com/mhterres > https://linkedin.com/in/marceloterres > > > On 30 June 2017 at 22:23, Jonathan H <lardconce...@gmail.com> wrote: >> OK, I give up and come grovelling, "Fork&quo

Re: [asterisk-users] Simplest way of executing a non-blocking (async) python AGI script?

2017-06-30 Thread Jonathan H
f __name__ == '__main__': print('before process') mp.set_start_method('fork') q = mp.Queue() p = mp.Process(target=f, args=('asterisk',)) p.start() sys.exit() On 30 June 2017 at 19:59, J Montoya or A J Stiles <asterisk_l...@earthshod.co.uk> wrote: > On Friday 30 Jun 201

[asterisk-users] Simplest way of executing a non-blocking (async) python AGI script?

2017-06-30 Thread Jonathan H
I use a python AGI which pulls some info from a web service, which should take half a second. Sometimes, it takes 5-10 seconds which blocks the dialplan execution, but the dialplan should continue immediately as it's not dependent on the AGI/web service data. What's the simplest, easiest

Re: [asterisk-users] Difference between Application Set and Function SET?

2017-06-16 Thread Jonathan H
OK, thanks. That sort of makes sense. Is it case sensitive? Bonus quickie while I'm here (not worth own thread) - Asterisklint complains that: H_PAT_NON_CANONICAL: pattern '_#' is not in the canonical form '#' for the line exten => _#,1,Goto(s,1) I'm sure I read somewhere it should be _#. Am

[asterisk-users] Difference between Application Set and Function SET?

2017-06-16 Thread Jonathan H
It was only when I ran AsteriskLint over my dialplan that I noticed this: https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+Application_Set https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+Function_SET Hmmm, they both seem to do the same thing. Or don't they? Confused! --

Re: [asterisk-users] OT: Explain where mailing list bouncing comes from ?

2017-06-16 Thread Jonathan H
On 16 June 2017 at 08:38, J Montoya or A J Stiles wrote: > It's hardly Digium's fault, if Google have decided that playing nicely with > syntactically-valid messages doesn't fit their business model Not really Gmail's fault, either. Someone above said they had

Re: [asterisk-users] OT: Explain where mailing list bouncing comes from ?

2017-06-12 Thread Jonathan H
Me too, also gmail. I emailed the list owner a couple of days ago, but no reply. Is everyone else affected also forwarding to another email address (gmail or not)? Could be wrong, but I'm guessing there may be an incorrect DMARC policy somewhere - although this is the only fail I could find in

Re: [asterisk-users] Best way to know a call is being transfered

2017-05-29 Thread Jonathan H
Well, once you've upgraded to a version of Asterisk which didn't become "EOL - DO NOT USE - NO FIXES" (!) almost 2 years ago, then you might be able use logging which was introduced 5 years ago in Asterisk 11. Although the "transfers" section in the info below says it "can be a little tricky...".

Re: [asterisk-users] Can't compile asterisk-certified-11.6-cert16 on Ubuntu 16

2017-04-29 Thread Jonathan H
4/29/2017 10:57 AM, Jonathan H wrote: >> >> On 29 April 2017 at 16:47, Tech Support <aster...@voipbusiness.us> wrote: >> >>> I’m trying to install certified asterisk 11.6 cert16 on a Ubuntu 16 >>> server. However, when I try to compile it, I’m getting hu

Re: [asterisk-users] Can't compile asterisk-certified-11.6-cert16 on Ubuntu 16

2017-04-29 Thread Jonathan H
On 29 April 2017 at 16:47, Tech Support wrote: > I’m trying to install certified asterisk 11.6 cert16 on a Ubuntu 16 server. > However, when I try to compile it, I’m getting hundreds and hundreds of > errors. Here is a sample of the output. > When I try to build

Re: [asterisk-users] Can't compile Asterisk on Ubuntu 16

2017-04-19 Thread Jonathan H
> other question. How are you starting asterisk? Do you use an init script or > systemd? Do you think that you could share the script you use? > Thanks Again; > John V. > > -Original Message- > From: asterisk-users-boun...@lists.digium.com > [mailto:asterisk-users-bou

Re: [asterisk-users] PBX selection

2017-04-18 Thread Jonathan H
On 18 April 2017 at 09:40, J Montoya or A J Stiles wrote: > > It is always preferrable to compile your own Asterisk to fit your hardware and > include just the bits you want, rather than rely on anyone else's pre-compiled > package. Feel free to take a look at

Re: [asterisk-users] Can't compile Asterisk on Ubuntu 16

2017-04-18 Thread Jonathan H
Feel free to take a look at https://github.com/lardconcepts/asterisk-digitalocean-voipfone-config/blob/master/Asterisk-14-on-Ubuntu.md Ignore the bit about Voipfone and just skip to the "Install Asterisk" bit. I've used this same script with Asterisk 12,13 and 14 on Ubuntu 15,16 and 17 so this

[asterisk-users] Any way of limiting incoming caller connection time without making 2 active calls for each incoming call?

2017-04-16 Thread Jonathan H
The following setup prevents callers from going over 59 minutes: -- [setup] exten => setup,1,Answer() same => n,Set(LIMIT_PLAYAUDIO_CALLER=yes) same => n,Set(LIMIT_WARNING_FILE=/var/lib/asterisk/sounds/en_GB_TNS/time_limit_reached) same =>

[asterisk-users] Any way to clear ALL gosub stacks without knowing what they are?

2017-04-01 Thread Jonathan H
Any way of clearing ALL gosub stacks in dialplan? Thanks. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to

Re: [asterisk-users] SipVicious scans getting through iptables firewall - but how?

2017-03-28 Thread Jonathan H
wrote: > On 3/28/17 9:32 AM, Jonathan H wrote: > >> My firewall and asterisk pjsip config only has "permit" options for my >> ITSP's (SIP trunk) IPs. >> >> Here's the script that sets it up. >> >> ---

[asterisk-users] SipVicious scans getting through iptables firewall - but how?

2017-03-28 Thread Jonathan H
My firewall and asterisk pjsip config only has "permit" options for my ITSP's (SIP trunk) IPs. Here's the script that sets it up. -- #!/bin/bash EXIF="eth0" /sbin/iptables --flush /sbin/iptables --policy INPUT DROP /sbin/iptables --policy OUTPUT

Re: [asterisk-users] While loop inside recursive calls

2017-03-21 Thread Jonathan H
Well, I've never seen dialplan like that - is this a very old version of Asterisk, or psuedocode? Anyway.. A subroutine MUST be balanced, and if a subroutine is aborted before it reaches return, you'll be in all sorts of hell. An example: You make a subroutine of some sound files you want to

Re: [asterisk-users] Something similar to Doxygen for standard dialplan?

2017-03-18 Thread Jonathan H
alk (Workflows > and Maintainability ) you can also see how to extend this very easily with > your custom applications. > > Let me know if you need assistance. > > Best regards > > > On Mar 18, 2017, 20:13 +0100, Jonathan H <lardconce...@gmail.com>, wrote: > >

Re: [asterisk-users] Something similar to Doxygen for standard dialplan?

2017-03-18 Thread Jonathan H
many things, document each node, and save xml with each > extension. > We´ve made it open source on Astricon 2015 you can extend it the way you > want. > > Hope it helps you. > > Best regards > > > > > On Mar 18, 2017, 12:50 +0100, Jonathan H <lardconce...@gmail.

[asterisk-users] Something similar to Doxygen for standard dialplan?

2017-03-18 Thread Jonathan H
How are we all documenting complex dialplan? Is there something similar to Doxygen? I've got around 20 config files covering around 60 contexts and 40 variables. Of course, I've maintained a basic list of the major stuff, and documented the code throughout, but it's grown to the stage where it

  1   2   3   4   5   6   7   8   9   10   >