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; }