costo sildenafil comprar vardenafil cialis tiempo disfuncion erectil cura levitra remboursement foro sildenafil prix cialis en france cialis indicaciones cialis commande commander viagra pfizer viagra generique forum cialis vente en france levitra moins cher cialis remedio cialis farmacias prix cialis 20mg prix cialis generique achat cialis pas cher viagra 25 mg prix tadalafil uruguay viagra a contrareembolso tarif viagra pharmacie viagra prix au maroc sildenafil pastilla viagra prix belgique femme viagra cialis en suisse comprar generico viagra comprar viagra sin receta en españa équivalent viagra sans ordonnance cialis tabletas cialis en andorre viagra en pharmacie levitra medicament acheter viagra pour femme viagra generique pas cher viagra comprar acheter cialis 5mg pildoras cialis viagra sur les femmes sildenafil marcas comerciales viagra ne marche pas cialis au quebec precio tadalafil kamagra foro magnus sildenafil comprar cialis andorra venta cialis generico sildenafil pour femme cialis acheter en france viagra bruxelles levitra generica sildenafil receta precio cialis 5 mg 28 comprimidos achete viagra cialis no me funciona viagra faut il une ordonnance viagra precio sin receta viagra commander levitra per nachnahme achat cialis viagra pfizer precio pastillas impotencia compra levitra cialis generico en andorra disfuncion erectil pastillas viagra en vente libre en belgique precio viagra receta viagra en espagne viagra precio en farmacias viagra chez la femme levitra en suisse viagra donde conseguir tadalafilo cialis sur ordonnance commande viagra canada venta de levitra cialis diario precio generique viagra france acheter viagra viagra 100 mg pfizer tadalafil argentina acheter cialis 5 milligrams ventajas viagra precio cialis farmacia tabletas sildenafil masticable viagra acheter viagra en france remedios disfuncion erectil sildenafil sirve para mujeres cialis generico en españa vendo cialis barcelona cialis necesita receta medica cialis se vende en farmacias kamagra precio viagra en suisse kamagra 100 mg viagra pharmacie paris viagra online contrareembolso kamagra oral jelly comprar sildenafil generico medicamento sildenafil 50 mg viagra maroc prix viagra se necesita receta levitra madrid comprar tadalafil viagra vente libre acheter viagra montreal levitra compra comprar cialis sin receta viagra generico comprar venta viagra generico cialis genericos medicament cialis prix levitra 20mg viagra internet precio farmacia viagra tadalafil para mujeres acheter cialis pas cher viagra se compra con receta viagra nombre de la droga cialis sin receta achat cialis andorre viagra france viagra sur internet cialis precio en farmacia prix du viagra comprar viagra buenos aires comprar viagra andorra tadalafil prix viagra precio en españa comprar levitra online cialis achat france viagra generique canada cialis moins cher sildenafil efecto en mujeres viagras en ligne viagra se vende con receta viagra generique acheter viagra à vendre cialis a vendre cialis generico en monterrey viagra vente levitra au maroc levitra en pharmacie cialis suisse probleme erection genericos viagra viagra prix en pharmacie viagra generique en ligne levitra sans ordonnance viagra 25 mg prix viagra en france comprar levitra por internet levitra pas cher pastilla levitra vendo viagra sevilla precio sildenafil impotencia sexual viagra barato cialis prise quotidienne vente viagra pharmacie cialis au maroc viagra farmacias cruz verde generico sildenafil pastillas cialis viagra prix pharmacie vendo viagra concepcion comprar viagra online en españa viagra valor sildenafil 50 mg magnus viagra es de venta libre cialis le moins cher cialis precio vardenafil generique vardenafil precio viagra pfizer viagra duree d'action comprar cialis en madrid achat cialis sans ordonnance comprar cialis generico en españa comprar viagra levitra femme precio vardenafil viagra sustituto cuesta el viagra viagra luxembourg viagra generico sildenafil viagra precios farmacia viagra reseller acheter du viagra pfizer viagra 100mg sildenafil venezuela generique viagra cialis veritable levitra similares foro kamagra comprar viagra original viagra veritable viagra generica contrareembolso viagra combien ca coute pastilla sildenafil sildenafil nombre comercial vente cialis generique viagra 100mg prix commander cialis en france levitra sur le net viagra se puede comprar sin receta comprar viagra en internet comprar viagra cialis prix cialis france cialis instrucciones sildenafil citrato viagra rapide medicament viagra precio viagra argentina cialis 5 prix viagra original online vente viagra libre acheter cialis en belgique kamagra belgique viagra generico el mejor afrodisiaco le viagra acheter cialis generique viagra 25 mg precio viagra bon prix prix viagra maroc sustituto viagra kamagra en venezuela viagra 100 mg acheter levitra pas chere acheter viagra au canada kamagra en belgique vente viagra vente cialis en france medicament cialis 20mg pharmacie viagra vente cialis en belgique viagra moins cher viagra a paris viagra sans ordonnance belgique viagra naturel vente cialis en ligne levitra france sildenafil 50 mg venta libre venta tadalafil cialis au meilleur prix viagra prix officiel sildenafil sirve para las mujeres sildenafil similares vardenafil 20mg viagra le prix sildenafil receta medica precio cialis en farmacia cialis precio andorra viagra pfizer prix levitra medicamento cialis espagne cialis ca marche levitra prix cialis barcelona viagra au quebec solucion impotencia vendo viagra alicante tadalafil generico precio veritable viagra achat tadalafil cuanto cuesta el viagra precio cialis 5 mg cialis 20 mg precio vendo viagra contrareembolso cialis 2.5mg prix pilule levitra dysfonction erectile acheter viagra france viagra vert achat viagra sans ordonnance precio viagra similares order viagra viagra tunisie vendo cialis generico tarif cialis 20mg kamagra pas cher andorra viagra viagra quebec mejor viagra o cialis viagra similares achat cialis 20mg kamagra moins cher viagra indien viagra comprar sin receta sildenafil se vende sin receta levitra a vendre cialis ordonnance tadalafil farmacias similares viagra prix de vente viagra ordonnance sildenafil farmacia cialis generico madrid effet viagra sur femme viagra precio sildenafil para mujeres cialis acheter viagra andorra sin receta generique sildenafil citrate viagra media pastilla vardenafil generico mexico vente cialis belgique sildenafil foro venta de cialis traitement impuissance veritable cialis viagra natural en farmacias tadalafil en argentina viagra a vendre comprar viagra en andorra similar viagra levitra effet secondaire viagra pilule cialis levitra viagra pour femme achat impuissance homme venta viagra españa remboursement viagra cialis necesita receta vente viagra france viagra belgique cialis marche pas acheter viagra en suisse viagra venta libre prix cialis belgique kamagra en pharmacie tadalafil achat viagra laboratorio pfizer cialis lilly icos cialis en ligne cialis original livraison rapide viagra vente libre sur internet levitra 20 mg comprar sildenafil medicamento levitra achat cialis achat forum precios cialis viagra compra online comprar viagra en farmacia viagra effet sur femme achat cialis forum prix viagra suisse acheter viagra en pharmacie remboursement cialis tadalafil comprar

