summaryrefslogtreecommitdiff
path: root/addons/ooh323c/src/ooq931.c
diff options
context:
space:
mode:
authorAlexandr Anikin <may@telecom-service.ru>2010-01-10 17:53:59 +0000
committerAlexandr Anikin <may@telecom-service.ru>2010-01-10 17:53:59 +0000
commit11e1780402816ca5aebd546c0297445348368b9b (patch)
tree0d835c32ea87d35d7f433ddc3adec6ef2ae3f0af /addons/ooh323c/src/ooq931.c
parent5e0762370c09ddc3d835b8f7418f7d25cfd4450d (diff)
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
Diffstat (limited to 'addons/ooh323c/src/ooq931.c')
-rw-r--r--addons/ooh323c/src/ooq931.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/ooh323c/src/ooq931.c b/addons/ooh323c/src/ooq931.c
index e8bc41e76..1d5f7e7d7 100644
--- a/addons/ooh323c/src/ooq931.c
+++ b/addons/ooh323c/src/ooq931.c
@@ -47,7 +47,7 @@ static ASN1OBJID gProtocolID = {
};
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 rv = ASN_OK;
@@ -173,7 +173,7 @@ EXTERN int ooQ931Decode
OOTRACEDBGB1(" Keypad IE = {\n");
OOTRACEDBGB2(" %s\n", ie->data);
OOTRACEDBGB1(" }\n");
- if(gH323ep.h323Callbacks.onReceivedDTMF)
+ if(docallbacks && gH323ep.h323Callbacks.onReceivedDTMF)
{
gH323ep.h323Callbacks.onReceivedDTMF(call, (char *)ie->data);
}
@@ -626,7 +626,7 @@ static void ooQ931PrintMessage
setPERBuffer (pctxt, msgbuf, msglen, TRUE);
- ret = ooQ931Decode (call, &q931Msg, msglen, msgbuf);
+ ret = ooQ931Decode (call, &q931Msg, msglen, msgbuf, 0);
if(ret != OO_OK)
{
OOTRACEERR3("Error:Failed decoding Q931 message. (%s, %s)\n",