[Asterisk-Users] Throroughly confused about SetCallerID
beonice
beonice at yahoo.com
Mon Oct 10 16:35:14 MST 2005
--- Dan Journo <danjourno at gmail.com> wrote:
> Hi Beonice,
> Just told i was dealing with the same problem.
> [incoming]
> exten => _!,1,GotoIf($["${CALLERID}" =
> "unknown"]?2:5)
> exten => _!,2,Set(CALLERID(name)=Withheld Number)
> exten => _!,3,Set(CALLERID(number)=000000)
> exten => _!,4,Goto(8)
> exten => _!,5,GotoIf($["${CALLERID}" =
> "asterisk"]?2)
> exten => _!,6,Set(CALLERID(name)=${CALLERID})
> exten => _!,7,Set(CALLERID(number)=${CALLERID})
> exten => _!,8,Dial(SIP/${EXTEN})
> Maybe you can use that to solve your problem.
> With regards to voicemail etc, i cant help you with
> that.
> Take care
> Dan
> www.sippal.com <http://www.sippal.com>
Thanks, Dan. I figured out that I needed to use the
GotoIf variety just as soon as I finished posting. It
does work great now. I guess it works the same on all
incoming calls, whether or not it gets sent off to
voicemail after that is irrelevant.
Thanks again!
Maya
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
More information about the asterisk-users
mailing list