mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-25 22:18:07 +00:00
Updated SIP 484 handling; added Incomplete control frame
When a SIP phone uses the dial application and receives a 484 Address Incomplete response, if overlapped dialing is enabled for SIP, then the 484 Address Incomplete is forwarded back to the SIP phone and the HANGUPCAUSE channel variable is set to 28. Previously, the Incomplete application dialplan logic was automatically triggered; now, explicit dialplan usage of the application is required. Additionally, this patch adds a new AST_CONTOL_FRAME type called AST_CONTROL_INCOMPLETE. If a channel driver receives this control frame, it is an indication that the dialplan expects more digits back from the device. If the device supports overlap dialing it should attempt to notify the device that the dialplan is waiting for more digits; otherwise, it can handle the frame in a manner appropriate to the channel driver. (closes issue ASTERISK-17288) Reported by: Mikael Carlsson Tested by: Matthew Jordan Review: https://reviewboard.asterisk.org/r/1416/ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@335064 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -312,6 +312,9 @@ static void print_frame(struct ast_frame *frame)
|
||||
case AST_CONTROL_AOC:
|
||||
ast_verbose("SubClass: AOC\n");
|
||||
break;
|
||||
case AST_CONTROL_INCOMPLETE:
|
||||
ast_verbose("SubClass: INCOMPLETE\n");
|
||||
break;
|
||||
}
|
||||
if (frame->subclass.integer == -1) {
|
||||
ast_verbose("SubClass: %d\n", frame->subclass.integer);
|
||||
|
||||
Reference in New Issue
Block a user