Subscribe

Sniffin’ the VOIP traffic

This time we will install a network protocol analyzer to watch the traffic on our LAN from initiating and connecting a SIP call.

The Wireshark open source project was formerly known as Ethereal. I used to work for a great company called Cybera as a programmer, and I was always fascinated by networking. I’d bug the network engineers for any information I could, and play around with Ethereal to try to understand what they were talking about.

If you’re working under windows, download the installer. For our Ubuntu or Debian friends, it’s available under the standard free apt archives.

There’s one little trick you need to be aware of during the install.

winpcap

Make sure you select WinPCAP as part of the installed goods.Complete the install and start the program. Minimize it for the time being.

Launch your VMWare server and the Trixbox instance, log in, and you’ll notice the IP address shown after you log in. Mine is 192.163.1.93.

Run over to another box on your LAN and make sure you can ping this address, as detailed in my last post.

If you don’t see ‘Logged In’ in the faux LCD window, most likely you’ll need to update the IP address that the phone needs for Asterisk.

Click the little Menu button juuuust to the left of the green phone button. Select System Settings->Sip Proxy->Default.

Menu

Make sure that the IP address for Domain/Realm, SIP Proxy, and Outbound proxy are all set to the IP address of the Asterisk Trixbox server you just started via VMWare.

Remeber, Nerd Vittles set us up with 500 and 501 as 2 extensions to use with these phones. Dial 501 from the 500 phone or vice versa. I launched mine just now and I can hear the kids, dog, and my wife doing fun stuff. Frankly at this point I have to sit back and marvel at the processes running to make this possible. It just blows my mind.
Now comes the hackin’ part. As the SIP call is in progress, flip back to Wireshark.

