MoH file download

Answered Question
Jun 17th, 2009
User Badges:

I am trying to download music on hold file from CUCM using sFTP. The thing is that I can not connect to the server using FileZilla or any other software. Is there any additional configuration I must perform on the CUCM to accept sFTP connections?

Correct Answer by Justin Brenton about 8 years 6 days ago

Hi There,


Here is a guide that will assist you.


http://pushkarbhatkoti.wordpress.com/2009/01/08/how-to-download-music-on-hold-moh-file-from-ccm5x-6x-7x-server/


HTH, Please rate and solve if so


Regards,

Justin


  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 4.8 (4 ratings)
Loading.
fgasimzade Wed, 06/17/2009 - 08:54
User Badges:

I tried a dump sFTP server, where I specify only port number to listen to, username, password and Root path.


Then I go to CUCM server and execute

file get activelog mohprep/SampleAudioSource.ulaw.wav,

specify sFTP IP address, port number, username and password, directory to download to and the only thing I get is "Invalid download directory specified." message from CUCM. On the sFTP server in the root directory I can only see a folder named mohrep but nothing in it..

Where is the problem?

YIJEN_2 Tue, 08/16/2011 - 19:44
User Badges:

i use CUCM7. The moh files also could be found in the backup .tar files.

joshua.gertig Tue, 12/18/2012 - 06:42
User Badges:

I used this method successfully today on CUCM version 8.6... thanks!

fpasetto33 Tue, 09/22/2015 - 06:00
User Badges:

got same error on CUCM 8.6.2.22900-9 using software Core FTP mini-sftp-server, on a Microsoft Windows [Version 5.2.3790]

 

admin:file get activelog /mohprep/Mozart-Piano-Concerto-9.alaw.wav
Please wait while the system is gathering files info ...done.
Sub-directories were not traversed.
Number of files affected: 1
Total size in Bytes: 15063910
Total size in Kbytes: 14710.85
Would you like to proceed [y/n]? y
SFTP server IP: 10.201.1.226
SFTP server port [22]:
User ID: cisco
Password: *****

Download directory: /

Invalid download directory specified.

------------------------------

A folder (D:\10.17.134.21\2014-11-07_03-29-30\mohprep) is created on / (D:\) but no file is transferred

-----------------------------

It works great with freeSSHd

CHRIS HABBERJAM Wed, 10/08/2014 - 09:38
User Badges:

Justin,

I get the error "Invalid download directory specified" as per below:

admin:file get activelog mohprep/MAIN_GREETING_NEW2.g729.wav
Please wait while the system is gathering files info ...done.
Sub-directories were not traversed.
Number of files affected: 1
Total size in Bytes: 14060
Total size in Kbytes: 13.730469
Would you like to proceed [y/n]? y
SFTP server IP: 10.1.33.105
SFTP server port [22]:
User ID: axonex
Password: ******
Download directory: /sftp/moh/

Invalid download directory specified.
admin:

Yet I see an entry created in the moh folder - an IP address folder, with a date/time sub-folder and an mohprep sub-folder in that ... but no moh file !

Any ideas, is this a rights issue on my laptop or a missing step?

THanks

Chris

 

 

 

 

Sharif Alkatib Mon, 08/03/2015 - 13:59
User Badges:

I just was able to do this using freeFTPd using the following steps found on the link:

 

http://bhatkoti.com/2009/01/08/how-to-download-music-on-hold-moh-file-from-ccm5x-6x-7x-server/

Here is my result:

 

admin:file get activelog mohprep/*
Please wait while the system is gathering files info ...done.
Sub-directories were not traversed.
Number of files affected: 36
Total size in Bytes: 73648377
Total size in Kbytes: 71922.24
Would you like to proceed [y/n]? y
SFTP server IP: 172.25.20.190
SFTP server port [22]: 
User ID: test
Password: ****

Download directory: \

....................................
Transfer completed.
admin:

 

The difference here is I used a backslash rather than what everyone is doing above using a forward slash which is causing it to reject the directory.

 

I downloaded the entire MOH directory since I needed all the files in this case.

dianareyes Wed, 03/09/2016 - 09:20
User Badges:

Hi All,


I was about to perform these MoH steps in order to download the file i need (editing purposes), however this file is currently being used in a live environment.  Does this just copy the file or does it actually transfer the file from CUCM?  I definitely do not want to impact business, can anyone confirm/advise?

Any feedback will be greatly appreciated!  

Thank you,

Diana 

Actions

This Discussion