Dear All,
I need to implement the following scenario:
- I receive a call on my Zap channel (TDM400 card) .
- Grab the Caller ID
- Disconnect the call without answering the call (avoiding the connection fees from TELCO).
The first two steps are easy to acheive, though the same is not true for the third one.
I have the following context:
exten => s,1,NoOp(Received a call to ZAP Interface from: ${CALLERIDNUM})
exten => s,n,Congestion();
exten => s,n,Hangup();
It gives me the following output on Asterisk and the call is not being congested actually; the ringtones continue to be heard:
-- Starting simple switch on 'Zap/4-1'
-- Executing NoOp("Zap/4-1", "Received a call to ZAP Interface from: +436648981606") in new stack
-- Executing Congestion("Zap/4-1", "") in new stack
Mar 3 01:02:00 WARNING[24303]: chan_zap.c:3926 zt_handle_event: Ring/Off-hook in strange state 7 on channel 4
Mar 3 01:02:05 WARNING[24303]: chan_zap.c:3926 zt_handle_event: Ring/Off-hook in strange state 7 on channel 4
== Spawn extension (zap-incoming, s, 2) exited non-zero on 'Zap/4-1'
-- Hungup 'Zap/4-1'
-- Starting simple switch on 'Zap/4-1'
Mar 3 01:02:19 WARNING[24310]: chan_zap.c:6149 ss_thread: CallerID returned with error on channel 'Zap/4-1'
-- Executing NoOp("Zap/4-1", "Received a call to ZAP Interface from: +43") in new stack
-- Executing Congestion("Zap/4-1", "") in new stack
== Spawn extension (zap-incoming, s, 2) exited non-zero on 'Zap/4-1'
-- Hungup 'Zap/4-1'
Would appreciate any advice.