Re: [asterisk-users] Asterisk 13.6 + pjsip: sip2sip registers but incoming calls get "No matching endpoint found".

2016-01-18 Thread Jonathan H
uot;in sync" with the forum. Lesson learnt, and again, thank you. On 18 January 2016 at 11:57, Joshua Colp <jc...@digium.com> wrote: > Jonathan H wrote: >> >> Would greatly appreciate any input into this currently-unanswered >> question on the forum: >> >> htt

[asterisk-users] Asterisk 13.6 + pjsip: sip2sip registers but incoming calls get "No matching endpoint found".

2016-01-18 Thread Jonathan H
Would greatly appreciate any input into this currently-unanswered question on the forum: http://forums.asterisk.org/viewtopic.php?f=1=96496 I posted it on Jan 6th, have tried so many things, so much forum/list searching and late nights since, but have had to admit defeat. Rather than duplicate

Re: [asterisk-users] Nube question: where is chan_sip.so?

2016-02-07 Thread Jonathan H
If it helps, here's a quick n easy guide I made to installing from scratch with pjsip on Ubuntu. https://github.com/lardconcepts/asterisk-digitalocean-voipfone-config/blob/master/Asterisk-13-on-Ubuntu.md There are some other scripts like firewall, wizard etc, but there are aimed at Voipfone users

[asterisk-users] Tapping into an existing audio stream rather than starting a new mp3Player?

2016-03-07 Thread Jonathan H
>From what I can tell from the Wiki page at https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Application_MP3Player, if someone dials in and starts playing a stream, mp3player will load up the URL and inject it into the current call. But what about if 20 or 30 people call in, and it's firing

[asterisk-users] Switching between Music on Hold streams. [13.8.2]

2016-05-08 Thread Jonathan H
I'd like multiple people to be able to dial in and listen to various live radio streams. I was told that the correct resource-friendly way would be to setup a MoH class, and then select that from the dialplan. This works well, but how do I switch between streams? Someone correct me if I'm

Re: [asterisk-users] Switching between Music on Hold streams. [13.8.2]

2016-05-09 Thread Jonathan H
, continuing... On 8 May 2016 at 14:56, Dovid Bender <do...@telecurve.com> wrote: > Michael, > > What you do is you dial another context and then use the G option in the dial > string. So something like this. > > [radio-main] > Exten => s,1,answer > Exten => s,2,Ba

Re: [asterisk-users] Switching between Music on Hold streams. [13.8.2]

2016-05-09 Thread Jonathan H
amdemo5] digit=5 mode=custom application=/usr/bin/mpg123 -q -r 8000 -f 32768 --mono -s http://206.225.87.121:8000/ On 9 May 2016 at 18:00, A J Stiles <asterisk_l...@earthshod.co.uk> wrote: > On Monday 09 May 2016, Jonathan H wrote: >> . {stuff deleted} . >> [streamdemo]

Re: [asterisk-users] Switching between Music on Hold streams. [13.8.2]

