Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

TAP & RAP files processing

by nerd (Initiate)
on Feb 15, 2008 at 06:09 UTC ( #668100=perlquestion: print w/ replies, xml ) Need Help??
nerd has asked for the wisdom of the Perl Monks concerning the following question:


Hi,
Anyone here knows here abt TAP and RAP files. Actually i m able to process tap file using tap3edit module but when i m processing the rap file it is giving me following error.

decode error 5f840f<=>5f8135 26 4 rapFileSequenceNumber at C:/Perl/site/lib/Convert/ASN1/_decode.pm line 106. at C:\pp\tap\tap_display.pl line 17

Actually tap and rap files are the ASN1 format files. These files are generated when u make a call while roaming (tap) by the visited location network operator n sent to ur home n/w operator. if there is an error in the tap file a rap files is generated for the same and sent back to visited location network operator.
Here is my peice of code:-
Perl Code 1. #!/usr/bin/perl 2. 3. use TAP3::Tap3edit; 4. use Data::Dumper; 5. use XML::Dumper; 6. 7. $Data::Dumper::Indent=1; 8. $Data::Dumper::Useqq=1; 9. 10. $filename=shift; 11. 12. if ( ! $filename ) { 13. die "Usage: $0 filename\n"; 14. } 15. 16. $tap3 = TAP3::Tap3edit->new(); 17. $tap3->decode($filename) || die $tap3->error; 18. 19. print Dumper ($tap3->structure);
Thanks

Comment on TAP & RAP files processing
Download Code
Re: TAP & RAP files processing
by Anonymous Monk on Feb 21, 2008 at 09:13 UTC
    ?????? :(((
      Anyone here please help me out.....

        Well, you don't give us much to work with.

        The error you get:

        Decode error 5f840f<=>5f8135 26 4 rapFileSequenceNumber

        seems to indicate that at least one of your files is not a valid ASN1 file (not that I like ASN). You could look into Convert::ASN1 and the bug reports for Convert::ASN1. You could also look at what exactly in your file is causing the decode error. Without seeing your files and some downloadable and self-contained code that replicates the problem, we're unlikely to provide helpfull comments. As an aside, your "numbering" of the file makes it pretty unwieldly to download and run your code. And as you don't provide sample data that exhibits the error, we're unlikely to reproduce the error anyway.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://668100]
Approved by randyk
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2014-12-28 19:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (182 votes), past polls