[asterisk-dev] asterisk sending connects when it shouldn't (and request for feature)

Simone Cittadini mymailforlists at gmail.com
Wed Jul 19 02:49:47 MST 2006


Paul Cadach ha scritto:

>Hello,
>
>Simone Cittadini wrote:
>  
>
>>Eric "ManxPower" Wieling ha scritto:
>>
>>    
>>
>>>Playback, Background, and most any function that sends audio to the 
>>>caller will issue an Answer first unless you tell it not to.  (see 
>>>show application)
>>>
>>>      
>>>
>>There is no Playback, Background or such, only a Dial to an IAX 
>>registered asterisk client which then dials a SIP connected GSM gateway, 
>>and...
>>    
>>
>
>Could you provide full trace of such call with options:
>pri debug span <x>
>set verbose 3
>iax2 debug
>
><x> is a span number where you run ISDN PRI.
>
>
>  
>
I've used the 'pri set debug file' option and I attach to this mail what 
happens on the pri when we call a turned off cell, for the rest ...


... is impossible to follow a call on a running system, at least for me, 
I've set messages => error,warning,debug,verbose in logger.conf and have 
the customer placing a call , searching for the called number in the 
logs I see

Jul 19 09:55:20 VERBOSE[19370] logger.c: < Called Number (len=13) [ Ext: 
1  TON: National Number (2)  NPI: ISDN/Telephony Numbering Plan 
(E.164/E.163) (1) '348xxxxxx' ]

and

Jul 19 09:55:20 VERBOSE[30679] logger.c:     -- Executing 
AGI("Zap/61-1", 
"agi://127.0.0.1:54321/Route?ip=127.0.0.1&exten=348xxxxxx") in new stack


So tought grepping for 19370 and 30679 should be a good idea, but it 
seems those numbers aren't unique even in the short distance, I can see 
a lot of stuff from other calls and the resulting file is still > 5M, 
can't really send it to the list. I can tarzip it and send it to you if 
you think I'll get something out of that mess.
Closing the traffic is not an option, too much stuff flowing, doing the 
trace at midnight with no other calls is not an option for the customer 
(lazy).
It would be really nice having something like 'debug called number 
[number]' so in the cli I can 'set verbose 0' and than look to only the 
data I care for.
-------------- next part --------------
< Protocol Discriminator: Q.931 (8)  len=47
< Call Ref: len= 2 (reference 2723/0xAA3) (Originator)
< Message type: SETUP (5)
< [04 03 80 90 a3]
< 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: A-Law (35)
< [18 03 a1 83 82]
< Channel ID (len= 5) [ Ext: 1  IntID: Implicit, PRI Spare: 0, Preferred Dchan: 0
<                        ChanSel: Reserved
<                       Ext: 1  Coding: 0   Number Specified   Channel Type: 3
<                       Ext: 1  Channel: 2 ]
< [1e 02 81 83]
< Progress Indicator (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0) 0: 0   Location: Private network serving the local user (1)
<                               Ext: 1  Progress Description: Calling equipment is non-ISDN. (3) ]
< [6c 0c 01 81 30 32 38 39 30 38 39 35 30 30]
< Calling Number (len=14) [ Ext: 0  TON: Unknown Number Type (0)  NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)
<                           Presentation: Presentation permitted, user number passed network screening (1) '0289089500' ]
< [70 0b a1 33 34 38 31 30 34 38 32 38 31]
< Called Number (len=13) [ Ext: 1  TON: National Number (2)  NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1) '3481048281' ]
< [a1]
< Sending Complete (len= 1)
-- Making new call for cr 2723
-- Processing Q.931 Call Setup
-- Processing IE 4 (cs0, Bearer Capability)
-- Processing IE 24 (cs0, Channel Identification)
-- Processing IE 30 (cs0, Progress Indicator)
-- Processing IE 108 (cs0, Calling Party Number)
-- Processing IE 112 (cs0, Called Party Number)
-- Processing IE 161 (cs0, Sending Complete)
> Protocol Discriminator: Q.931 (8)  len=10
> Call Ref: len= 2 (reference 2723/0xAA3) (Terminator)
> Message type: CALL PROCEEDING (2)
> [18 03 a9 83 82]
> 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: 2 ]
> Protocol Discriminator: Q.931 (8)  len=14
> Call Ref: len= 2 (reference 2723/0xAA3) (Terminator)
> Message type: CONNECT (7)
> [18 03 a9 83 82]
> 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: 2 ]
> [1e 02 81 82]
> Progress Indicator (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0) 0: 0   Location: Private network serving the local user (1)
>                               Ext: 1  Progress Description: Called equipment is non-ISDN. (2) ]
< Protocol Discriminator: Q.931 (8)  len=5
< Call Ref: len= 2 (reference 2723/0xAA3) (Originator)
< Message type: CONNECT ACKNOWLEDGE (15)
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Active, peerstate Active
> Protocol Discriminator: Q.931 (8)  len=9
> Call Ref: len= 2 (reference 2723/0xAA3) (Terminator)
> Message type: DISCONNECT (69)
> [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: Unknown (16), class = Normal Event (1) ]
< Protocol Discriminator: Q.931 (8)  len=5
< Call Ref: len= 2 (reference 2723/0xAA3) (Originator)
< Message type: RELEASE (77)
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Release Request
> Protocol Discriminator: Q.931 (8)  len=9
> Call Ref: len= 2 (reference 2723/0xAA3) (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: Unknown (16), class = Normal Event (1) ]
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Null
NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null


More information about the asterisk-dev mailing list