2016-05-09 Thread Jonathan H
lication? Does that make sense? (It's getting late here!). Thanks! On 9 May 2016 at 18:22, Joshua Colp <jc...@digium.com> wrote: > Jonathan H wrote: >> >> Thanks Joshua and everyone, >> >> Joshua's solution seems a lot simpler and works well. Only one thing >&g

Re: [asterisk-users] Asterisk 11.23.0 on CentOS6 : how to get ICE support ?

2016-08-11 Thread Jonathan H
I'm genuinely fascinated why you are insisting on using a version of Asterisk almost 3 years old, for which EOL support ended last year. Is there any particular reason you cannot or will not use the current version as others have suggested? Also, I see you are using Doubango and WebRTC, but in

Re: [asterisk-users] Switching between Music on Hold streams. [13.8.2]

2016-08-12 Thread Jonathan H
me know. The ones that > I have working is MP3 and MMS. > > On Mon, May 9, 2016 at 1:18 PM, Jonathan H <lardconce...@gmail.com> wrote: > >> Thanks Joshua and everyone, >> >> Joshua's solution seems a lot simpler and works well. Only one thing >> now - The r

Re: [asterisk-users] pjproject 2.5.5 + asterisk-certified-13.8-cert1 : many Error loading module...undefined symbol

2016-08-17 Thread Jonathan H
On 17 August 2016 at 20:40, Jonas Kellens wrote: > When I compile "--without-pjproject" I loose all webrtc functionality. I get > errors about the lack of "ice-frag and ice-pwd in the SDP-body". > So I guess I DO need pjproject. But I do not want to use pjsip (I prefer

Re: [asterisk-users] Voicemail notification by email is missing CallerID info

2017-02-18 Thread Jonathan H
This is what comes with voicemail.conf.sample - works for me! ; Change the from, body and/or subject, variables: ; VM_NAME, VM_DUR, VM_MSGNUM, VM_MAILBOX, VM_CALLERID, VM_CIDNUM, ; VM_CIDNAME, VM_DATE ; Additionally, on forwarded messages, you have the variables: ; ORIG_VM_CALLERID,

[asterisk-users] 14.3.0 download archive corrupt - cannot extract

2017-02-14 Thread Jonathan H
Hi there; 2 linux boxes and Windows all report an error and the archive is not extractable. Wget reports the size as follows: 2017-02-14 08:36:21 (7.29 MB/s) - ‘asterisk-14-current.tar.gz’ saved [40653605/40653605] It starts un-tarring but then asterisk-14.3.0/bridges/bridge_native_rtp.c

Re: [asterisk-users] Soft SIP phones that support TLS - Asterisk version 13.13.1

2017-02-16 Thread Jonathan H
Microsip (Windows) is free and small. 2.5Mb download, 10Mb RAM usage, does everything I need and configuring TLS is a doddle. http://www.microsip.org/ On 16 February 2017 at 13:04, Max Grobecker wrote: > Hello, > > I'm a big fan of PhonerLite. > It's more poplar

[asterisk-users] Asterisk 13.10.0 just randomly got pjsip endpoint amnesia.

2016-08-23 Thread Jonathan H
Here's a weirdness - I got a call from someone who couldn't get to my info line earlier, I tried it and it was busy tone. Being on a layby beside a road on a mobile on a long journey, my only real option was a remote server reboot so I couldn't diagnose further. That fixed it, but here's the

Re: [asterisk-users] Upgrading asterisk 13.7 to 13.11. Segfaults

2016-09-06 Thread Jonathan H
All your libraries, kernel, headers and build tools up to date? The other thing that might be worth noting is the warning along the lines of "contains modules that were not installed by this version of Asterisk". Might be worth deleting anything that appears there, and then starting Asterisk.

Re: [asterisk-users] Asterisk 14.0.2 Now Available

2016-10-06 Thread Jonathan H
Just a minor thing: on http://www.asterisk.org/downloads/asterisk/all-asterisk-versions it still reports 14.0.1 as being the latest version, although the download itself contains 14.0.2 I'd have file a bug but there doesn't seem to be a "website" section in the tracker. On 30 September 2016 at

Re: [asterisk-users] Asterisk 14.0.0-rc1 Now Available

2016-09-20 Thread Jonathan H
Great! Thanks, team, but just before I file a bug.. No matter how many v and d I put, when I now do "dialplan reload" in v14, it just says "Dialplan reloaded". Previously, it used to give some info, and I could scroll back and see if there were any obvious errors in the dialplan. Is this and

Re: [asterisk-users] Asterisk 14.0.0-rc1 Now Available

2016-09-20 Thread Jonathan H
org/jira/browse/ASTERISK-26391 > > Regards, > Marcelo H. Terres <mhter...@gmail.com> > IM: mhter...@jabber.mundoopensource.com.br > https://www.mundoopensource.com.br > https://twitter.com/mhterres > https://linkedin.com/in/marceloterres > > > On Tue, Sep 20, 2016 at

Re: [asterisk-users] TLS problem

2016-08-26 Thread Jonathan H
Well, what immediately stands out is: "FILE * open failed!" Have you triple checked that the full filepath is correct and that the user that Asterisk is running as has full permissions to access your valid certificate file? I have it working with microsip and a free TLS cert from LetsEncrypt.

Re: [asterisk-users] TLS problem

2016-08-28 Thread Jonathan H
cert_file=/etc/letsencrypt/live/mysite.co.uk/fullchain.pem priv_key_file=/etc/letsencrypt/live/mysite.co.uk/privkey.pem method=tlsv1 But this won't be any good to you on sip. What version of Asterisk are you using? On 26 August 2016 at 11:36, hw <h...@gc-24.de> wrote: > Jonathan H schrieb: &

Re: [asterisk-users] system metrics to see if Asterisk is getting overloaded

2016-09-28 Thread Jonathan H
Funnily enough, I was just thinking the same this morning. I run two boxes, and my idea was the use a sys call to grab the loadav, multiply that by 1000 and then use that as the delay before answering. In other words, if box 1 had a loadav of 0.2 and box two have a loadav of 0.5, box 1 would

[asterisk-users] Synchronous dialplan execution for feedback while processing speech recognition and voice synth, for example.

2016-10-03 Thread Jonathan H
I've got an agi that recognises speech (via Google) and another that turns text into speech (tts) (via Microsoft Translate). Both are web APIs, both called via seperate python AGIs. I've googled and I'm probably missing something pretty newbie 101 here, but is there any way, or fiddle, that I

Re: [asterisk-users] cloud solution?

2016-09-27 Thread Jonathan H
Something like this? https://github.com/lardconcepts/asterisk-digitalocean-voipfone-config/blob/master/Asterisk-13-on-Ubuntu.md On 27 September 2016 at 19:31, Ryan, Travis wrote: > So if someone has their own hardware and infrastructure but wants a software > (not FreePBX

[asterisk-users] What could be stopping "Disconnect Call" feature from working (set in features.txt)

2016-11-08 Thread Jonathan H
Asterisk 14.1 Here's a bit of test dialplan, which works as expected and simulates exactly what I'm doing at the top of my large dialplan... [dial-pre-test] exten => s,1,NoOp() same => n,Set(LIMIT_PLAYAUDIO_CALLER=yes) same => n,Set(LIMIT_WARNING_FILE=time_limit_reached) same =>

Re: [asterisk-users] What could be stopping "Disconnect Call" feature from working (set in features.txt)

2016-11-08 Thread Jonathan H
y to do those to things, is there any way to force Asterisk to NOT "optimize" those channels? On 9 November 2016 at 00:09, Richard Mudgett <rmudg...@digium.com> wrote: > > > On Tue, Nov 8, 2016 at 5:19 PM, Jonathan H <lardconce...@gmail.com> wrote: >> >> Asterisk

[asterisk-users] en_GB extra sounds don't have ha and wx split out like en and fr do.

2016-11-06 Thread Jonathan H
The extra sound packages for en and fr have ha (home automation) and wx (weather) broken out into seperate directories, but en_GB doesn't, although the files seems to exist in the main extra folder. There's no open ticket about this; I can just "ls" the wx and ha dirs to a text file and make a

Re: [asterisk-users] Suddenly getting lots of "Unable to send packet: Address Family mismatch between source/destination" but ONLY on 1 of 2 VPSs in same datacentre.

2016-11-05 Thread Jonathan H
of course, the VPS host is set to V6 disabled. and as far as I am aware, and my ITSP doesn't have IPv6, so I just can't figure out why two IPv4 systems are getting IPv6 "pollution" as it were. And why now??! Anyway, that's what fixed it for me. Thanks! On 4 November 2016 at 21:31,

[asterisk-users] Is this a reasonable way to store user prefs in ASTDB? And what's this Re: Is JSON a dialplan "thing" yet? (Asterisk 14)

2016-11-05 Thread Jonathan H
(1,Current item is ${hashKey}:${HASH(userPrefs,${hashKey})}) same => n,EndWhile same => n,Verbose(1,Setting ${prefPairs} to DB) same => n,Set(DB(userPrefs/${CALLERID(num)})=${prefPairs}) same => n,Hangup() On 1 November 2016 at 23:29, Joshua Colp <jc...@digium.com> wrote: > &

Re: [asterisk-users] What could be stopping "Disconnect Call" feature from working (set in features.txt)

2016-11-09 Thread Jonathan H
. Thank you again. On 9 November 2016 at 12:32, Tony Mountifield <t...@softins.co.uk> wrote: > In article > <caeebynvuscicqvfyspvsgpnapbbubn_67txjsk5j7gm42+o...@mail.gmail.com>, > Jonathan H <lardconce...@gmail.com> wrote: >> Thank you - that makes sense. I

Re: [asterisk-users] Any way of creating a file to write to from the dialplan, or must I use AGI?

2016-11-05 Thread Jonathan H
erisk tips/gotchas! On 4 November 2016 at 23:02, John Kiniston <johnkinis...@gmail.com> wrote: > Could it be SELinux blocking you? > > If you change the path to /tmp does it work? > > > On Fri, Nov 4, 2016 at 3:14 PM, Jonathan H <lardconce...@gmail.com> wrote: >> >

Re: [asterisk-users] Suddenly getting lots of "Unable to send packet: Address Family mismatch between source/destination" but ONLY on 1 of 2 VPSs in same datacentre.

2016-11-05 Thread Jonathan H
Just to say "thank you" on the list, and to confirm that the output of the command you suggested are as follows: # ip -6 addr show dev eth0 2: eth0: mtu 1500 state UP qlen 1000 inet6 fe80::601:ddff:fea2:dXX1/64 scope link valid_lft forever

[asterisk-users] Any way of creating a file to write to from the dialplan, or must I use AGI?

2016-11-04 Thread Jonathan H
Seems I can write to an existing file, but is there really no way of creating a new file to log some data to, without reverting to AGI? (will be different for each caller ID) -- _ -- Bandwidth and Colocation Provided by

[asterisk-users] Suddenly getting lots of "Unable to send packet: Address Family mismatch between source/destination" but ONLY on 1 of 2 VPSs in same datacentre.

2016-11-04 Thread Jonathan H
Two VPSs. Identical setups with the exception of the extension. Same version of everything, Asterisk 14.1, Ubuntu 16.10, same firewall rules and so on - box 2 was cloned from box 1. Both VPSs run in the same datacentre. Suddenly, after weeks of OK, I'm getting lots of this on ONE box only:

Re: [asterisk-users] Any way of creating a file to write to from the dialplan, or must I use AGI?

2016-11-04 Thread Jonathan H
2016 at 21:32, John Covici <cov...@ccs.covici.com> wrote: > Won't the system command do it? > > On Fri, 04 Nov 2016 17:26:13 -0400, > Jonathan H wrote: >> >> Seems I can write to an existing file, but is there really no way of >> creating a new file to log so

Re: [asterisk-users] Any way of creating a file to write to from the dialplan, or must I use AGI?

2016-11-04 Thread Jonathan H
u)=Extension: s) > > On Fri, Nov 4, 2016 at 2:26 PM, Jonathan H <lardconce...@gmail.com> wrote: >> >> Seems I can write to an existing file, but is there really no way of >> creating a new file to log some data to, without reverting to

