[Asterisk-Users] T100P Pri Audio

Donny Kavanagh kavando at trn.ca
Thu Oct 7 22:06:04 MST 2004


Just to add, heres what happens with full debugging and pri debugging
enabled.  It seems if I pass the call off elsewhere, like a sip phone,
another pri line, or a sip server, it works fine, but If I try to handle
it ON asterisk, this it what happens (don't forget that if I call via a
sip phone it works perfect)

   -- Accepting call from '6138286056' to '6261' on channel 0/22, span 1
localhost*CLI> 
> [ 02 01 a2 d0 08 02 80 4b 07 18 03 a9 83 96 ]
localhost*CLI> 
> Informational frame:
> SAPI: 00  C/R: 1 EA: 0
>  TEI: 000        EA: 1
> N(S): 081   0: 0
> N(R): 104   P: 0
> 10 bytes of data
T_200 timer already going (2)
> Protocol Discriminator: Q.931 (8)  len=10
> Call Ref: len= 2 (reference 32843/0x804B) (Terminator)
> Message type: CONNECT (7)
> [18 03 a9 83 96]
> Channel ID (len= 5) [ Ext: 1  IntID: Implicit, PRI Spare: 0, Exclusive
Dchan: 0
>                        ChanSel: Reserved
>                       Ext: 1  Coding: 0   Number Specified   Channel
Type: 3
>                       Ext: 1  Channel: 22 ]
localhost*CLI> 
< [ 02 01 01 a2 ]

< Supervisory frame:
< SAPI: 00  C/R: 1 EA: 0
<  TEI: 000        EA: 1
< Zero: 0     S: 0 01: 1  [ RR (receive ready) ]
< N(R): 081 P/F: 0
< 0 bytes of data
-- ACKing all packets from 79 to (but not including) 81
-- ACKing packet 80, new txqueue is 81 (-1 means empty)
-- Something left to transmit (81), restarting T200 counter
localhost*CLI> 
< [ 00 01 d0 a2 08 02 00 4b 7d 08 02 80 e5 14 01 01 ]

