[asterisk-bugs] [Asterisk 0016895]: Repark a call on Parkinglot

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Mar 11 03:40:33 CST 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16895 
====================================================================== 
Reported By:                malg79
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16895
Category:                   Channels/chan_sip/General
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     acknowledged
Asterisk Version:           1.6.1.14 
JIRA:                       SWP-968 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-02-24 09:06 CST
Last Modified:              2010-03-11 03:40 CST
====================================================================== 
Summary:                    Repark a call on Parkinglot
Description: 
Hello,

We have a problem with multiparking and parkinglots, I'll try to explain
because my English is not very good.

We work in a multi-company environment and we want every one of these
companies has its own parkinglot.

The main problem is that we can't re-park the calls.

I will try to explain with an example.

Take for example the extensions 2111 and 2222 belonging to one company.

In sip.conf for this company we put in his mask
parkinglot = parkinglot_chemtrol
and in the context to which we belong to all extensions
include => parking_chemtrol

So far so good, but doing some tests

- 2111 calls extension 2222
- extension 2222 answers
- extension 2222 parks the call with https://issues.asterisk.org/view.php?id=56
- The call is parked at position 201
- 2222 extension marks 201
- extension 2222 retrieves the call and connect with 2111 extension

this is the performance we want and does, what is wrong is from now

If extension 2222 tries to REpark the call again, only hear DTMF sounds of
either pressing # 56

Also, if the call is recovered, if 2111 extension try to park pressing
https://issues.asterisk.org/view.php?id=56,it parks, but at position 561 of
"parkinglot" general, which can not be
recovered.

In conclusion no longer possible to re-park a call. And if is the caller
who tries to re-park, park the call in parkinglot for general context, not
in their parkinglot.

Another thing is when a parked call ringback to extension that parkred
previously , now you can park again, I will explain:

The extension 2111 calls to 2222
The extension 2222 answers
Extension 2222 parks the call with https://issues.asterisk.org/view.php?id=56
The call is parked at position 201
Pass the timeout and the call of 2111 returns to 2222
The extension 2222 answers
2222 re-parks the call with # 56
Now you can pick the call parked at position 201
Do not know if it's a configuration error or a BUG of Asterisk, we have
tested thousand configuration changes and the result is always the same.

I do not know if I explained correctly.

It's an issue where we need your help.

If you need a better explanation, tell me. We're pretty desperate with
this issue.

Thank you very much and best regards.

Sorry my English

I put the pieces of the configuration files.
====================================================================== 

---------------------------------------------------------------------- 
 (0119251) malg79 (reporter) - 2010-03-11 03:40
 https://issues.asterisk.org/view.php?id=16895#c119251 
---------------------------------------------------------------------- 
core show version
Asterisk SVN-branch-1.6.2-r251820 built by root @ maqueta-ale on a i686
running Linux on 2010-03-11 08:49:50 UTC

###########################################################
extension 3202 calls extension 3201 and 3201 parks the call
###########################################################