Re: [asterisk-users] Match one OR two digit extension not working as expected without using "dangerous" _. pattern (Ast 14)

2016-10-14 Thread Jonathan H
On 13 October 2016 at 13:18, Tony Mountifield wrote: > exten => _X,1,NoOp(Matching single digit) > exten => _X.,1,NoOp(Matching multiple digits) > exten => _X!,2,SayNumber(${EXTEN}) > exten => _X!,3,Etc.. Thanks - I appreciate the idea, but it matches more than 2 digits.

Re: [asterisk-users] Registered successfully, but after a minute or so no SIP messages anymore

2016-10-15 Thread Jonathan H
All other things aside, this stands out immediately: RTT: 434.393 msec That's almost half a second round trip for a packet. I'm amazed anything works at all. For SIP connections, mine are usually about 26ms max, anything above about 35 is bad. Looks like a serious config issue. Try pinging and

Re: [asterisk-users] Registered successfully, but after a minute or so no SIP messages anymore

2016-10-15 Thread Jonathan H
Hmmm, sorry, I can't think of anything except... why do you need the STUN server? And are you sure that all the ports in your router definitely match the ones Asterisk thinks it's using? Then there is always the SIP-ALG problem with some routers, which some people have been able to overcome by

[asterisk-users] Got bitten by the 255 char variable limit - how best to work around it?

