From 34f700b584bd98f1f3f354e9f8ea7a309cd064c5 Mon Sep 17 00:00:00 2001 From: Martin Pycko Date: Thu, 5 Jun 2003 21:15:56 +0000 Subject: [PATCH] Change the way we store the callednum from INFORMATION messages git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@42 2fbb986a-6c06-0410-b554-c9c1f0a7f128 --- libpri.h | 2 ++ q931.c | 5 ----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/libpri.h b/libpri.h index 6ffb45e..51c9936 100755 --- a/libpri.h +++ b/libpri.h @@ -179,6 +179,8 @@ #define PRI_LAYER_1_V120_RATE_ADAPT 0x28 #define PRI_LAYER_1_X31_RATE_ADAPT 0x29 +#define PRI_COPY_DIGITS_CALLED_NUMBER + typedef struct q931_call q931_call; typedef struct pri_event_generic { diff --git a/q931.c b/q931.c index 00a71c8..7a2f008 100755 --- a/q931.c +++ b/q931.c @@ -785,13 +785,8 @@ static void dump_redirecting_subaddr(q931_ie *ie, int len, char prefix) static int receive_called_party_number(struct pri *pri, q931_call *call, int msgtype, q931_ie *ie, int len) { -#ifdef SKIP_OVERLAP_SUPPORT /* copy digits to call->callednum */ q931_get_number(call->callednum, sizeof(call->callednum), ie->data + 1, len - 3); -#else - /* append new digits to call->callednum */ - q931_get_number(call->callednum + strlen(call->callednum), sizeof(call->callednum) - strlen(call->callednum), ie->data + 1, len - 3); -#endif call->calledplan = ie->data[0] & 0x7f; return 0; }