[Home]

Summary:ASTERISK-12549: parking an outbound calls loses GROUP() channel count information
Reporter:Philippe Lindheimer (p_lindheimer)Labels:
Date Opened:2008-08-10 09:49:44Date Closed:2011-06-07 14:07:59
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Resources/res_features
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:When you make an outbound call and count the channel with the GROUP() count feature (so you can limit the calls to that channel), and then subsequently park the call, the channel is removed from that list of counted calls. And retrieving the call, it is still gone.

****** STEPS TO REPRODUCE ******

The call is counted with the following dialplan line before dialing and the specific repro uses a SIP phone extension 222 to dial out a SIP trunk to a pstn provider, and then the sip extension 222 parks the call:

exten => _NXXNXXXXXX,n,Macro(dialout-trunk,4,${EXTEN},,)

relevant code inside of macro-dialout-trunk:

exten => s,1,Set(DIAL_TRUNK=${ARG1})
exten => s,n,Set(GROUP()=OUT_${DIAL_TRUNK})

make the call and then check the group count at the CLI:

group show channels
Channel                    Group                 Category            
SIP/222-08c7b808           OUT_4                 (default)          
1 active channel

Here is the relevant output of "sip show channels"
Peer             User/ANR    Call ID      Seq (Tx/Rx)  Format           Hold     Last Message
67.228.99.67     1425XXXXXX  387807003a7  00103/00000  0x1c0004 (ulaw|  No       Tx: ACK

And here is the relevant output of "show channels"
Channel              Location             State   Application(Data)            
SIP/telasip-gw-08adf (None)               Up      Bridged Call(SIP/222-08c7b808)
SIP/222-08c7b808     s@macro-dialout-trun Up      Dial(SIP/telasip-gw/1425XXXXXX
2 active channels
1 active call

Now park the call using defined Asterisk transfer key to parking feature and then show channels again:

group show channels
Channel                    Group                 Category            
0 active channels

here is the relevant part of "sip show channels" while parked:

Peer             User/ANR    Call ID      Seq (Tx/Rx)  Format           Hold     Last Message

67.228.99.67     1425XXXXXX  387807003a7  00103/00000  0x1c0004 (ulaw|  No       Tx: ACK

here is the relevant part of "show channels" after parking:

Channel              Location             State   Application(Data)            
SIP/222-08a217d0     71@from-internal:1   Up      ParkedCall(71)                
SIP/telasip-gw-08adf (None)               Up      Bridged Call(SIP/222-08a217d0)
2 active channels
1 active call

retrieve the call from the parking slot and "group show channels" continues to show un-active channels.

here is the relevant part of "sip show channels" after retrieving:

Peer             User/ANR    Call ID      Seq (Tx/Rx)  Format           Hold     Last Message
67.228.99.67     1425XXXXXX  387807003a7  00103/00000  0x1c0004 (ulaw|  No       Tx: ACK

and here is the relevant part of "show channels" after retrieving:

Channel              Location             State   Application(Data)            
SIP/222-08a217d0     71@from-internal:1   Up      ParkedCall(71)                
SIP/telasip-gw-08adf (None)               Up      Bridged Call(SIP/222-08a217d0)
2 active channels
1 active call



Comments:By: snuffy (snuffy) 2008-08-10 10:01:48

double post