[asterisk-dev] processing q931 via SIP INFO

Jared Mauch jared at puck.nether.net
Fri Aug 20 14:30:15 CDT 2010


	Btw, I did some more poking around, and figured out that what is
happening is that it's just dropping the q-931 signaling inside the mime-part
based on my configuration.  Ideally Cisco would do this a different
way, but not really relevant as I do get all the valued data.

	The cisco docs for this are here:

http://www.cisco.com/en/US/docs/ios/voice/sip/configuration/guide/tunneling_qsig.html

	Taking the packet captures and looking at the pcap i see the
following:


08 02 00 81 6E 27 01 F1 28 0F B2
53 57 49 54 43 48 20 43 41 42 49 4E 45 54 0D 0A

	Combined with debugs, this appears to decode as:

	Notification Ind i = 0xF1 
	Display i = 0xB2, 'SWITCH CABINET'

	I didn't see in the isdn codebase anyplace where these notifications
are processed so similar #defines could be (re)used.

	Am I missing something, or will these need to be documented?

	I skimmed the ITU docs for q931 and haven't been able to find 0xB2
defined anywhere, but lots of peoples cisco debugs with it seem to cloud
search results as well.

	(it does seem the 0x0F before the 0xB2 is the length in typical
tlv format.

	- Jared

On Thu, Aug 19, 2010 at 10:58:08AM -0400, Jared Mauch wrote:
> On Thu, Aug 19, 2010 at 04:20:20PM +0200, Olle E. Johansson wrote:
> > 
> > 19 aug 2010 kl. 16.01 skrev Jared Mauch:
> > 
> > > 
> > > 	Has anyone looked at adding into chan_sip the processing of updated
> > > called-party information from IOS gateways?  I saw some other patches
> > > and looked at 1.8.0-beta3 and it does not appear to have code to process
> > > these style updates.
> > > 
> > > 	If someone has already started work on this, let me know, otherwise
> > > I'm going to look at creating a patch.
> > > 
> > Please tell me more about what this does and how you expect us to handle 
> > it in Asterisk. Is it related to an ongoing call?
> > 
> > Do you have any URL to documentation of these events?
> 
> 	Not handy.  I've not tried to detangle the q931 data (yet).
> 
> 	I had hoped that there was something as part of 8824 that
> assisted in capturing this, but again, I know vendors can be strange.
> 
> 	The IOS running on the device is 15.X not the 12.x reported by the UA
> header.
> 
> My setup is
> 
> Nortel <- T1 w/PRI Signaling -> Cisco 2851 <-> Ethernet/SIP <-> Asterisk
> 
> I'll do some more poking for the docs and see if I can find the app/q931
> documented someplace.
> 
> 	- Jared
> 
> > 
> > Thanks,
> > /O
> > 
> > > 	- Jared
> > > 
> > > -- snip --
> > > INFO sip:591005 at 169.254.27.16:5060 SIP/2.0
> > > Via: SIP/2.0/UDP 169.254.24.62:5060;branch=z9hG4bK611BE6
> > > From: <sip:7777 at 169.254.24.62>;tag=6ACC47DC-25B5
> > > To: "Jared Mauch" <sip:591005 at 169.254.27.16>;tag=as7e6af017
> > > Date: Thu, 19 Aug 2010 13:47:09 GMT
> > > Call-ID: 4faccbb376bbe2fe1ac7ac9a1234f6dc at 169.254.27.16
> > > User-Agent: Cisco-SIPGateway/IOS-12.x
> > > Max-Forwards: 70
> > > Timestamp: 1282225629
> > > CSeq: 101 INFO
> > > Contact: <sip:7777 at 169.254.24.62:5060>
> > > Remote-Party-ID: <sip:7777 at 169.254.24.62>;party=called;screen=no;privacy=off
> > > Content-Type: multipart/mixed;boundary=uniqueBoundary
> > > Mime-Version: 1.0
> > > Content-Length: 297
> > > 
> > > --uniqueBoundary
> > > Content-Type: application/x-q931
> > > Content-Disposition: signal;handling=optional
> > > Content-Length: 27
> > > 
> > > .n'q(2SWITCH CABINET
> > > 
> > > --uniqueBoundary
> > > Content-Type: application/gtd
> > > Content-Disposition: signal;handling=optional
> > > 
> > > NOT,
> > > PRN,isdn*,,NT100,
> > > 
> > > 
> > > --uniqueBoundary--
> > > 
> > > 
> > > -- 
> > > Jared Mauch  | pgp key available via finger from jared at puck.nether.net
> > > clue++;      | http://puck.nether.net/~jared/  My statements are only mine.
> > > 
> > > -- 
> > > _____________________________________________________________________
> > > -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> > > 
> > > asterisk-dev mailing list
> > > To UNSUBSCRIBE or update options visit:
> > >   http://lists.digium.com/mailman/listinfo/asterisk-dev
> > 
> > ---
> > * Olle E Johansson - oej at edvina.net
> > * Cell phone +46 70 593 68 51, Office +46 8 96 40 20, Sweden
> > 
> > 
> > 
> > 
> > -- 
> > _____________________________________________________________________
> > -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> > 
> > asterisk-dev mailing list
> > To UNSUBSCRIBE or update options visit:
> >    http://lists.digium.com/mailman/listinfo/asterisk-dev
> 
> -- 
> Jared Mauch  | pgp key available via finger from jared at puck.nether.net
> clue++;      | http://puck.nether.net/~jared/  My statements are only mine.
> 
> -- 
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> 
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev

-- 
Jared Mauch  | pgp key available via finger from jared at puck.nether.net
clue++;      | http://puck.nether.net/~jared/  My statements are only mine.



More information about the asterisk-dev mailing list