Brian J. Rathman
2005-Oct-07 12:58 UTC
[Asterisk-Users] Asterisk to CCM Message Waiting Indicator
I am trying to setup Asterisk as the voicemail server for Cisco Call Manager. I have just about everything working except for the message waiting indicator. I have the following setup in context [ccm] in my extensions.conf file: ;MWI exten => _2807XXX,1,SetCallerID(${EXTEN:3}) exten => _2807XXX,2,Dial(SIP/28888@65.202.115.240) exten => _2807XXX,3,Answer exten => _2807XXX,4,Wait,1 exten => _2807XXX,5,Hangup ;MWI exten => _2817XXX,1,SetCallerID(${EXTEN:3}) exten => _2817XXX,2,Dial(SIP/28889@65.202.115.240) exten => _2817XXX,3,Answer exten => _2817XXX,4,Wait,1 exten => _2817XXX,5,Hangup I also have the vm.sh file in /var/lib/asterisk/scripts/vm.sh: if [ $3 -gt 0 ]; then CALLFILE=$(cat <<-EOF1 Channel: Local/281$2 MaxRetries: 1 # Retry in 2 min RetryTime: 120 WaitTime: 45 Context: ccm Extension: s Priority: 1 EOF1) echo "$CALLFILE" >> "/var/spool/asterisk/outgoing"/$(date +%Y%mNaVI%M%S)-$1 else CALLFILE=$(cat <<-EOF1 Channel: Local/280$2 MaxRetries: 1 # Retry in 2 min RetryTime: 120 WaitTime: 45 Context: ccm Extension: s Priority: 1 EOF1) echo "$CALLFILE" >> "/var/spool/asterisk/outgoing"/$(date +%Y%mNaVI%M%S)-$1 fi Unfortunately, I keep getting these errors on every voicemail that I leave: Oct 7 14:36:16 NOTICE[17889]: chan_local.c:455 local_alloc: No such extension/context 2817001@default creating local channel Oct 7 14:36:16 NOTICE[17889]: channel.c:2098 __ast_request_and_dial: Unable to request channel Local/2817001 Oct 7 14:36:16 NOTICE[17889]: pbx_spool.c:243 attempt_thread: Call failed to go through, reason 0 I know this is probably fairly easy to fix but I'm not exactly sure how the outbound call files in /var/spool/asterisk/outgoing work. Any ideas as what I can change. One other question, I have several different voicemail contexts setup and this is the only one where I need an external notification. Is there a way to set this up so that I only send these notify calls when there is a voicemail in this ccm context? Any help would be greatly appreciated. Thanks, Brian