cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1877
Views
10
Helpful
4
Replies

CallManager and Asterisk MWI

Justin Pascal
Level 1
Level 1

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

1 Accepted Solution

Accepted Solutions

gogasca
Level 10
Level 10

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

View solution in original post

4 Replies 4

gogasca
Level 10
Level 10

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

gogasca
Level 10
Level 10

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

Very,very useful!

Thanks so much!

You have save my proyect!

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.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: