aboutsummaryrefslogtreecommitdiffstats
path: root/addons/ooh323c/src/ooq931.c
diff options
context:
space:
mode:
authormay <may@f38db490-d61c-443f-a65b-d21fe96a405b>2010-01-10 17:53:59 +0000
committermay <may@f38db490-d61c-443f-a65b-d21fe96a405b>2010-01-10 17:53:59 +0000
commit82a849a9d77a9a55460dd7a2f93c84473172218c (patch)
tree0d835c32ea87d35d7f433ddc3adec6ef2ae3f0af /addons/ooh323c/src/ooq931.c
parentb7ec076367502fec756d6667c99e12ac6fad43d1 (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: http://svn.digium.com/svn/asterisk/trunk@239037 f38db490-d61c-443f-a65b-d21fe96a405b
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",