I am using GotoIf all over the place in 1.4.8 but for some reason, the following in my dial plan:
############################################################# exten => _1NXXNXXXXXX,1,GotoIf([${EXTEN} = "15554441212"]?100) exten => _1NXXNXXXXXX,n,Dial(SIP/provider1/${EXTEN},60) exten => _1NXXNXXXXXX,n,Dial(SIP/provider2/${EXTEN},60) exten => _1NXXNXXXXXX,n,Hangup exten => _1NXXNXXXXXX,100,NoOp(Calling my cell w/special CID) exten => _1NXXNXXXXXX,n,Set(CALLERID(all)="Dude" <5551112233>) exten => _1NXXNXXXXXX,n,Dial(SIP/provider1/${EXTEN},60) exten => _1NXXNXXXXXX,n,Dial(SIP/provider2/${EXTEN},60) exten => _1NXXNXXXXXX,n,Hangup ############################################################# Results in this in my CLI: ############################################################## dalint1*CLI> == Parsing '/etc/asterisk/sip_notify.conf': Found -- Executing [EMAIL PROTECTED]:1] GotoIf("SIP/5556685598-b7dc7f90", "[18005558888 = "15554441212"]?100") in new stack -- Goto (out-personal,18005558888,100) -- Executing [EMAIL PROTECTED]:100] NoOp("SIP/5556685598-b7dc7f90", "Calling my cell w/special CID") in new stack -- Executing [EMAIL PROTECTED]:101] Set("SIP/5556685598-b7dc7f90", "CALLERID(all)="Dude" <5551112233>") in new stack -- Executing [EMAIL PROTECTED]:102] Dial("SIP/5556685598-b7dc7f90", "SIP/provider1/18005558888|60") in new stack -- Called provider1/18005558888 ################################################################ Clearly 18005558888 does NOT equal "15554441212" so why is it jumping to priority 100? I always hate to scream BUG but I can't see my mistake here to save my life.. Anyone? Maybe I am just tired.. Of course I have changed the numbers involved to protect the innocent :-) Regards, Todd R. -- Prestige Messaging Live Answering Services SIP or Toll-Free Connectivity Light Accounts From $14.95/mo http://www.PrestigeMessaging.com _______________________________________________ --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