Mark O'Connor > Convert-Cisco > Convert::Cisco

Download:
Convert-Cisco-0.06.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.06   Source  

NAME ^

Convert::Cisco - Module for converting Cisco billing records

VERSION ^

Version 0.06

SYNOPSIS ^

Convert Cisco billing record binary files. The format is available on the Cisco Website:

 http://www.cisco.com/univercd/cc/td/doc/product/access/sc/rel9/billinf/r9chap1.htm

Module used to convert Cisco billing records into XML

 use Convert::Cisco;

 my $obj = Convert::Cisco->new(stylesheet=>"cisco.xsl");
 $obj->to_xml("test.bin", "test.xml");

FUNCTIONS ^

new

Constructor method, has the following optional parameters:

stylesheet

Adds a xml-stylesheet processing instruction to the top of all converted XML files

 <?xml-stylesheet href="cisco.xsl" type="text/xsl"?>
config

Billing record configuration data expressed in YAML format. This option is normally only used by the tests because it over-rides the modules field configuration.

to_xml

Converts a file into XML format. The current record format is:

 <?xml version="1.0" encoding="UTF-8"?>
 <cdrs>
  ..
  ..
  <cdb tag="1110" name="EndOfCall">
    <cde name="calling_party_category" tag="3000">0a</cde>
    <cde name="user_service_info" tag="3001">8090a3</cde>
    <cde name="calling_number_nature_of_address" tag="3003">02</cde>
        ..
        ..
  </cdb>
  ..
  ..

NOTE:

The XML format is subject to change and needs an associated XML DTD or Schema.

AUTHOR ^

Mark O'Connor, <marko@cpan.org>

BUGS ^

Please report any bugs or feature requests to bug-convert-cisco at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Convert-Cisco. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT ^

You can find documentation for this module with the perldoc command.

    perldoc Convert::Cisco

You can also look for information at:

ACKNOWLEDGEMENTS ^

COPYRIGHT & LICENSE ^

Copyright 2007 Mark O'Connor, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: