UC560 CDR FTP Config

Unanswered Question
Mar 18th, 2013

Hi

I have a UC-560 and I want to send automaticaly the CDR for all outgoing call to the FTP server.

i have config the UC560 as follows:

gw-accounting file
 primary ftp 192.168.0.107:21/CDR username CDR password <removed>
 acct-template callhistory-detail
 maximum buffer-size  15
 maximum retry-count 3
 maximum fileclose-timer 300
 maximum cdrflush-timer 245
 cdr-format compact

However I am not able to ftp the CDR files to my Call Accounting Server. I got this from my ftp client:

Status:          Connecting to 192.168.0.19:21...

Status:          Connection attempt failed with "ECONNREFUSED - Connection refused by server".

Error:          Could not connect to server

Also I found this in the logs:

539    2638347 Jan 18 2013 10:07:18 -05:00 cdr.Grove_Ochi.01_18_2013_09_02_09.013
540          0 Jan 18 2013 10:09:58 -05:00 cdr.Grove_Ochi.01_18_2013_10_09_58.226
541          0 Jan 18 2013 10:09:58 -05:00 cdr.Grove_Ochi.01_18_2013_10_09_58.546
542          0 Jan 18 2013 10:09:58 -05:00 cdr.Grove_Ochi.01_18_2013_10_09_58.866
543          0 Jan 18 2013 10:09:58 -05:00 cdr.Grove_Ochi.01_18_2013_10_09_59.286
544          0 Jan 22 2013 16:56:30 -05:00 cdr.Grove_Ochi.01_22_2013_16_56_31.946
545          0 Jan 22 2013 16:56:32 -05:00 cdr.Grove_Ochi.01_22_2013_16_56_32.270
546          0 Jan 22 2013 16:56:32 -05:00 cdr.Grove_Ochi.01_22_2013_16_56_32.590
547          0 Jan 22 2013 16:56:32 -05:00 cdr.Grove_Ochi.01_22_2013_16_56_33.010
548          0 Jan 22 2013 16:56:32 -05:00 cdr.Grove_Ochi.01_22_2013_16_56_33.330
549          0 Mar 18 2013 12:54:36 -04:00 cdr.Grove_Ochi.03_18_2013_12_54_36.003
550          0 Mar 18 2013 12:54:36 -04:00 cdr.Grove_Ochi.03_18_2013_12_54_36.339
551          0 Mar 18 2013 12:54:36 -04:00 cdr.Grove_Ochi.03_18_2013_12_54_36.763
552          0 Mar 18 2013 12:54:36 -04:00 cdr.Grove_Ochi.03_18_2013_12_54_37.091
553          0 Mar 18 2013 12:54:36 -04:00 cdr.Grove_Ochi.03_18_2013_12_54_37.415
554          0 Mar 18 2013 12:54:36 -04:00 cdr.Grove_Ochi.03_18_2013_12_54_37.739
555          0 Mar 18 2013 12:54:38 -04:00 cdr.Grove_Ochi.03_18_2013_12_54_38.163
556          0 Mar 18 2013 19:18:30 -04:00 cdr.Grove_Ochi.03_18_2013_19_18_30.392
557          0 Mar 18 2013 19:18:30 -04:00 cdr.Grove_Ochi.03_18_2013_19_18_30.716
558          0 Mar 18 2013 19:18:30 -04:00 cdr.Grove_Ochi.03_18_2013_19_18_31.036
559          0 Mar 18 2013 19:18:30 -04:00 cdr.Grove_Ochi.03_18_2013_19_18_31.460
560          0 Mar 18 2013 19:18:30 -04:00 cdr.Grove_Ochi.03_18_2013_19_18_31.780
561          0 Mar 18 2013 19:18:32 -04:00 cdr.Grove_Ochi.03_18_2013_19_18_32.100
562          0 Mar 18 2013 19:18:32 -04:00 cdr.Grove_Ochi.03_18_2013_19_18_32.420
563          0 Mar 18 2013 19:37:28 -04:00 cdr.Grove_Ochi.03_18_2013_19_37_29.323
564          0 Mar 18 2013 19:37:28 -04:00 cdr.Grove_Ochi.03_18_2013_19_37_29.659
565          0 Mar 18 2013 19:37:28 -04:00 cdr.Grove_Ochi.03_18_2013_19_37_29.995
566          0 Mar 18 2013 19:37:30 -04:00 cdr.Grove_Ochi.03_18_2013_19_37_30.331
567          0 Mar 18 2013 19:37:30 -04:00 cdr.Grove_Ochi.03_18_2013_19_37_30.767