2016-10-22 Thread Jonathan H
I loop through a list in Asterisk which is generated by a Python AGI and I've just been bitten by a variable limit I didn't realise existed before. The only way I can think of working around this is to get Python to write the list to file, then do a FILE_COUNT_LINE to get the number of items

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

2016-10-18 Thread Jonathan H
I'm going to go ahead and file a bug report, 'cos something definitely ain't right here! Bug filed: https://issues.asterisk.org/jira/browse/ASTERISK-26481 This bit of dialplan. exten => 5,1,Verbose(Context: ${CONTEXT} Exten:${EXTEN}) same => n,Set(featurefile=/home/test/feature-1.txt)

[asterisk-users] Say duration of alaw file?

2016-10-18 Thread Jonathan H
I can get the size of a ulaw file using STAT. And I can get the duration in seconds by doing filesize/8000. Your tea-break challenge is to help me find the shortest most Asterisk-like way of saying: "The following file is [ minutes and] seconds long". ...without referring to external

Re: [asterisk-users] Problem with REMAINDER? 957%60 be 15 remainder 57 not 15 remainder -3 ?

2016-10-21 Thread Jonathan H
Yes! That's the one. Thank you. That's a good workaround. The following test dialplan shows the bug (feature?) exten => 7,1,Verbose(Context: ${CONTEXT} Exten:${EXTEN}) same => n,Set(seconds=57) same => n,While($[${seconds} <= 400]); same => n,Set(minutes=$[FLOOR(${seconds} / 60)])

