[asterisk-bugs] [Asterisk 0010873]: parkingcalls, by context with minim code change and not config changes.

noreply at bugs.digium.com noreply at bugs.digium.com
Fri Jan 18 12:08:26 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=10873 
====================================================================== 
Reported By:                tecnoxarxa
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   10873
Category:                   Resources/res_features
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     new
Asterisk Version:            SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  1.4  
SVN Revision (number only!): 84474 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             10-02-2007 18:05 CDT
Last Modified:              01-18-2008 12:08 CST
====================================================================== 
Summary:                    parkingcalls, by context with minim code change and
not config changes.
Description: 
I change very poor the code for get this feature. Now asterisk users have
parkedcalls by context, simply and automatic. Without new config or change
of the file features.conf

I'm tested this and work property.
No changes for features.conf only res_features.c

With this little change, the parkedcalls get a new power with interest for
all.


======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
has duplicate       0010836 Patch for an inteligent parkedcalls.
====================================================================== 

---------------------------------------------------------------------- 
 vladb - 01-18-08 12:08  
---------------------------------------------------------------------- 
Hi everyone, I did apply the patch to 1.4.17 and there some issues.
1. It was crashing instantly. Found that for some reason second channel
was null in func call:
res = park_call_full(chan, NULL, 0, NULL, orig_chan_name);
 Once we put it in it start working - res = park_call_full(chan, chan, 0,
NULL, orig_chan_name);
Is this an error ?
2 When call is unpacked, park slot counter is going up for  every next
parked call. Don’t know why. We fixed for now by checking if parkinglot
is free pa->parkinglot == NULL, set pa->offset = 0;
And adjusting context variable for releasing parking lot:
 con = ast_context_find(parking_con);   to  con =
ast_context_find(pu->context);

Also would be really cool if could get BLF for this and park by setting a
dial plan variable PARKCONTEXT, didn’t get there yet.

Tecnoxarxa, may be you can update your patch with this fixes, It may give
a good step ahead. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
01-18-08 12:08  vladb          Note Added: 0080863                          
======================================================================




More information about the asterisk-bugs mailing list