< Informational frame:
< SAPI: 00  C/R: 0 EA: 0
<  TEI: 000        EA: 1
< N(S): 104   0: 0
< N(R): 081   P: 0
< 12 bytes of data
-- ACKing all packets from 80 to (but not including) 81
-- Something left to transmit (81), restarting T200 counter
< Protocol Discriminator: Q.931 (8)  len=12
< Call Ref: len= 2 (reference 75/0x4B) (Originator)
< Message type: STATUS (125)
< [08 02 80 e5]
< Cause (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0) 0: 0
Location: User (0)
<                  Ext: 1  Cause: Message not compatible with call state
(101), class = Protocol Error (6) ]
< [14 01 01]
< Call State (len= 3) [ Ext: 0  Coding: CCITT (ITU) standard (0) Call
state: Call Initiated (1)
Sending Receiver Ready (105)

> [ 00 01 01 d2 ]

> Supervisory frame:
> SAPI: 00  C/R: 0 EA: 0
>  TEI: 000        EA: 1
> Zero: 0     S: 0 01: 1  [ RR (receive ready) ]
> N(R): 105 P/F: 0
> 0 bytes of data
localhost*CLI> 
< [ 02 01 01 a4 ]

< Supervisory frame:
< SAPI: 00  C/R: 1 EA: 0
<  TEI: 000        EA: 1
< Zero: 0     S: 0 01: 1  [ RR (receive ready) ]
< N(R): 082 P/F: 0
< 0 bytes of data
-- ACKing all packets from 80 to (but not including) 82
-- ACKing packet 81, new txqueue is -1 (-1 means empty)
-- Since there was nothing left, stopping T200 counter
-- Nothing left, starting T203 counter
-- Restarting T203 counter
localhost*CLI> 
< [ 00 01 d2 a4 08 02 00 4b 7d 08 02 80 e5 14 01 01 ]

< Informational frame:
< SAPI: 00  C/R: 0 EA: 0
<  TEI: 000        EA: 1
< N(S): 105   0: 0
< N(R): 082   P: 0
< 12 bytes of data
-- ACKing all packets from 81 to (but not including) 82
-- Since there was nothing left, stopping T200 counter
-- Stopping T203 counter since we got an ACK
-- Nothing left, starting T203 counter
< Protocol Discriminator: Q.931 (8)  len=12
< Call Ref: len= 2 (reference 75/0x4B) (Originator)
< Message type: STATUS (125)
< [08 02 80 e5]
< Cause (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0) 0: 0
Location: User (0)
<                  Ext: 1  Cause: Message not compatible with call state
(101), class = Protocol Error (6) ]
< [14 01 01]
< Call State (len= 3) [ Ext: 0  Coding: CCITT (ITU) standard (0) Call
state: Call Initiated (1)
Sending Receiver Ready (106)

> [ 00 01 01 d4 ]

> Supervisory frame:
> SAPI: 00  C/R: 0 EA: 0
>  TEI: 000        EA: 1
> Zero: 0     S: 0 01: 1  [ RR (receive ready) ]
> N(R): 106 P/F: 0
> 0 bytes of data
-- Restarting T203 counter
-- Restarting T203 counter
localhost*CLI> 
< [ 00 01 d4 a4 08 02 00 4b 05 04 03 80 90 a2 18 03 a9 83 96 6c 0c 21 80
36 31 33 38 32 38 36 30 35 36 70 05 81 36 32 36 31 ]

< Informational frame:
< SAPI: 00  C/R: 0 EA: 0
<  TEI: 000        EA: 1
< N(S): 106   0: 0
< N(R): 082   P: 0
< 36 bytes of data
-- ACKing all packets from 81 to (but not including) 82
-- Since there was nothing left, stopping T200 counter
-- Stopping T203 counter since we got an ACK
-- Nothing left, starting T203 counter
< Protocol Discriminator: Q.931 (8)  len=36
< Call Ref: len= 2 (reference 75/0x4B) (Originator)
< Message type: SETUP (5)
< [04 03 80 90 a2]
< Bearer Capability (len= 5) [ Ext: 1  Q.931 Std: 0  Info transfer
capability: Speech (0)
<                              Ext: 1  Trans mode/rate: 64kbps,
circuit-mode (16)
<                              Ext: 1  User information layer 1: u-Law
(34)
< [18 03 a9 83 96]
< Channel ID (len= 5) [ Ext: 1  IntID: Implicit, PRI Spare: 0, Exclusive
Dchan: 0
<                        ChanSel: Reserved
<                       Ext: 1  Coding: 0   Number Specified   Channel
Type: 3
<                       Ext: 1  Channel: 22 ]
< [6c 0c 21 80 36 31 33 38 32 38 36 30 35 36]
< Calling Number (len=14) [ Ext: 0  TON: National Number (2)  NPI:
ISDN/Telephony Numbering Plan (E.164/E.163) (1)
<                           Presentation: Presentation permitted, user
number not screened (0) '6138286056' ]
< [70 05 81 36 32 36 31]
< Called Number (len= 7) [ Ext: 1  TON: Unknown Number Type (0)  NPI:
ISDN/Telephony Numbering Plan (E.164/E.163) (1) '6261' ]
Sending Receiver Ready (107)

> [ 00 01 01 d6 ]

> Supervisory frame:
> SAPI: 00  C/R: 0 EA: 0
>  TEI: 000        EA: 1
> Zero: 0     S: 0 01: 1  [ RR (receive ready) ]
> N(R): 107 P/F: 0
> 0 bytes of data
-- Restarting T203 counter
-- Restarting T203 counter
T203 counter expired, sending RR and scheduling T203 again
Sending Receiver Ready (107)

> [ 02 01 01 d7 ]

> Supervisory frame:
> SAPI: 00  C/R: 1 EA: 0
>  TEI: 000        EA: 1
> Zero: 0     S: 0 01: 1  [ RR (receive ready) ]
> N(R): 107 P/F: 1
> 0 bytes of data
-- Restarting T203 counter
localhost*CLI> 
< [ 02 01 01 a5 ]

< Supervisory frame:
< SAPI: 00  C/R: 1 EA: 0
<  TEI: 000        EA: 1
< Zero: 0     S: 0 01: 1  [ RR (receive ready) ]
< N(R): 082 P/F: 1
< 0 bytes of data
-- ACKing all packets from 81 to (but not including) 82
-- Since there was nothing left, stopping T200 counter
-- Stopping T203 counter since we got an ACK
-- Nothing left, starting T203 counter
-- Got RR response to our frame
-- Restarting T203 counter
localhost*CLI> 
< [ 00 01 d6 a4 08 02 00 4b 4d 08 02 80 9f ]

< Informational frame:
< SAPI: 00  C/R: 0 EA: 0
<  TEI: 000        EA: 1
< N(S): 107   0: 0
< N(R): 082   P: 0
< 9 bytes of data
-- ACKing all packets from 81 to (but not including) 82
-- Since there was nothing left, stopping T200 counter
-- Stopping T203 counter since we got an ACK
-- Nothing left, starting T203 counter
< Protocol Discriminator: Q.931 (8)  len=9
< Call Ref: len= 2 (reference 75/0x4B) (Originator)
< Message type: RELEASE (77)
< [08 02 80 9f]
< Cause (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0) 0: 0
Location: User (0)
<                  Ext: 1  Cause: Normal, unspecified (31), class =
Normal Event (1) ]
Sending Receiver Ready (108)

> [ 00 01 01 d8 ]

> Supervisory frame:
> SAPI: 00  C/R: 0 EA: 0
>  TEI: 000        EA: 1
> Zero: 0     S: 0 01: 1  [ RR (receive ready) ]
> N(R): 108 P/F: 0
> 0 bytes of data
-- Restarting T203 counter
-- Restarting T203 counter
    -- Channel 0/22, span 1 got hangup
localhost*CLI> 
> [ 02 01 a4 d8 08 02 80 4b 5a 08 02 81 90 ]

> Informational frame:
> SAPI: 00  C/R: 1 EA: 0
>  TEI: 000        EA: 1
> N(S): 082   0: 0
> N(R): 108   P: 0
> 9 bytes of data
-- Restarting T203 counter
Stopping T_203 timer
Starting T_200 timer
> Protocol Discriminator: Q.931 (8)  len=9
> Call Ref: len= 2 (reference 32843/0x804B) (Terminator)
> Message type: RELEASE COMPLETE (90)
> [08 02 81 90]
> Cause (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0) 0: 0
Location: Private network serving the local user (1)
>                  Ext: 1  Cause: Normal Clearing (16), class = Normal
Event (1) ]
    -- Hungup 'Zap/22-1'
