BLOG     |     FORUM
Welcome, Guest
Username: Password: Remember me
All your questions answered real quick by Unleash Networks Engineers.
  • Page:
  • 1

TOPIC: continuing the conversations

continuing the conversations 15 years 3 months ago #17

Help->About says Unsniff is 1.0.0.1206

I changed all the OpenforRead to Open
in iax2ana.rb and get the following error:

Sorry I am not a windows guy - It took me 10 minutes
to figure out cut and paste www.unleashnetworks.com/components/com_s...rd/emoticons/sad.png
:(

==========================
C:\Program Files\UnleashNetworks\Unsniff>iax2ana.rb 4157527177A.unsf
C:/Program Files/UnleashNetworks/Unsniff/iax2ana.rb:373:in `method_missing': Ope
n (WIN32OLERuntimeError)
OLE error code:80004005 in Unsniff.Database.1
Open Database: Invalid Database File
HRESULT error code:0x80020009
Exception occurred. from C:/Program Files/UnleashNetworks/Unsniff/ia
x2ana.rb:373:in `extract_calls'
from C:/Program Files/UnleashNetworks/Unsniff/iax2ana.rb:1319

C:\Program Files\UnleashNetworks\Unsniff>
=========================================

I am a ruby newbie - so be patient.

Anthony




=============================
Hi Anthony,

You seem to be using an older version of Unsniff because the OpenForRead method is missing. Please tell us what version you are using From Help->About.

You have two options:

1. Download the latest version from the website. Uninstall older version and reinstall the new one. <-- Recommended

2. Change all occurances of OpenForRead(..) in the iax2ana.rb to Open(..). If you are using this option you must close Unsniff before running the iax2ana.rb script.

Anthony, it would be great if you could use our online forum for these requests.

Regards,
Vivek Rajan



Original Message
From: Anthony McCarthy
To: This e-mail address is being protected from spambots. You need JavaScript enabled to view it
Sent: Friday, May 26, 2006 6:21 AM
Subject: errors in scripts

I attach a jpeg image of a DOS screen with the errors I received after
installing Unsniff and Ruby1.82-15 on XP/SP2

my username is mccarthy1ca

Any suggestions
Anthony:sick:
The administrator has disabled public write access.

Re:continuing the conversations 15 years 3 months ago #18

  • netscript
  • netscript's Avatar
Hi Anthony,

You have the latest version of Unsniff. So no problems there.

Check if the capture file is in the same directory as the iax2ana.rb script. If not you have to specify the full pathname of the file (use double quotes if your path has spaces in them).

Example:
Replace the path in the example to point to your capture file.

[code:1]

iax2ana.rb \"C:\My Captures\4157527177A.usnf\"

[/code:1]


One curious thing in your latest cut-and-paste:
The capture file \"4157527177A.unsf\" has an extension \"UNSF\". The standard extension of Unsniff Capture Files is \"USNF\" (note the typo the letter S and N are interchanged). It is probably just a typo.


Let us know if the problem persists.

Regards,
The administrator has disabled public write access.

Re:continuing the conversations 15 years 3 months ago #33

Duh!
Well changing unsf to usnf definitely helps a lot.

So here is the next error I get, see the attached file.

Anthony


C:\Anthony\unleash>dir
Volume in drive C has no label.
Volume Serial Number is D8F2-9B67

Directory of C:\Anthony\unleash

05/30/2006 02:20p <DIR> .
05/30/2006 02:20p <DIR> ..
05/30/2006 12:37p 36,478,976 053006A.usnf
05/25/2006 02:01p 21,204,354 ActiveTcl8.4.13.0.261555-win32-ix86-threa
ded.exe
05/25/2006 12:18p 31,931 iax2ana.rb
05/25/2006 12:25p 15,492,542 ruby182-15.exe
05/25/2006 12:31p 22,514,296 ruby184-17_rc2.exe
05/30/2006 02:08p 74,742 s2.jpeg
05/30/2006 02:11p 48,437 s3.jpeg
05/30/2006 02:17p 42,548 s4.jpeg
05/30/2006 02:20p 23,379 s5.jpeg
05/24/2006 03:32p 682,955 setup_snfplugs_R_0_2_1_1055.exe
05/24/2006 03:32p 3,716,025 setup_unbrowse_R_0_4_3_1052.exe
05/24/2006 03:32p 7,427,260 setup_unsniff_R_1_0_0_1206.exe
05/25/2006 12:19p 11,875 UnleashCharts.rb
05/25/2006 02:17p 1,266,515 x_lite-counterpath_Win32_1105x_21407.exe
14 File(s) 109,015,835 bytes
2 Dir(s) 34,158,886,912 bytes free

C:\Anthony\unleash>iax2ana.rb 053006A.usnf
getCompletedCall: cannot find call number 0
showing call 0
C:/Anthony/unleash/iax2ana.rb:184:in `showCall': undefined method `callDescr' fo
r nil:NilClass (NoMethodError)
from C:/Anthony/unleash/iax2ana.rb:1326

C:\Anthony\unleash>

Post edited by: mccarthy1ca, at: 2006/05/30 15:57

Post edited by: mccarthy1ca, at: 2006/05/30 16:10<br><br>Post edited by: mccarthy1ca, at: 2006/05/30 16:13
The administrator has disabled public write access.

Re:continuing the conversations 15 years 3 months ago #34

  • netscript
  • netscript's Avatar
Hi Anthony,

It seems like the iax2ana script is not able to find any calls in your capture file. This is probably because the initial call setup messages are not in the capture file.

The way the script works is :
  • Upon startup, the script scans the capture file looking for the NEW and ACCEPT messages (IAX2). These messages are sent during initial call setup and various parameters including codecs are negotitated using these two messages.
  • For each matching NEW and ACCEPT message, the script creates a \&quot;call\&quot; and sticks it in the list.
  • If the script cannot find any NEW + ACCEPT messages, it assumes that there are no calls in the capture file. So it quits (the error message is however confusing - we will fix it soon)

  • To check if you have captured the initial call setup messages, NEW and ACCEPT open the capture file (053006A.usnf) with Unsniff. You can either double click it or use File-&gt;Open from within Unsniff. You can click on the \&quot;Details\&quot; list header to sort the list to make it easier for you. Please check if you can see any \&quot;IAX Control NEW..\&quot; or \&quot;IAX Control ACCCEPT..\&quot;


    Regards,
    Vivek
The administrator has disabled public write access.

Re:continuing the conversations 15 years 3 months ago #35

Sorry for the confusion. I eventually answered
my own question but then could not post here
for some reason.

My mistake was to use Xten sip phone rather
than an IAX phone. I downloaded iaxcomm, made
a phone call and was able to see the results
using iax2ana.rb.

Anthony
The administrator has disabled public write access.

Re:continuing the conversations 8 years 1 day ago #3649

  • prabhat
  • prabhat's Avatar
Hi, I am using Unsniff version 1.8.0.1537
In my calls.usnf file I can see NEW and ACCEPT messages, but I am getting below error, please help me resolving it. I am new to Ruby.

C:\Users\hp\Desktop>iax2ana.rb calls.usnf
C:/Users/hp/Desktop/iax2ana.rb:373:in `method_missing': (in OLE method `OpenFor
ead': ) (WIN32OLERuntimeError)
OLE error code:80004005 in Unsniff.Database.1
Open Database: Invalid Database File
HRESULT error code:0x80020009
Exception occurred.
from C:/Users/hp/Desktop/iax2ana.rb:373:in `extract_calls'
from C:/Users/hp/Desktop/iax2ana.rb:1324:in `<main>'
The administrator has disabled public write access.
  • Page:
  • 1
Moderators: vivek [unleash]
Time to create page: 0.055 seconds