wiresharc-startup.PNG

From the main window, select Capture->Interfaces.

wriesharcints.PNG

I can see one of the listed network interfaces dealing with a lot of traffic. Choose that one and press the capture button.

wriesharkcaping.PNG

Let wireshark capture at least 5 or so seconds of traffic. So far, on mine, the vast majority of this VOIP traffic is of the UDP variety. Click Stop and wireshark will dump it all into its analysis window.

analyze.PNG

Every line that says OICQ Protocol represents one UDP (User Datagram Protocol) VOIP packet traversing the network. As a side note, it appears that Wireshark has made the assumption for us that these packets are really part of a chat protocol popular in China, which, of course, is not correct.

Right click on one, and select ‘Open in new window’. Go down to the bottom and look at the ‘data’ section of the packet. This data section represents the actual digitized voice of the VOIP call. It’s interesting to me that the protocol used is UDP, which is one of the two major types of IP packets, the other being TCP. UDP is a connectionless protocol, which means that the client generating the traffic simply puts the packet on the wire without regard to checking to see if the recipient actually received it. This also implies that the recipient has to collect the correct UDP packets and reorder them to form a meaningful conversation. I wonder what role the SIP ’stack’ in asterisk plays in this function. I suppose we’ll find out here at Asteriskblog!

Well, I hope you’ve found that illuminating, and I’m sure we’ll be referring to this tool to diagnose our further work in Asterisk. Please contact me if you have any questions.

Don't miss a post! Subscribe to the RSS feed or by email today!

AddThis Social Bookmark Button
Related posts:

9 Responses to “Sniffin’ the VOIP traffic”

  1. Is this by you? Can I link to it?

  2. A little info about VoIP calls:

    VoIP calls (similarly to POTS calls) basically break down into two parts: the signalling (SIP) and the actual transport (RTP). SIP/RTP is not the one and only protocol for this, there are other protocols for signalling and transporting, Asterisk’s IAX for exampe does both.

    SIP: Session Initiation Protocol
    RTP: Realtime Transport Protocol
    SIP is used only for signaling, RTP is used for transport. SIP itself doesn’t provide any means of transporting the actual voice data.
    The SIP protocol can run over TCP or UDP connections. Asterisk (1.2) only supports SIP on UDP. After two endpoints negotiated a session using the SIP protocol they start exchanging voice data which is transported by RTP.
    SIP as well as RTP are by default unencrypted, that’s why you can even playback phone calls in realtime. There are “secure” versions of SIP and RTP called SIPS and SRTP that provide authentication and data encryption.

    Regarding reording:
    SIP messages are quite small and compact, resembling e-mail headers in structure, and they won’t exceed the 64kByte limit for UDP packet size so there is no need for any reordering.
    RTP (which uses UDP) defines its own additional header with sequence number and timestamp.

  3. If Wireshark catches the SIP transaction, it will identify the stream as RTP and can dig into the details. You can also force Wireshark to crack into the udp packets to see if they’re RTP from the protocol options.

    Once the packet is identified as RTP, you can run analysis on it to find out of order packets, jitter, and latency. You can also display the SIP call setup in graph form.

    Sean

  4. Hi,

    Sorry but I do not think there is any news in this article. Ethereal can sniff and decode most of the VoIP protocol for ages.

    Moreover Intel has published (in 2004) a paper named “Using Ethereal to Debug SIP and RTP on Voice over IP (VoIP) Products from Intel”. The Intel publication is not restricted to Intel products and gives a lot of tips and hints to debug SIP/RTP calls in details.

    So try to give it a shot ;)

    Cheers.

  5. Ho my bad, I forgot the URL of the Intel paper.

    http://www.intel.com/network/csp/applnots/9008an.htm

  6. None, I thank you for your comment. My intent was to illustrate this from a newbie’s perpective, and for our audience to learn as I myself learn. I’m new to VOIP. That’s why your link is so helpful!

  7. […] En http://www.asteriskblog.com/sniffin-the-voip-traffic/, puedes ver cómo se instala y configura el EtherReal (WireShark) para este objetivo. Un artículo muy interesante a la hora de obtener datos que ayuden a resolver estos problemas comunes que tenemos todos. […]

  8. A burning question:
    When two Remote (Internet) Extensions are connected to each other in a conversation, does the VoIP traffic traverse through the Trixbox Server?

Leave a Reply



© 2007 Asterisk VOIP Tips | Powered by WordPress | Theme originally by Bob, heavily tweaked.