[asterisk-bugs] [Asterisk 0015956]: Transfer to parking lot replies '202 Accepted' rather than '480 Temporarily Unavailable' when lot is full

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Dec 15 04:19:29 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15956 
====================================================================== 
Reported By:                Nick_Lewis
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   15956
Category:                   Channels/chan_sip/Transfers
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     acknowledged
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-09-24 12:05 CDT
Last Modified:              2009-12-15 04:19 CST
====================================================================== 
Summary:                    Transfer to parking lot replies '202 Accepted'
rather than '480 Temporarily Unavailable' when lot is full
Description: 
When using sip refer to blind transfer to the parking lot, asterisk always
responds '202 Accepted'. When the parking lot is full it should instead
respond '480 Temporarily Unavailable'.
====================================================================== 

---------------------------------------------------------------------- 
 (0115251) Nick_Lewis (reporter) - 2009-12-15 04:19
 https://issues.asterisk.org/view.php?id=15956#c115251 
---------------------------------------------------------------------- 
I see that a park_space_reserve function was fairly recently added to
features.c. At the moment it is used only for dtmf initiated transfers to
parking lots but there is no reason it cannot also be used in chan_sip.c
for the same purpose. For example (in pseudocode):

sip_park_thread() {
 pu = ast_park_space_reserve()
 if (!pu) { transmit_response("480 Temporarily Unavailable"); }
 else {
  ast_do_masquerade()
  res = ast_park_call(pu); 
 }
} 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-12-15 04:19 Nick_Lewis     Note Added: 0115251                          
======================================================================




More information about the asterisk-bugs mailing list