[asterisk-users] Variable pollution? Stack overflow? WTF is going on here or... how can I TOTALLY clear a variable?

2016-10-24 Thread Jonathan H
The first time I run a loop, the AGI returns a list of files. I append a path from a variable, and play out the files using SHIFT to loop them. The FIRST time I enter the system, this is what the complete list to be looped looks like:

[asterisk-users] Is it possible that variables returned from AGI take a moment to "stick"?

2016-10-21 Thread Jonathan H
I thought dialplan flow was that (normal!) agi was called, it did its thing (which include returning some dialplan variables/lists), and then when agi finished it returned to the dialplan which then reliably carried the product of agi. But I'm calling agi, scanning a path in python, and then

[asterisk-users] Problem with REMAINDER? 957%60 be 15 remainder 57 not 15 remainder -3 ?

2016-10-21 Thread Jonathan H
I'm not mathematically gifted, but shouldn't 957%60 be 15 remainder 57? Google and my desktop calculator certainly think so. So where am I going wrong here? The following code exten => 7,1,Verbose(Context: ${CONTEXT} Exten:${EXTEN}) same => n,Set(myNum=957) same =>

Re: [asterisk-users] Say duration of alaw file?

2016-10-18 Thread Jonathan H
turn() On 18 October 2016 at 17:56, John Kiniston <johnkinis...@gmail.com> wrote: > Alright... How about: > > exten => 100,1,NoOP() > same => > n,Set(Duration=$[CEIL(${STAT(s,/var/lib/asterisk/moh/reno_project-system.alaw)} > / 8000)]) > same => n,NoOP

[asterisk-users] Non-global variable that follows channel?

2016-11-23 Thread Jonathan H
Related to http://lists.digium.com/pipermail/asterisk-users/2016-November/290384.html, at the moment I'm passing one variable via DIAL. Now I'd like to pass a whole bunch, and my idea was to rather than having a great string of b(synctest3b^setVar^1(something)^2(more things)^3(etc)) and then

Re: [asterisk-users] ODBC locks warning in CLI - Asterisk 1.8.32.3

2016-11-23 Thread Jonathan H
It might be worth pointing out that 1.8x was released 6 years ago, went into security fix only over 2 years ago, and reached "end of life/no further fixes" over a year ago. 11.x went into "security fix only" last month - 13 and 14 are the current versions - can you try with them? On 23 November

Re: [asterisk-users] Non-global variable that follows channel?

2016-11-27 Thread Jonathan H
Thanks, Richard - your code does indeed work reliably 100% of the time, and thank you for that explanation. I do think the docs at https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+Function_SHARED could do with more clarification. BTW, there were a couple of typos in your code, so for

Re: [asterisk-users] Non-global variable that follows channel?

2016-11-27 Thread Jonathan H
r you, you might use the SHARED() variables which > are kind of global accessible by the channel ID. > So you might call your Gosub with only the (unique) reference name of the > variables you wish to pass and then call it from your Gosub. > -> https://wiki.asterisk.org/wiki/display/AST/A

Re: [asterisk-users] Non-global variable that follows channel?

2016-11-27 Thread Jonathan H
Thanks. I did a while ago, but I couldn't make it "fit" what I wanted to do. Maybe with my increase Asterisk knowledge now I'll take another look. Thanks! On 27 November 2016 at 18:27, Richard Mudgett wrote: > Have you looked into ARI [1]? I think it would be a closer fit