[Mar 11 09:58:16]   == Using SIP RTP CoS mark 5
[Mar 11 09:58:16]   == Using SIP VRTP CoS mark 6
[Mar 11 09:58:16]   == Using UDPTL CoS mark 5
[Mar 11 09:58:16]     -- Executing [3201 at outgoing_cta:1]
Macro("SIP/3202-00000000", "llamada_a_extension,3201") in new stack
[Mar 11 09:58:16]     -- Executing [s at macro-llamada_a_extension:1]
NoOp("SIP/3202-00000000", "Se comprueba si 3201 esta desviada") in new
stack
[Mar 11 09:58:16]     -- Executing [s at macro-llamada_a_extension:2]
Set("SIP/3202-00000000", "LLAMAR=") in new stack
[Mar 11 09:58:16]     -- Executing [s at macro-llamada_a_extension:3]
GotoIf("SIP/3202-00000000", "1?setear") in new stack
[Mar 11 09:58:16]     -- Goto (macro-llamada_a_extension,s,5)
[Mar 11 09:58:16]     -- Executing [s at macro-llamada_a_extension:5]
Set("SIP/3202-00000000", "LLAMAR=3201") in new stack
[Mar 11 09:58:16]     -- Executing [s at macro-llamada_a_extension:6]
Dial("SIP/3202-00000000", "SIP/3201,60,tTr") in new stack
[Mar 11 09:58:16]   == Using SIP RTP CoS mark 5
[Mar 11 09:58:16]   == Using SIP VRTP CoS mark 6
[Mar 11 09:58:16]   == Using UDPTL CoS mark 5
[Mar 11 09:58:16]     -- Called 3201
[Mar 11 09:58:16]     -- SIP/3201-00000001 is ringing
[Mar 11 09:58:20]     -- SIP/3201-00000001 answered SIP/3202-00000000
[Mar 11 09:58:23]     -- Started music on hold, class 'default', on
SIP/3202-00000000
[Mar 11 09:58:23]     -- <SIP/3201-00000001> Playing 'pbx-transfer.alaw'
(language 'es')
[Mar 11 09:58:24]     -- Stopped music on hold on SIP/3202-00000000
[Mar 11 09:58:24]     -- Started music on hold, class 'default', on
SIP/3202-00000000
[Mar 11 09:58:24]   == Parked SIP/3202-00000000 on 301 (lot
parkinglot_cta). Will timeout back to extension [outgoing_cta] 3201, 1 in
45 seconds
[Mar 11 09:58:24]     -- Added extension '301' priority 1 to parking_cta
(0x8b363c0)
[Mar 11 09:58:24]     -- <SIP/3201-00000001> Playing 'digits/3.alaw'
(language 'es')
[Mar 11 09:58:25]     -- <SIP/3201-00000001> Playing 'digits/0.alaw'
(language 'es')
[Mar 11 09:58:25]     -- <SIP/3201-00000001> Playing 'digits/1.alaw'
(language 'es')
[Mar 11 09:58:34]   == Using SIP RTP CoS mark 5
[Mar 11 09:58:34]   == Using SIP VRTP CoS mark 6
[Mar 11 09:58:34]   == Using UDPTL CoS mark 5
[Mar 11 09:58:34]     -- Executing [301 at outgoing_cta:1]
ParkedCall("SIP/3201-00000002", "301") in new stack
[Mar 11 09:58:34]     -- Stopped music on hold on SIP/3202-00000000
[Mar 11 09:58:34]     -- <SIP/3201-00000002> Playing 'beep.alaw' (language
'es')
[Mar 11 09:58:35]     -- Channel SIP/3201-00000002 connected to parked
call 301

###################################################
extension 3201 tries to  reparks but nothing ocurrs
###################################################

########################################################
extension 3202 can park the call, but in GENARAL context
########################################################



[Mar 11 09:59:17]     -- <SIP/3202-00000000> Playing 'pbx-transfer.alaw'
(language 'es')
[Mar 11 09:59:19]     -- Stopped music on hold on SIP/3201-00000002
[Mar 11 09:59:19]     -- Started music on hold, class 'default', on
SIP/3201-00000002
[Mar 11 09:59:19]   == Parked SIP/3201-00000002 on 561 (lot default). Will
timeout back to extension [outgoing_cta] 301, 1 in 300 seconds
[Mar 11 09:59:19]     -- Added extension '561' priority 1 to parkedcalls
(0xb79063f8)
[Mar 11 09:59:19]     -- <SIP/3202-00000000> Playing 'digits/5.alaw'
(language 'es')
[Mar 11 09:59:19]     -- <SIP/3202-00000000> Playing 'digits/6.alaw'
(language 'es')
[Mar 11 09:59:20]     -- <SIP/3202-00000000> Playing 'digits/1.alaw'
(language 'es')
[Mar 11 09:59:20]   == Spawn extension (outgoing_cta, 301, 1) exited
non-zero on 'Parked/SIP/3201-00000002<ZOMBIE>'


###########################
The call can't be recovered
###########################



[Mar 11 10:00:26]   == Using SIP RTP CoS mark 5
[Mar 11 10:00:26]   == Using SIP VRTP CoS mark 6
[Mar 11 10:00:26]   == Using UDPTL CoS mark 5
[Mar 11 10:00:26] NOTICE[21404]: chan_sip.c:20059 handle_request_invite:
Call from '3202' to extension '561' rejected because extension not found.






#################################################################
Again extension 3202 calls extension 3201 and 3201 parks the call
#################################################################




