Do a "core set verbose 10" and repeat the test. CLI should tell you what you need to handle the exception.
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Brian Sent: Thursday, February 25, 2010 9:12 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Redirect call based on CLI??? On Thu, 2010-02-25 at 03:00 -0800, Kyle Kienapfel wrote: > http://www.voip-info.org/tiki-index.php?page=Asterisk%20config%20extensions. conf > Has example > exten => s,1,Answer > exten => s/9184238080,2,Set(CALLERID(name)=EVIL BASTARD) > exten => s,2,Set(CALLERID(name)=Good Person) > exten => s,3,Dial(SIP/goodperson) > > for white list > > exten => s/123123123,1,Dial(SIP/phoneA) > exten => s/456456456,1,Dial(SIP/phoneA) > exten => s,1,Dial(SIP/phoneB) > > Thanks Kyle. I tried the example given but I could not get this to work - basically if I dial it from any phone that does not match 0800800800 (for illustration) it hangs up the channel with an error. exten => 845/0800800800,n,Set(CALLERID(name)=EVIL BASTARD) -->-- Auto fallthrough, channel 'SIP/1000-00000017' status is 'UNKNOWN' I'm struggling to work out the logic here of a non-match, but this was not caught by i or s in error, so I'm probably missing some brain connection here. However, I've managed to do what I want using gotoif statements matching caller id - but I'd be interested to work out how the above is meant to branch on a non-match. -- _____________________________________________________________________ -- 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 -- _____________________________________________________________________ -- 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