Re: [asterisk-users] Synchronous dialplan execution for feedback while processing speech recognition and voice synth, for example.

2016-11-18 Thread Jonathan H
xten => setVar,1,Set(testVar=${ARG1}) ; setter same => n,Return() On 3 October 2016 at 23:48, Steve Edwards <asterisk@sedwards.com> wrote: > On Mon, 3 Oct 2016, Jonathan H wrote: > >> I've googled and I'm probably missing something pretty newbie 101 here, >

[asterisk-users] Any way of just killing ALL stray WHILE loops?

2016-11-18 Thread Jonathan H
tl;dr Is there ANY way/hack of just telling Asterisk to destroy *all* WHILE loops it may be nested in at a certain time? Reason: you know the thing about WHILE loops not only having to have "seen" their endwhile to finish properly? If not, a reminder before it gives you 3am sleepless nights:

[asterisk-users] Anyway of simulating "hold" so that the moh announcement function works?

2016-11-20 Thread Jonathan H
In the musiconhold.conf example, it says: announcement=queue-thankyou ;If this option is set for a class, then when callers get put on hold, the specified sound will be be played to them. I'm using the "m" option in Dial and was hoping to make use of this feature. Any dialplan way of getting

[asterisk-users] Is JSON a dialplan "thing" yet? (Asterisk 14)

2016-11-01 Thread Jonathan H
I need to store some basic caller data in ASTDB - certainly doesn't need full blown mySQL. There's 4 or 5 bits of info per caller, and I saw that there is a json entry in ASTDB for the endpoint. Does that mean that there are accessible functions to deal with json now? I couldn't find anything in

[asterisk-users] What's the smallest, lightest Asterisk you can build? Does size even matter?

2016-11-01 Thread Jonathan H
All I need is PJSIP, ulaw, alaw, wav, astdb and all the dialplan functions. I don't need any other DB layer, I have no hardware, and I was wondering what the smallest build possible was. I experimented, but everything relied on other things. And then I wondered... is there actually any point? Is

Re: [asterisk-users] AGI: How to break out of AGI when stream_file escape_digits are detected in middle of long sequence of files?

2016-10-11 Thread Jonathan H
and the following code. Thank you again. escape_digits = str("*") pressed_digit=agi.stream_file(promptFile,escape_digits) if pressed_digit == "*": sys.exit(0) On 11 October 2016 at 09:31, Lefteris Zafiris <z...@fastmail.com> wrote: > On Mon, 10 Oct 2016, at 22:47, Jonathan

Re: [asterisk-users] Asterisk 12 error when installing

2016-10-13 Thread Jonathan H
Are those numbers correct? Asterisk 12 stopped being supported almost 2 years ago and became "do not use" on 2015-12-20 https://wiki.asterisk.org/wiki/display/AST/Asterisk+Versions Ubuntu 14 may still be supported, if you're on 14.0.4.5 https://wiki.ubuntu.com/Releases You could try make

[asterisk-users] Match one OR two digit extension not working as expected without using "dangerous" _. pattern (Ast 14)

2016-10-13 Thread Jonathan H
Back to basics here. I want to match on one OR two digits. The following two both work, but ONLY for more than one digit, which is not as expected from the docs (see below). exten => _X.,1,SayNumber(${EXTEN}) exten => _[0-9].,1,SayNumber(${EXTEN}) This next one will ONLY match 2 digits, as

Re: [asterisk-users] Match one OR two digit extension not working as expected without using "dangerous" _. pattern (Ast 14)

2016-10-13 Thread Jonathan H
> > Best regards > > Jean Aunis > > > Le 13/10/2016 à 12:54, Jonathan H a écrit : >> >> Back to basics here. I want to match on one OR two digits. >> >> The following two both work, but ONLY for more than one digit, which >> is not as expect

[asterisk-users] AGI: How to break out of AGI when stream_file escape_digits are detected in middle of long sequence of files?

2016-10-10 Thread Jonathan H
For reasons best known to myself, I call a python agi (PYST2 - love it!) which streams a series of very short files in quick succession. Like this: escape_digits = str("0") agi.stream_file(promptFile,escape_digits) and this is what I see on the AGI debug: AGI Tx >> 200 result=0 endpos=6784 AGI

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

