SIP and Audio Guide

Latest news about SIP Sorcery
Post Reply
User avatar
Aaron
Site Admin
Posts: 4551
Joined: Thu Jul 12, 2007 12:13 am

SIP and Audio Guide

Post by Aaron » Fri Feb 17, 2012 12:03 pm

SIP and Audio

I've created a short guide on how SIP manages audio streams and the sorts of things that go wrong when those streams traverse NATs. The full guide can be read at SIP and Audio Guide.

To complement the guide I've whipped together a diagnostics tool.

SIPSorcery RTP Diagnostics Tool

In an attempt to help people diagnose RTP audio issues I have created a new tool that provides some simple diagnostic messages about receiving and transmitting RTP packets from a SIP device. The purpose of the tool is twofold:

1. On a SIP call indicate the expected socket the RTP packets were expected from and the actual socket they came from,
2. On a SIP call indicate whether it was possible to transmit RTP packets to the
same socket the SIP caller was sending from.

To use the tool take the following steps:

1. Open http://diags.sipsorcery.com in a browser and click the Go button. Note that the web page uses web sockets which are only supported in the latest web browsers, I’ve tested it in Chrome 16, Firefox 9.0.1, Internet Explorer 9,
2. A message will be displayed that contains a SIP address to call. Type that into your softphone or set up a SIPSorcery dialplan rule to call it,
3. If the tool receives a call on the SIP address it will display information about how it received and sent RTP packets.

The tool is very rudimentary at this point but if it proves useful I will be likely to expend more effort to polish and enhance it. If you do have any feedback or feature requests please do add a comment.

raj2ras
Posts: 132
Joined: Tue Nov 08, 2011 2:13 am

Re: SIP and Audio Guide

Post by raj2ras » Fri Feb 17, 2012 5:28 pm

That is very useful Aaron. A+ on both.

I tested the "diags" tool and here is output:

Code: Select all

Waiting for call to 993507@diags.sipsorcery.com
INVITE request received from udp:69.59.142.213:5060 for sip:993507@diags.sipsorcery.com.
Advertised RTP remote socket 9x.48.xx.xx:16396, expecting from 9x.48.xx.xx:16396.
RTP received from 9x.48.xx.xx:16396.
Sending dummy packet to 9x.48.xx.xx:16396.
Test completed. There were no RTP send or receive errors.


Is the 993507 uri unique to each person, is it permanent or does it gets re-cycled?
Update: just found that it generates a random temporary one for each time. No worries, still good.

Requests:
1. Maybe you can give each SS user a permanent URI that uses "Tropo" to do txt-2-speech report rather than having to use a browser? Will allow for "away from desk" testing.
2. It will be useful to add a "advanced" toggle box and display the full SIP handshake/message (all headers) exchanged?

User avatar
Aaron
Site Admin
Posts: 4551
Joined: Thu Jul 12, 2007 12:13 am

Re: SIP and Audio Guide

Post by Aaron » Sat Feb 18, 2012 4:19 am

The suggestion about text-to-speech won't really work as if there is a problem with the audio streams, which is what the tool is designed to help with, there's either not going to be any speech to convert or any converted text to listen to.

The second suggestion is certainly achievable. I'll put in on the list for the next batch of work I do on the tool.

raj2ras
Posts: 132
Joined: Tue Nov 08, 2011 2:13 am

Re: SIP and Audio Guide

Post by raj2ras » Sat Feb 18, 2012 6:04 pm

1. Yes of course. I am an idiot :-)

2. Thanks.

stupified
Posts: 8
Joined: Fri May 17, 2013 8:37 pm

Re: SIP and Audio Guide

Post by stupified » Mon Aug 05, 2013 3:27 pm

The diagnostic tool no longer available?

User avatar
Aaron
Site Admin
Posts: 4551
Joined: Thu Jul 12, 2007 12:13 am

Re: SIP and Audio Guide

Post by Aaron » Tue Aug 06, 2013 9:14 am

No it hasn't been up for the last year or so, it wasn't getting enough use to justify keeping it up.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest