Re: [asterisk-users] GotoIf Double Pattern Match [SEC=UNCLASSIFIED]

2016-11-27 Thread Pete Mundy
> On 28/11/2016, at 12:29 pm, Calum Power wrote: > > > > What I have written come up with is below, but I just wanted to see if I was > going about this the right way, and that this expression would actually > work... > > exten => B,n,GotoIf($["${CALLERID(num):-2}"

Re: [asterisk-users] Subscribe to events via ARI from node.js without sending to Stasis

2016-11-27 Thread Joshua Colp
On Wed, Nov 23, 2016, at 06:41 PM, Matt Riddell wrote: > Hi, > > I'm writing a node.js backend to pass events via a websocket to a CRM. > > Basically what I want to do is notice when things happen (i.e. new > channel, new bridge etc) without sending the channels to the Stasis app. > > The

[asterisk-users] GotoIf Double Pattern Match [SEC=UNCLASSIFIED]

2016-11-27 Thread Calum Power
Hi guys, Sorry if this is a really basic question, but I'm fairly new to Asterisk and am self-teaching so please go easy on me :) Basically what I am trying to do is match 2 patterns in a conditional GotoIf. The first condition is that the callerid(num) must end in '13' The second condition is

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] Non-global variable that follows channel?

2016-11-27 Thread Richard Mudgett
On Sun, Nov 27, 2016 at 11:13 AM, Jonathan H wrote: > 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

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 Richard Mudgett
On Sun, Nov 27, 2016 at 8:07 AM, Jonathan H wrote: > Thanks, Max. > > Yes, of course, you are right, and I am an idiot because I was tired > and putting underscores before the variable name when I read it back! > Then I forgot to post the followup email to say I had

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

2016-11-27 Thread Jonathan H
Thanks, Max. Yes, of course, you are right, and I am an idiot because I was tired and putting underscores before the variable name when I read it back! Then I forgot to post the followup email to say I had figured it out. Now, this SHARED was not something I was aware of, but looked like an

Re: [asterisk-users] Touch tone stutter

2016-11-27 Thread Max Grobecker
Hi, you could try switching the DTMF mode of the ATA's SIP peer (and also in the ATA itself) to INBAND transmission. In this mode, the ATA doesn't need to recognise DTMF tones and your Asterisk can interpret it. For this to work, the ATA needs to use a G.711 codec. Inband DTMF needs an

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

2016-11-27 Thread Max Grobecker
Hi, is channel variable inheritance working for your setup? Passing variables to other channels can normally simply be done by naming the variable with one or two prefixed undersorces to make it available to the channel that is created from that one defining the variable. But I have no idea if