2016-10-17 Thread Jonathan H
(feature2)} long) same => n,Set(unfilteredfeat=${FILE(${featurefile},0,1,l,u)}) same => n,Set(feature3=${SHIFT(unfilteredfeat)}) same => n,Verbose(1,Using a string with shift method, feature3 is set to ---${feature3}--- and is ${LEN(feature3)} long) Bug or... "feature"?

Re: [asterisk-users] Surfing the web via Asterisk.

2016-10-17 Thread Jonathan H
te the object you create > and tts to describe current position. The hard part will be parsing the HTML > even though most HTML is broken :-) > > Kind regards, > > Matt Riddell > > On Oct 17, 2016, at 9:00 AM, Jonathan H <lardconce...@gmail.com> wrote: > > Has any

[asterisk-users] Tips, tools and a question about debug level....

2016-10-17 Thread Jonathan H
Lots of little bits in one email to save polluting the list too much today, time for me to try and give a little back, too! Someone posted about sngrep a couple of days ago. What a great tool! Is there a list of useful stuff like this that isn't hopelessly out of date? Talking about hopelessly

Re: [asterisk-users] Surfing the web via Asterisk.

2016-10-17 Thread Jonathan H
On 17 October 2016 at 16:12, Matt Riddell wrote: > https://www.npmjs.com/package/speech-rule-engine Thanks. That and the tip about jackaudio look interesting, although that thing above is just a parser, not a renderer. I think, at this stage, it's an idea to go back in

[asterisk-users] Surfing the web via Asterisk.

2016-10-17 Thread Jonathan H
Has anyone attempted making the web phone accessible? I can only find one company which operated between 1996 and 2000. I was thinking, install Chrome with Chromevox, headless, on a server, and use something like an AGI to send basic keyboard commands to navigate a page, as a screenreader user

[asterisk-users] Multiple readfile oddities, newlines etc

2016-10-17 Thread Jonathan H
I have a plain text file, ASCII, unix line breaks. 1 single line, and all that is in it is the word "radio". Here's some test dialplan: exten => 5,1,Verbose(Context: ${CONTEXT} Exten:${EXTEN}) same => n,Set(feature=${FILE(/home/test/feature-1.txt,0,1,l,u)}) same => n,Verbose(${feature})

[asterisk-users] Any reason Asterisk won't start without a rebuild on a cloned VPS?

2016-11-29 Thread Jonathan H
Any ideas why a VPS, cloned from another instance (DigitalOcean "droplets" if it matters), won't run on the new instance? Everything else is the same; region, memory, disk, hypervisor version etc. And everything else runs, just not Asterisk, unless I do a make distclean in the /usr/src/asterisk

Re: [asterisk-users] Any reason Asterisk won't start without a rebuild on a cloned VPS?

2016-11-29 Thread Jonathan H
Thanks for the super-quick answer! Now I was able to find this: https://wiki.asterisk.org/wiki/display/AST/Building+and+Installing+Asterisk#BuildingandInstallingAsterisk-Buildingfornon-nativearchitectures I had just assumed a cloned vps would be identical. Out of interest, how unoptimized would

Re: [asterisk-users] bash: asterisk: command not found

2016-12-07 Thread Jonathan H
Did you actually do "make install" after doing "make"? On 7 December 2016 at 12:17, Tzafrir Cohen wrote: > On Wed, Dec 07, 2016 at 09:23:30AM +, k...@mayten.sch.bme.hu wrote: >> On 2016-12-07 09:13, Steve Howes wrote: >> >On 07/12/16 04:56, christopher kamutumwa

Re: [asterisk-users] Asterisk 14.2 CLI don't show debug/verbose data

2016-11-30 Thread Jonathan H
I think it might be related to this? https://issues.asterisk.org/jira/browse/ASTERISK-26391 I think I remember having to edit logger.conf - this is what mine looks like now: console => notice,warning,error messages => notice,warning,error Try that, restart asterisk and see if it works :) On 30

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

[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] 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. >> >> ---

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.

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

[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

[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

[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 =>

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

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] 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] 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] Integration of Google Speech API V2

2017-07-19 Thread Jonathan H
ndeed be wonderful, at this point I really do not care whether I > need to use Python or Lua or JS. > > I was following http://zaf.github.io/asterisk-speech-recog/ > but hit a road end with (for the lack of sane word ) copulating Google's Key > > > > On Wed, Jul 19, 2017 at 2:28 PM,

[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] 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

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

[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
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] 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

  1   2   >