Re: [asterisk-users] Help with GotoIf Command

2012-09-09 Thread SamyGo
Hi, This is exactly why it is very important and wise to attach CLI verbose logs and other traces so the real issue gets resolved quicker than making all the people figure out the possibilities. BR Sammy On Mon, Sep 10, 2012 at 7:52 AM, David Klaverstyn wrote: > Hi All, > > ** ** > > Thanks

Re: [asterisk-users] Help with GotoIf Command

2012-09-09 Thread David Klaverstyn
Hi All, Thanks for all your suggestions. It turns out that the CID Name was sent with a space at the end of the number and that is why there was never a match. Regards David. -- _ -- Bandwidth and Colocation Provided by http:/

Re: [asterisk-users] Help with GotoIf Command

2012-09-05 Thread Warren Selby
On Wed, Sep 5, 2012 at 4:30 AM, David Klaverstyn wrote: > Hi All, > > ** ** > > For some reason I can’t get this GotoIf statement to work. Even if the > name and number are the same it jumps to line 3. I’ve tried with and > without the quotes around each variable. > > ** ** > > exten =>

Re: [asterisk-users] Help with GotoIf Command

2012-09-05 Thread Rodrigo Bastos de Moura
__ De: Danny Nicholas Para: 'Asterisk Users Mailing List - Non-Commercial Discussion' Enviadas: Quarta-feira, 5 de Setembro de 2012 10:22 Assunto: Re: [asterisk-users] Help with GotoIf Command By definition you are doing if not equal go to 3.  Gotoif($[conditi

Re: [asterisk-users] Help with GotoIf Command

2012-09-05 Thread Danny Nicholas
Sent: Wednesday, September 05, 2012 4:31 AM To: Asterisk Users Mailing List - Non-Commercial Discussion (asterisk-users@lists.digium.com) Subject: [asterisk-users] Help with GotoIf Command Hi All, For some reason I can't get this GotoIf statement to work. Even if the name and numbe

Re: [asterisk-users] Help with GotoIf Command

2012-09-05 Thread Doug Lytle
David Klaverstyn wrote: exten => s,1,GotoIf($["${CALLERID(name)}" = "${CALLERID(num)}"]?:3) exten => s,1,NoOP(${CALLERID(name)}) exten => s,n,NoOP(${CALLERID(num)}) Will probably give you some clues. Doug -- Ben Franklin quote: "Those who would give up Essential Liberty to purchase a litt

[asterisk-users] Help with GotoIf Command

2012-09-05 Thread David Klaverstyn
Hi All, For some reason I can't get this GotoIf statement to work. Even if the name and number are the same it jumps to line 3. I've tried with and without the quotes around each variable. exten => s,1,GotoIf($["${CALLERID(name)}" = "${CALLERID(num)}"]?:3) exten => s,2,NoOp(they are the Same)