0 bytes available (260177920 bytes used)

Tried to flush the CDR files out of the flash but that is not working. I restarted the UC560 but nothing changes.

What am i doing wrong? Help!

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Average Rating: 0 (0 ratings)
Yasien Adams Mon, 03/18/2013 - 19:09

Hi,

I know it says connection refused, but im assuming the UC can actually talk to that ftp server?

Also have you verified that the server is accepting incoming requests from the UC?

Another thing to try, is an anonymous account for testing purposes.

Regards

Yasien

Darren DeCroock Tue, 03/19/2013 - 08:51

Hello,

I looked at your config, and I am not sure of your FTP line:

     gw-accounting file
      primary ftp 192.168.0.107:21/CDR username CDR password

The believe the format should be:

     gw-accounting file
      primary ftp 192.168.0.107:21/username XXXX password XXXX

You can test the FTP fuctionality by copying a file to your FTP server:
     copy flash:testfile.txt ftp://username:password@192.168.0.107


Also, you cannot "flush" the files from flash, they will need to be deleted, or
manually moved if you would like to keep them.

Thank you,
Darren
level_3rd Wed, 03/20/2013 - 15:08

I added the backup location as follows:

gw-accounting file
 primary ftp 192.168.0.107:21/cdr username CDR password 
secondary ifs
acct-template callhistory-detail maximum buffer-size  15 maximum retry-count 3 maximum fileclose-timer 300 maximum cdrflush-timer 245 cdr-format compact

and the log showed this

572          0 Mar 18 2013 21:16:34 -04:00 cdr.Grove_Ochi.03_18_2013_21_16_34.996
573          0 Mar 20 2013 14:46:06 -04:00 flash.Grove_Ochi.03_20_2013_14_46_07.632
574          0 Mar 20 2013 14:48:08 -04:00 flash.Grove_Ochi.03_20_2013_14_48_08.250
575          0 Mar 20 2013 14:48:08 -04:00 flash.Grove_Ochi.03_20_2013_14_48_08.706
576          0 Mar 20 2013 14:48:08 -04:00 flash.Grove_Ochi.03_20_2013_14_48_09.062
577          0 Mar 20 2013 14:48:08 -04:00 flash.Grove_Ochi.03_20_2013_14_48_09.418
578          0 Mar 20 2013 14:48:08 -04:00 flash.Grove_Ochi.03_20_2013_14_48_09.874

The UC560 stop writing the CDR files. How do I get the UC560 to do

copy flash:testfile.txt ftp://username:password@192.168.0.107 ?

Darren DeCroock Thu, 03/21/2013 - 06:10

Hello,

It sounds like the files are still not getting to the FTP server.  They are going to the secondary location.

Remove:

secondary ifs

This tells the unit to send the files to a secondary location (flash) if the primary (FTP) location is not availalble.

You can test the FTP by flushing the information to send it to the FTP server immediately by using the following command:

file-acct flush with close

To test the FTP, you should enter into CLI and then use the copy command listed.  (replace "testfile.txt" with a file located on the root of flash.)

copy flash:testfile.txt ftp://username:password@192.168.0.107 

Thank you,

DArren

Actions

Login or Register to take actions

This Discussion

Posted March 18, 2013 at 6:16 PM
Stats:
Replies:4 Avg. Rating:
Views:622 Votes:0
Shares:0
Tags: No tags.

Discussions Leaderboard