Generate response to Status Enquiry message with Status q.931 message.

Some PBXes require this for call status checking

(closes issue ASTERISK-18748)
Reported by: Fabrizio Lazzaretti
Patches:
      ASTERISK-18748-5.patch (License #5415) patch uploaded by may213
Tested by: Fabrizio Lazzaretti
........

Merged revisions 344158 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 344159 from http://svn.asterisk.org/svn/asterisk/branches/10


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@344161 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Alexandr Anikin
2011-11-09 19:08:44 +00:00
parent c1647ab33a
commit 31ee82863c
6 changed files with 208 additions and 4 deletions

View File

@@ -246,6 +246,7 @@ typedef struct Q931Message {
Q931InformationElement *calledPartyNumberIE;
Q931InformationElement *causeIE;
Q931InformationElement *keypadIE;
Q931InformationElement *callstateIE;
H225H323_UserInformation *userInfo;
} Q931Message;
@@ -469,6 +470,10 @@ EXTERN int ooSendAlerting(struct OOH323CallData *call);
EXTERN int ooSendProgress(struct OOH323CallData *call);
EXTERN int ooSendStatus(struct OOH323CallData *call);
EXTERN int ooSendStatusInquiry(struct OOH323CallData *call);
/**
* This function is invoked to send Facility message.
*
@@ -714,6 +719,9 @@ EXTERN int ooQ931SetCauseIE
(OOCTXT *pctxt, Q931Message *pmsg,enum Q931CauseValues cause, unsigned coding,
unsigned location);
EXTERN int ooQ931SetCallStateIE
(OOCTXT *pctxt, Q931Message *pmsg, unsigned char callstate);
/**
* This function is used to convert a call clear reason to cause and
* reason code. It is used when local user is endoing the call and