localhost*CLI> 
< [ 02 01 01 a6 ]

< Supervisory frame:
< SAPI: 00  C/R: 1 EA: 0
<  TEI: 000        EA: 1
< Zero: 0     S: 0 01: 1  [ RR (receive ready) ]
< N(R): 083 P/F: 0
< 0 bytes of data
-- ACKing all packets from 81 to (but not including) 83
-- ACKing packet 82, new txqueue is -1 (-1 means empty)
-- Since there was nothing left, stopping T200 counter
-- Nothing left, starting T203 counter
-- Restarting T203 counter
T203 counter expired, sending RR and scheduling T203 again
Sending Receiver Ready (108)

> [ 02 01 01 d9 ]

> Supervisory frame:
> SAPI: 00  C/R: 1 EA: 0
>  TEI: 000        EA: 1
> Zero: 0     S: 0 01: 1  [ RR (receive ready) ]
> N(R): 108 P/F: 1
> 0 bytes of data
-- Restarting T203 counter
localhost*CLI> 
< [ 02 01 01 a7 ]

< Supervisory frame:
< SAPI: 00  C/R: 1 EA: 0
<  TEI: 000        EA: 1
< Zero: 0     S: 0 01: 1  [ RR (receive ready) ]
< N(R): 083 P/F: 1
< 0 bytes of data
-- ACKing all packets from 82 to (but not including) 83
-- Since there was nothing left, stopping T200 counter
-- Stopping T203 counter since we got an ACK
-- Nothing left, starting T203 counter
-- Got RR response to our frame
-- Restarting T203 counter
T203 counter expired, sending RR and scheduling T203 again
Sending Receiver Ready (108)

> [ 02 01 01 d9 ]

> Supervisory frame:
> SAPI: 00  C/R: 1 EA: 0
>  TEI: 000        EA: 1
> Zero: 0     S: 0 01: 1  [ RR (receive ready) ]
> N(R): 108 P/F: 1
> 0 bytes of data
-- Restarting T203 counter
localhost*CLI> 
< [ 02 01 01 a7 ]