[Mar 11 10:01:23]   == Using SIP RTP CoS mark 5
[Mar 11 10:01:23]   == Using SIP VRTP CoS mark 6
[Mar 11 10:01:23]   == Using UDPTL CoS mark 5
[Mar 11 10:01:23]     -- Executing [3201 at outgoing_cta:1]
Macro("SIP/3202-00000003", "llamada_a_extension,3201") in new stack
[Mar 11 10:01:23]     -- Executing [s at macro-llamada_a_extension:1]
NoOp("SIP/3202-00000003", "Se comprueba si 3201 esta desviada") in new
stack
[Mar 11 10:01:23]     -- Executing [s at macro-llamada_a_extension:2]
Set("SIP/3202-00000003", "LLAMAR=") in new stack
[Mar 11 10:01:23]     -- Executing [s at macro-llamada_a_extension:3]
GotoIf("SIP/3202-00000003", "1?setear") in new stack
[Mar 11 10:01:23]     -- Goto (macro-llamada_a_extension,s,5)
[Mar 11 10:01:23]     -- Executing [s at macro-llamada_a_extension:5]
Set("SIP/3202-00000003", "LLAMAR=3201") in new stack
[Mar 11 10:01:23]     -- Executing [s at macro-llamada_a_extension:6]
Dial("SIP/3202-00000003", "SIP/3201,60,tTr") in new stack
[Mar 11 10:01:23]   == Using SIP RTP CoS mark 5
[Mar 11 10:01:23]   == Using SIP VRTP CoS mark 6
[Mar 11 10:01:23]   == Using UDPTL CoS mark 5
[Mar 11 10:01:23]     -- Called 3201
[Mar 11 10:01:23]     -- SIP/3201-00000004 is ringing
[Mar 11 10:01:29]     -- SIP/3201-00000004 answered SIP/3202-00000003
[Mar 11 10:01:31]     -- Started music on hold, class 'default', on
SIP/3202-00000003
[Mar 11 10:01:31]     -- <SIP/3201-00000004> Playing 'pbx-transfer.alaw'
(language 'es')
[Mar 11 10:01:32]     -- Stopped music on hold on SIP/3202-00000003
[Mar 11 10:01:32]     -- Started music on hold, class 'default', on
SIP/3202-00000003
[Mar 11 10:01:32]   == Parked SIP/3202-00000003 on 301 (lot
parkinglot_cta). Will timeout back to extension [outgoing_cta] 3201, 1 in
45 seconds
[Mar 11 10:01:32]     -- Added extension '301' priority 1 to parking_cta
(0x8e9b5f0)
[Mar 11 10:01:32]     -- <SIP/3201-00000004> Playing 'digits/3.alaw'
(language 'es')
[Mar 11 10:01:33]     -- <SIP/3201-00000004> Playing 'digits/0.alaw'
(language 'es')
[Mar 11 10:01:33]     -- <SIP/3201-00000004> Playing 'digits/1.alaw'
(language 'es')
[Mar 11 10:02:17]     -- Stopped music on hold on SIP/3202-00000003

###################################################
Park Timeout and now 3201 can repark the call again
###################################################


[Mar 11 10:02:17]     -- Registered extension context '' (0x8b8dad8) in
table 0x8e6c4e0; registrar: features
[Mar 11 10:02:17]     -- Added extension 'SIP03201' priority 1 to 
(0x8b8dad8)
[Mar 11 10:02:17]   == Timeout for SIP/3202-00000003 parked on 301
(parkinglot_cta). Returning to ,SIP03201,1
[Mar 11 10:02:17]     -- Executing [SIP03201@:1] Dial("SIP/3202-00000003",
"SIP/3201,30,Tt") in new stack
[Mar 11 10:02:17]   == Using SIP RTP CoS mark 5
[Mar 11 10:02:17]   == Using SIP VRTP CoS mark 6
[Mar 11 10:02:17]   == Using UDPTL CoS mark 5
[Mar 11 10:02:17]     -- Called 3201
[Mar 11 10:02:17]     -- SIP/3201-00000005 is ringing
[Mar 11 10:02:33]     -- SIP/3201-00000005 answered SIP/3202-00000003



[Mar 11 10:02:36]     -- Started music on hold, class 'default', on
SIP/3202-00000003
[Mar 11 10:02:36]     -- <SIP/3201-00000005> Playing 'pbx-transfer.alaw'
(language 'es')
[Mar 11 10:02:37]     -- Stopped music on hold on SIP/3202-00000003
[Mar 11 10:02:37]     -- Started music on hold, class 'default', on
SIP/3202-00000003
[Mar 11 10:02:37]   == Parked SIP/3202-00000003 on 301 (lot
parkinglot_cta). Will timeout back to extension [outgoing_cta] 3201, 1 in
45 seconds
[Mar 11 10:02:37]     -- Added extension '301' priority 1 to parking_cta
(0x8e9b5f0)
[Mar 11 10:02:37]     -- <SIP/3201-00000005> Playing 'digits/3.alaw'
(language 'es')
[Mar 11 10:02:37]     -- <SIP/3201-00000005> Playing 'digits/0.alaw'
(language 'es')
[Mar 11 10:02:38]     -- <SIP/3201-00000005> Playing 'digits/1.alaw'
(language 'es')




I attached an archiver named "log" with this procces with debug and
verbose lo level 12 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-03-11 03:40 malg79         Note Added: 0119251                          
======================================================================




More information about the asterisk-bugs mailing list