Re: [asterisk-users] Ex-Girlfriend Logic in 1.4.4
Mojo with Horan & Company, LLC wrote: > For real? I thought _ was to tell asterisk it was time for some pattern > matching: > > ; exact extension, exact cid > exten => 5000/19256002182,1,Answer > > ; any extension beginning with 5, from specific cid only > exten => _5./19256002182,1,Answer > > ; match exactly extension 5000, but anyone calling from > ; (925) 600- matches > exten => 5000/_1925600.,1,Answer > > ; match anyone calling any extension beginning with 5 FROM any cid > ; in the (925) 600- block > exten => _5./_1925600.,1,Answer > > are the ways I've always used the underscore. > > Doug, sorry I didn't have anything to help with your problem. I just > wanted to get some clarification of this poster's statement, to either > help myself or 10,000 other readers, I'm not sure who, yet... > > Mojo > > Nasir Iqbal wrote: > >> Hi, >> >> >> >>> exten => 5000/19256002182,1,Answer >>> >>> exten => 5000/19256002182,n,Wait(1) >>> >>> exten => 5000/19256002182,n,NoOp(${CALLERID(num)}) >>> >>> exten => 5000/19256002182,n,Playback(tt-monkeys) >>> >>> >>> >>> nothing appears on the console and I get no match. You can see the ca >>> >> Try with underscore before extension like. >> >> exten => _5000/19256002182,1,Answer >> >> >> Nasir Iqbal >> >> ICT Innovations >> >> >> ___ >> --Bandwidth and Colocation provided by Easynews.com -- >> >> asterisk-users mailing list >> To UNSUBSCRIBE or update options visit: >>http://lists.digium.com/mailman/listinfo/asterisk-users >> > > ___ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: >http://lists.digium.com/mailman/listinfo/asterisk-users > The only problem I see is that you have a 1 in the number, check the console when that call comes in, it probably doesn't have the 1 in it as most CID does not include the country code. ___ --Bandwidth and Colocation Provided by http://www.api-digital.com-- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Ex-Girlfriend Logic in 1.4.4
For real? I thought _ was to tell asterisk it was time for some pattern matching: ; exact extension, exact cid exten => 5000/19256002182,1,Answer ; any extension beginning with 5, from specific cid only exten => _5./19256002182,1,Answer ; match exactly extension 5000, but anyone calling from ; (925) 600- matches exten => 5000/_1925600.,1,Answer ; match anyone calling any extension beginning with 5 FROM any cid ; in the (925) 600- block exten => _5./_1925600.,1,Answer are the ways I've always used the underscore. Doug, sorry I didn't have anything to help with your problem. I just wanted to get some clarification of this poster's statement, to either help myself or 10,000 other readers, I'm not sure who, yet... Mojo Nasir Iqbal wrote: > Hi, > > >> exten => 5000/19256002182,1,Answer >> >> exten => 5000/19256002182,n,Wait(1) >> >> exten => 5000/19256002182,n,NoOp(${CALLERID(num)}) >> >> exten => 5000/19256002182,n,Playback(tt-monkeys) >> >> >> >> nothing appears on the console and I get no match. You can see the ca > > > Try with underscore before extension like. > > exten => _5000/19256002182,1,Answer > > > Nasir Iqbal > > ICT Innovations > > > ___ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: >http://lists.digium.com/mailman/listinfo/asterisk-users ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Ex-Girlfriend Logic in 1.4.4
Hi, > exten => 5000/19256002182,1,Answer > > exten => 5000/19256002182,n,Wait(1) > > exten => 5000/19256002182,n,NoOp(${CALLERID(num)}) > > exten => 5000/19256002182,n,Playback(tt-monkeys) > > > > nothing appears on the console and I get no match. You can see the ca Try with underscore before extension like. exten => _5000/19256002182,1,Answer Nasir Iqbal ICT Innovations ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Ex-Girlfriend Logic in 1.4.4
What does the output of 'show dialplan start' look like? - Brad > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Douglas Garstang > Sent: Tuesday, June 19, 2007 3:20 PM > To: asterisk-users@lists.digium.com > Subject: [asterisk-users] Ex-Girlfriend Logic in 1.4.4 > > I have this in my dialplan... > > > > [general] > > static=yes > > writeprotect=no > > clearglobalvars=no > > > > [start] > > exten => 5000,1,Answer > > exten => 5000,n,Wait(1) > > exten => 5000,n,NoOp(${CALLERID(num)}) > > exten => 5000,n,Playback(tt-monkeys) > > > > which, when I dial 5000, executes this... > > > > == Parsing '/etc/asterisk/sip_notify.conf': Found > > -- Executing [EMAIL PROTECTED]:1] Answer("SIP/5000-0a281f80", > "") in new stack > > -- Executing [EMAIL PROTECTED]:2] Wait("SIP/5000-0a281f80", > "1") in new stack > > -- Executing [EMAIL PROTECTED]:3] NoOp("SIP/5000-0a281f80", > "19256002182") in new stack > > -- Executing [EMAIL PROTECTED]:4] Playback("SIP/5000-0a281f80", > "tt-monkeys") in new stack > > -- Playing 'tt-monkeys' (language 'en') > > > > However, when I change the extension match to: > > > > exten => 5000/19256002182,1,Answer > > exten => 5000/19256002182,n,Wait(1) > > exten => 5000/19256002182,n,NoOp(${CALLERID(num)}) > > exten => 5000/19256002182,n,Playback(tt-monkeys) > > > > nothing appears on the console and I get no match. You can > see the caller id number is 19256002182 from the NoOp() when > it does work. What am I missing here? > > > > Doug. > > > > The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it. ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Ex-Girlfriend Logic in 1.4.4
pleease post your context exactly for the exten 5000 as u have it in live system. On 6/19/07, Douglas Garstang <[EMAIL PROTECTED]> wrote: I have this in my dialplan… [general] static=yes writeprotect=no clearglobalvars=no [start] exten => 5000,1,Answer exten => 5000,n,Wait(1) exten => 5000,n,NoOp(${CALLERID(num)}) exten => 5000,n,Playback(tt-monkeys) which, when I dial 5000, executes this… == Parsing '/etc/asterisk/sip_notify.conf': Found -- Executing [EMAIL PROTECTED]:1] Answer("SIP/5000-0a281f80", "") in new stack -- Executing [EMAIL PROTECTED]:2] Wait("SIP/5000-0a281f80", "1") in new stack -- Executing [EMAIL PROTECTED]:3] NoOp("SIP/5000-0a281f80", "19256002182") in new stack -- Executing [EMAIL PROTECTED]:4] Playback("SIP/5000-0a281f80", "tt-monkeys") in new stack -- Playing 'tt-monkeys' (language 'en') However, when I change the extension match to: exten => 5000/19256002182,1,Answer exten => 5000/19256002182,n,Wait(1) exten => 5000/19256002182,n,NoOp(${CALLERID(num)}) exten => 5000/19256002182,n,Playback(tt-monkeys) nothing appears on the console and I get no match. You can see the caller id number is 19256002182 from the NoOp() when it does work. What am I missing here? Doug. ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- Esta mensagem (incluindo quaisquer anexos) pode conter informação confidencial para uso exclusivo do destinatário. Se não for o destinatário pretendido, não deverá usar, distribuir ou copiar este e-mail. Se recebeu esta mensagem por engano, por favor informe o emissor e elimine-a imediatamente. Obrigado. This e-mail message is intended only for individual(s) to whom it is addressed and may contain information that is privileged, confidential, proprietary, or otherwise exempt from disclosure under applicable law. If you believe you have received this message in error, please advise the sender by return e-mail and delete it from your mailbox. Thank you. ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [Asterisk-Users] Ex-girlfriend-logic
Here is the logic that I wanted b/c my bro-n-law is in AU and uses my phone number in the US as his now for his family to contact him as an extension off my * server. The need was defined to use something like the ex-g/f logic to route calls to his extension instead of me getting all the calls then forwarding them to him. Since his address book is much larger than I had expected or wanted to write up in extensions.conf here is how I achieved it: I created a *db named 'route'. Basically in there I would input a CID# and an extension to route to. database put route In the extensions.conf I put in the following: [incoming]exten => s,1,NoOp("Incoming:" ${CALLERID})exten => s,2,LookupCIDNameexten => s,3,LookupBlackListexten => s,4,DBget(exten=route/${CALLERIDNUM})exten => s,5,NoOp("Transfering to extension: " ${exten})exten => s,6,Goto(default,${exten},1)exten => s,104,Goto(2200)exten => s,105,GotoIfTime(06:00-22:30|*|*|*?default,2200,1)exten => s,106,Goto(2200)exten => s,2200,Background(press1tospeaktome)exten => s,2201,Wait(3)exten => s,2202,Voicemail(u2200)exten => s,2203,Hangup Then the next problem was how to deal with my family and what to do with them. Since my parents are in the US and my sister is in AU, I created a menu context and send them to an extension that sends them to a menu context so they can decide to press 1 for me and 2 for my sister & bro-n-law. We have been very happy with this solution and the only draw back is that if there is no caller id number presented, I get those calls but have handled them various ways and plan to re-impliment shortly. Also, I used the WIKI setup for the PHP and CID name lookup (LookupCIDName) to allow my bro-n-law to input all his phone numbers and point them to his extension so there wasn't any resources of me to input his address book into the *database of route and he could update on demand or his leisure. Enjoy. -Jeff ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [Asterisk-Users] Ex-girlfriend-logic
THIS IS WRONG: exten => s,1,SetMusicOnHold,default exten => s,2,responsetimeout,20 exten => s/_20,3,goto(9000,1) exten => s/_973111,4,goto(9000,1) exten => s,5,Dial(Zap/1&Zap/2&Zap/3&SIP/2002&SIP/2102,17,tr) THIS IS CORRECT (example): exten => s/_40,1,Goto(9000,1) exten => s/_918.,1,Goto(9000,1) exten => s/2015551212,1,goto(9000,1) exten => s/9735551212,1,goto(9000,1) exten => s,1,SetMusicOnHold,default exten => s,2,responsetimeout,20 exten => s,3,Dial(Zap/1&Zap/2&Zap/3&SIP/2002&SIP/2102,17,tr) you can even do something like this: exten => s,1,Answer exten => s/9184238080,2,SetCIDName(EVIL BASTARD) exten => s,2,SetCIDName(Good Person) exten => s,3,Dial(SIP/goodperson) bkw ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] Ex-girlfriend-logic
Think of the ex g/f logic as a 'optional' match. If you don't match at three you'll never see 4, so you'll want to have multiple 3 entries, and move your 4 entry to 3, and your 5 up to 4, then on 4 you'll need some sort of 'catch' like an _NXXNXX entry. --On Tuesday, October 26, 2004 13:55 -0400 John Bohman <[EMAIL PROTECTED]> wrote: Trying to use the ex-gf logic on a few PITA callers and witle it works ok it doesn't continue down the context. exten => 9000,1,Answer exten => 9000,2,Playback(silence/2) exten => 9000,3,Playback(tt-monkeys) exten => 9000,4,Playback(tt-somethingwrong) exten => 9000,5,Playback(the-party-you-are-calling) exten => 9000,6,Playback(carried-away-by-monkeys) exten => 9000,7,Playback(silence/2) exten => 9000,8,Playback(moo2) exten => 9000,9,Hangup exten => s,1,SetMusicOnHold,default exten => s,2,responsetimeout,20 exten => s/_20,3,goto(9000,1) exten => s/_973111,4,goto(9000,1) exten => s,5,Dial(Zap/1&Zap/2&Zap/3&SIP/2002&SIP/2102,17,tr) The numbers for the CID match have been changed... But that works fine... Sends to the 9000ext and works perfectly.. But other non-matched numbers aren't passing through to sequence #5.. Worked percectly before I tried mucking with things... But it is neccy to get this running the 5am calls are driving me nuts.. Help? I'm sure this is something I'm just not seeing... Tried wikki already.. Details.. CVS build from 1.0 tree from today running a RH 9 system using the zaptel 4port card 1fxo/3fxs thanks John b. ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- GPG/PGP --> 0xE736BD7E 5144 6A2D 977A 6651 DFBE 1462 E351 88B9 E736 BD7E ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [Asterisk-Users] Ex-girlfriend-logic
Also exten => s/_123NX,1,Goto(1000,1) And exten => s,1,Answer ARE TWO TOTALLY DIFFERENT EXTENSIONS. Correct your priority numbering and you'll be fine. bkw > -Original Message- > From: [EMAIL PROTECTED] [mailto:asterisk-users- > [EMAIL PROTECTED] On Behalf Of Steve Totaro > Sent: Tuesday, October 26, 2004 1:16 PM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [Asterisk-Users] Ex-girlfriend-logic > > you need a pattern to match like _NXXN before the 5 > > Thanks, > Steve Totaro > [EMAIL PROTECTED] > www.totarotechnologies.com > > > - Original Message - > From: "John Bohman" <[EMAIL PROTECTED]> > To: "'Asterisk Users Mailing List - Non-Commercial Discussion'" > <[EMAIL PROTECTED]> > Sent: Tuesday, October 26, 2004 1:55 PM > Subject: [Asterisk-Users] Ex-girlfriend-logic > > > > Trying to use the ex-gf logic on a few PITA callers and witle it works > ok > it > > doesn't continue down the context. > > > > exten => 9000,1,Answer > > exten => 9000,2,Playback(silence/2) > > exten => 9000,3,Playback(tt-monkeys) > > exten => 9000,4,Playback(tt-somethingwrong) > > exten => 9000,5,Playback(the-party-you-are-calling) > > exten => 9000,6,Playback(carried-away-by-monkeys) > > exten => 9000,7,Playback(silence/2) > > exten => 9000,8,Playback(moo2) > > exten => 9000,9,Hangup > > > > exten => s,1,SetMusicOnHold,default > > exten => s,2,responsetimeout,20 > > exten => s/_20,3,goto(9000,1) > > exten => s/_973111,4,goto(9000,1) > > exten => s,5,Dial(Zap/1&Zap/2&Zap/3&SIP/2002&SIP/2102,17,tr) > > > > The numbers for the CID match have been changed... But that works > fine... > > Sends to the 9000ext and works perfectly.. But other non-matched numbers > > aren't passing through to sequence #5.. > > Worked percectly before I tried mucking with things... But it is neccy > to > > get this running the 5am calls are driving me nuts.. > > > > Help? I'm sure this is something I'm just not seeing... Tried wikki > > already.. > > > > Details.. CVS build from 1.0 tree from today running a RH 9 system using > the > > zaptel 4port card 1fxo/3fxs > > thanks > > John b. > > > > > > ___ > > Asterisk-Users mailing list > > [EMAIL PROTECTED] > > http://lists.digium.com/mailman/listinfo/asterisk-users > > To UNSUBSCRIBE or update options visit: > >http://lists.digium.com/mailman/listinfo/asterisk-users > > > > ___ > Asterisk-Users mailing list > [EMAIL PROTECTED] > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: >http://lists.digium.com/mailman/listinfo/asterisk-users ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] Ex-girlfriend-logic
you need a pattern to match like _NXXN before the 5 Thanks, Steve Totaro [EMAIL PROTECTED] www.totarotechnologies.com - Original Message - From: "John Bohman" <[EMAIL PROTECTED]> To: "'Asterisk Users Mailing List - Non-Commercial Discussion'" <[EMAIL PROTECTED]> Sent: Tuesday, October 26, 2004 1:55 PM Subject: [Asterisk-Users] Ex-girlfriend-logic > Trying to use the ex-gf logic on a few PITA callers and witle it works ok it > doesn't continue down the context. > > exten => 9000,1,Answer > exten => 9000,2,Playback(silence/2) > exten => 9000,3,Playback(tt-monkeys) > exten => 9000,4,Playback(tt-somethingwrong) > exten => 9000,5,Playback(the-party-you-are-calling) > exten => 9000,6,Playback(carried-away-by-monkeys) > exten => 9000,7,Playback(silence/2) > exten => 9000,8,Playback(moo2) > exten => 9000,9,Hangup > > exten => s,1,SetMusicOnHold,default > exten => s,2,responsetimeout,20 > exten => s/_20,3,goto(9000,1) > exten => s/_973111,4,goto(9000,1) > exten => s,5,Dial(Zap/1&Zap/2&Zap/3&SIP/2002&SIP/2102,17,tr) > > The numbers for the CID match have been changed... But that works fine... > Sends to the 9000ext and works perfectly.. But other non-matched numbers > aren't passing through to sequence #5.. > Worked percectly before I tried mucking with things... But it is neccy to > get this running the 5am calls are driving me nuts.. > > Help? I'm sure this is something I'm just not seeing... Tried wikki > already.. > > Details.. CVS build from 1.0 tree from today running a RH 9 system using the > zaptel 4port card 1fxo/3fxs > thanks > John b. > > > ___ > Asterisk-Users mailing list > [EMAIL PROTECTED] > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: >http://lists.digium.com/mailman/listinfo/asterisk-users > ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] ex-girlfriend logic not working in latest CVS?
I found _my_ problem, to many "X"s on the patten match. James Sizemore wrote: Ex-girlfriend logic not working in latest CVS? Incoming sip calls don't work. Anyone else seen this problem? Extension logic looks good: exten => 6153248305/_931NXXX,1,Queue(queue1); exten => 6153248305/_615NXXX,1,Queue(queue2); ;exten => 6153248305,1,Queue(queue3); show dialplan looks good: -- Added extension '6153248305' priority 1 (CID match '_931NXXX')to vantage -- Added extension '6153248305' priority 1 (CID match '_615NXXX')to vantage ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] ex-girlfriend logic not working in latest CVS?
Maybe it's just me, but it looks as if you have one too many X's in your pattern matching.. 615NXX is all you need, i see 615NXXX. Same for 931. -twisted James Sizemore wrote: Ex-girlfriend logic not working in latest CVS? Incoming sip calls don't work. Anyone else seen this problem? Extension logic looks good: exten => 6153248305/_931NXXX,1,Queue(queue1); exten => 6153248305/_615NXXX,1,Queue(queue2); ;exten => 6153248305,1,Queue(queue3); show dialplan looks good: -- Added extension '6153248305' priority 1 (CID match '_931NXXX')to vantage -- Added extension '6153248305' priority 1 (CID match '_615NXXX')to vantage ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] ex-girlfriend logic not working in latest CVS?
On Tue, 24 Aug 2004, James Sizemore wrote: > Ex-girlfriend logic not working in latest CVS? > Incoming sip calls don't work. Anyone else seen this > problem? > > Extension logic looks good: > > exten => 6153248305/_931NXXX,1,Queue(queue1); > exten => 6153248305/_615NXXX,1,Queue(queue2); > ;exten => 6153248305,1,Queue(queue3); > > > show dialplan looks good: > > -- Added extension '6153248305' priority 1 (CID match > '_931NXXX')to vantage > -- Added extension '6153248305' priority 1 (CID match > '_615NXXX')to vantage Your lines have 7 X's in addition to the N. Did you mean to type six of them instead? (10 digits total) Greg ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users