< Supervisory frame:
< SAPI: 00  C/R: 1 EA: 0
<  TEI: 000        EA: 1
< Zero: 0     S: 0 01: 1  [ RR (receive ready) ]
< N(R): 083 P/F: 1
< 0 bytes of data
-- ACKing all packets from 82 to (but not including) 83
-- Since there was nothing left, stopping T200 counter
-- Stopping T203 counter since we got an ACK
-- Nothing left, starting T203 counter
-- Got RR response to our frame
-- Restarting T203 counter
T203 counter expired, sending RR and scheduling T203 again
Sending Receiver Ready (108)

> [ 02 01 01 d9 ]

> Supervisory frame:
> SAPI: 00  C/R: 1 EA: 0
>  TEI: 000        EA: 1
> Zero: 0     S: 0 01: 1  [ RR (receive ready) ]
> N(R): 108 P/F: 1
> 0 bytes of data
-- Restarting T203 counter
localhost*CLI> 
< [ 02 01 01 a7 ]

< Supervisory frame:
< SAPI: 00  C/R: 1 EA: 0
<  TEI: 000        EA: 1
< Zero: 0     S: 0 01: 1  [ RR (receive ready) ]
< N(R): 083 P/F: 1
< 0 bytes of data
-- ACKing all packets from 82 to (but not including) 83
-- Since there was nothing left, stopping T200 counter
-- Stopping T203 counter since we got an ACK
-- Nothing left, starting T203 counter
-- Got RR response to our frame
-- Restarting T203 counter
localhost*CLI>  

-----Original Message-----
From: Donny Kavanagh 
Sent: October 7, 2004 6:47 PM
To: asterisk-users at lists.digium.com
Subject: [Asterisk-Users] T100P Pri Audio

I've been working on an asterisk box at work for a few weeks now, things
were finally starting to sail smoothly until I hit this head scratcher
this morning.

It's a rather intricate problem, so bear with me. Heres the scenario.

What works:
If I call from my sip phone -> sip phone everythings ok If I call from
sip phone -> external pots number ok as well If I map one of our did's
off the pri to one of our internal sip extensions, it also works
perfect.
If someone calls me or I call them in the 3 ways I mentioned above,
music on hold works.
If I call an external did mapped to one of our sip servers, it also
works great.

My config for the extension in question, looks like so (it was much more
then this, but for the sake of simplicity this is enough)

exten => 6261,1,Answer()
exten => 6261,2,Wait(2)
exten => 6261,3,Background(ivrmenu) 

If I call this extension from my sip phone, it will answer, audio will
play and the log looks like so:

    -- Executing Answer("SIP/donnyhome-78be", "") in new stack
    -- Executing Wait("SIP/donnyhome-78be", "2") in new stack
    -- Executing BackGround("SIP/donnyhome-78be", "ivrmenu") in new
stack
    -- Playing 'ivrmenu' (language 'en')

However, if I call this number externally, or dial from the sip phone
and dial with an 8<full number> to force it to go outside and come back
in, I see this.

    -- Executing Dial("SIP/donnyhome-efff", "Zap/g1/85626261") in new
stack
    -- Called g1/85626261
    -- Zap/1-1 is making progress passing it to SIP/donnyhome-efff
    -- Executing Answer("Zap/11-1", "") in new stack
    -- Accepting call from '6135626100' to '6261' on channel 0/11, span
1
    -- Executing Wait("Zap/11-1", "2") in new stack
    -- Executing BackGround("Zap/11-1", "ivrmenu") in new stack
    -- Playing 'ivrmenu' (language 'en')
    -- Channel 0/11, span 1 got hangup
  == Spawn extension (sip, 6261, 3) exited non-zero on 'Zap/11-1'
    -- Hungup 'Zap/11-1'
    -- Channel 0/1, span 1 got hangup
    -- Zap/1-1 is circuit-busy
    -- Hungup 'Zap/1-1'
  == Everyone is busy/congested at this time Oct  7 18:26:35
WARNING[-188933200]: pbx.c:1933 ast_pbx_run: Timeout, but no rule 't' in
context 'sip'

The audio will start playing according to the cli, however I hear
nothing on the phone outside the pri and shortly there after it hangs
up.

I'm pulling out my hair at this one, I'm still running 1.0.0 so I don't
know if that's the issue, but I wanted to install via rpm's and the fc2
rpms arnt available for 1.0.1 as of yet and I havnt had time to make
them myself.

Any insight into this would be greatly appreciated.
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users



More information about the asterisk-users mailing list