mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 02:26:23 +00:00
add docallbacks flag in q931decode function because
when we decode received q931 packet we must do callbacks and when we print sended q931 packet we must not. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@239037 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1114,7 +1114,7 @@ int ooH2250Receive(OOH323CallData *call)
|
|||||||
|
|
||||||
initializePrintHandler(&printHandler, "Received H.2250 Message");
|
initializePrintHandler(&printHandler, "Received H.2250 Message");
|
||||||
setEventHandler (pctxt, &printHandler);
|
setEventHandler (pctxt, &printHandler);
|
||||||
ret = ooQ931Decode (call, pmsg, len, message);
|
ret = ooQ931Decode (call, pmsg, len, message, 1);
|
||||||
if(ret != OO_OK) {
|
if(ret != OO_OK) {
|
||||||
OOTRACEERR3("Error:Failed to decode received H.2250 message. (%s, %s)\n",
|
OOTRACEERR3("Error:Failed to decode received H.2250 message. (%s, %s)\n",
|
||||||
call->callType, call->callToken);
|
call->callType, call->callToken);
|
||||||
|
@@ -47,7 +47,7 @@ static ASN1OBJID gProtocolID = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
EXTERN int ooQ931Decode
|
EXTERN int ooQ931Decode
|
||||||
(OOH323CallData *call, Q931Message* msg, int length, ASN1OCTET *data)
|
(OOH323CallData *call, Q931Message* msg, int length, ASN1OCTET *data, int docallbacks)
|
||||||
{
|
{
|
||||||
int offset, x;
|
int offset, x;
|
||||||
int rv = ASN_OK;
|
int rv = ASN_OK;
|
||||||
@@ -173,7 +173,7 @@ EXTERN int ooQ931Decode
|
|||||||
OOTRACEDBGB1(" Keypad IE = {\n");
|
OOTRACEDBGB1(" Keypad IE = {\n");
|
||||||
OOTRACEDBGB2(" %s\n", ie->data);
|
OOTRACEDBGB2(" %s\n", ie->data);
|
||||||
OOTRACEDBGB1(" }\n");
|
OOTRACEDBGB1(" }\n");
|
||||||
if(gH323ep.h323Callbacks.onReceivedDTMF)
|
if(docallbacks && gH323ep.h323Callbacks.onReceivedDTMF)
|
||||||
{
|
{
|
||||||
gH323ep.h323Callbacks.onReceivedDTMF(call, (char *)ie->data);
|
gH323ep.h323Callbacks.onReceivedDTMF(call, (char *)ie->data);
|
||||||
}
|
}
|
||||||
@@ -626,7 +626,7 @@ static void ooQ931PrintMessage
|
|||||||
|
|
||||||
setPERBuffer (pctxt, msgbuf, msglen, TRUE);
|
setPERBuffer (pctxt, msgbuf, msglen, TRUE);
|
||||||
|
|
||||||
ret = ooQ931Decode (call, &q931Msg, msglen, msgbuf);
|
ret = ooQ931Decode (call, &q931Msg, msglen, msgbuf, 0);
|
||||||
if(ret != OO_OK)
|
if(ret != OO_OK)
|
||||||
{
|
{
|
||||||
OOTRACEERR3("Error:Failed decoding Q931 message. (%s, %s)\n",
|
OOTRACEERR3("Error:Failed decoding Q931 message. (%s, %s)\n",
|
||||||
|
@@ -335,7 +335,7 @@ typedef struct OOH225MsgCallbacks {
|
|||||||
* @return Completion status - 0 on success, -1 on failure
|
* @return Completion status - 0 on success, -1 on failure
|
||||||
*/
|
*/
|
||||||
EXTERN int ooQ931Decode
|
EXTERN int ooQ931Decode
|
||||||
(struct OOH323CallData *call, Q931Message* msg, int length, ASN1OCTET *data);
|
(struct OOH323CallData *call, Q931Message* msg, int length, ASN1OCTET *data, int docallbacks);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This function is used to decode the UUIE of the message from the list of
|
* This function is used to decode the UUIE of the message from the list of
|
||||||
|
Reference in New Issue
Block a user