Shouldn't the second line (the one with HANGUP) have priority 2
rather than 1? So it would read:
exten => s/9185415897,2,Hangup
?
regards,
mayo
On Dec 19, 06, at 14:54 , Michael Sullivan wrote:
> OK. My basic asterisk install seems to be working. I can get caller
> ID. My dialplan says:
>
> [incoming]
> ; incoming calls from the FXO port are directed to this context from
> zapata.conf
> exten => s/9185415897,1,Set(CALLERID(name)=Michael Sullivan)
> exten => s/9185415897,1,HANGUP(1)
> exten => s,1,Set(CALLERID(name)=Someone Else)
>
> This is for testing. It's supposed to check the caller ID to see
> who is
> calling, and if it's my cell phone, hang up, but let any other number
> through to ring on our handsets. Instead it rewrites the caller ID
> name
> to Michael Sullivan and allows the call to pass through. Here is the
> output of the call to the CLI:
>
> -- Starting simple switch on 'Zap/1-1'
> -- Executing Set("Zap/1-1", "CALLERID(name)=Michael
Sullivan") in
> new stack
> == Auto fallthrough, channel 'Zap/1-1' status is
'UNKNOWN'
> -- Hungup 'Zap/1-1'
> -- Starting simple switch on 'Zap/1-1'
> Dec 19 16:51:37 NOTICE[7413]: chan_zap.c:6073 ss_thread: Got event 18
> (Ring Begin)...
> -- Executing Set("Zap/1-1", "CALLERID(name)=Someone
Else") in new
> stack
> == Auto fallthrough, channel 'Zap/1-1' status is
'UNKNOWN'
> -- Hungup 'Zap/1-1'
>
> In fact, the "hang up on my number" clause isn't even shown
in the
> dialplan in the CLI:
>
> camille*CLI> show dialplan incoming
> [ Context 'incoming' created by 'pbx_config' ]
> 's' => 1. Set(CALLERID(name)=Michael Sullivan)
> [pbx_config]
> 's' => 1. Set(CALLERID(name)=Someone Else)
> [pbx_config]
> camille*CLI>
> -= 2 extensions (2 priorities) in 1 context. =-
> camille*CLI>
>
>
> What am I doing wrong?
>
>
>
>
>
> _______________________________________________
> --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