Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

CallManager and Asterisk MWI

Any luck with configuring MWI in IP Phones, VMis in *

1 ACCEPTED SOLUTION

Accepted Solutions
Green

Re: CallManager and Asterisk MWI

Ok Justin,

Some people email me regarding the scripts,

Its just like a V 0.1 haha, ok this is a very simple one, basically its just a perl script which searches through all VM folders (kind of MsgStoreMonitor in Unity when starting) and then dial the MWI ON|OFF via SIP /not NTFY message) and puts as cn="" the VM id.

Instructions are:

edit voicemail.conf

externnotify=/usr/local/sbin/ccm.pl

I will attach ccm.pl

Copy it accordingly in the Linux server.

Edit ccm.pl to match the MWI ON|OFF configured in CCM.

It will use the spool|outgoing call feature for Asterisk

Edit extensions.conf and configure SIP trunk in CCM to send RDNIS.

;My VM pilot is 299

[voicemail]

exten => 299,1,gotoif,$["foo${RDNIS}" = "foo"]?accessvoicemail|s|1:fwdvoicemail|s|1 ;True:False

exten => 299,2,Hangup

;Call the Voice Mail application when dial number 299 but forwarded

[fwdvoicemail]

exten => s,1,VoiceMail2(u${RDNIS})

exten => s,2,Hangup

;Call the Voice Mail application when dial number 299 pressing messages

[accessvoicemail]

exten => s,1,VoiceMailMain(${CALLERIDNUM})

exten => s,2,Hangup

HTH, dont hesitate to contact me.

PS. You can improve them!

//Gonz

4 REPLIES
Green

Re: CallManager and Asterisk MWI

Hi Justin,

Please correct me if Im wrong, what I understand is that you want to have MWI feature in IP Phones connected to CCM when VM system is in *.

I created some scripts in perl for Asterisk, but at are home, assuming you have SIP integration right?

Will give u an update today.

Please drop me an email at gogasca at cisco dot com

So i have your email address.

//G

Green

Re: CallManager and Asterisk MWI

Ok Justin,

Some people email me regarding the scripts,

Its just like a V 0.1 haha, ok this is a very simple one, basically its just a perl script which searches through all VM folders (kind of MsgStoreMonitor in Unity when starting) and then dial the MWI ON|OFF via SIP /not NTFY message) and puts as cn="" the VM id.

Instructions are:

edit voicemail.conf

externnotify=/usr/local/sbin/ccm.pl

I will attach ccm.pl

Copy it accordingly in the Linux server.

Edit ccm.pl to match the MWI ON|OFF configured in CCM.

It will use the spool|outgoing call feature for Asterisk

Edit extensions.conf and configure SIP trunk in CCM to send RDNIS.

;My VM pilot is 299

[voicemail]

exten => 299,1,gotoif,$["foo${RDNIS}" = "foo"]?accessvoicemail|s|1:fwdvoicemail|s|1 ;True:False

exten => 299,2,Hangup

;Call the Voice Mail application when dial number 299 but forwarded

[fwdvoicemail]

exten => s,1,VoiceMail2(u${RDNIS})

exten => s,2,Hangup

;Call the Voice Mail application when dial number 299 pressing messages

[accessvoicemail]

exten => s,1,VoiceMailMain(${CALLERIDNUM})

exten => s,2,Hangup

HTH, dont hesitate to contact me.

PS. You can improve them!

//Gonz

Community Member

Re: CallManager and Asterisk MWI

Very,very useful!

Thanks so much!

You have save my proyect!

Community Member

Re: CallManager and Asterisk MWI

I have done the following

In voicemail.conf i have set.

[general]

externnotify=/usr/local/sbin/ccm.pl

in ccm.pl i have modified following parameters.

my $Trunk='@172.31.1.55' ;callmanager ip address

The mwi numbers are the same as in the ccm.pl file, 199 and 198. After the voicemail has been recorded there are no indication in Asterisk CLI that the script launches. Are there anything else i need to set in the ccm.pl file.

885
Views
5
Helpful
4
Replies
CreatePlease to create content