From 492a19ab7dae92aa9bf43c35275ae2e9ddfe4eb8 Mon Sep 17 00:00:00 2001 From: Richard Mudgett Date: Thu, 17 Feb 2011 17:50:20 +0000 Subject: [PATCH] * Added switchtype to ROSE invoke operation not handled message. * Reordered NI2 ROSE message table so any conflicts with the pirated Q.SIG messages will be in favor of the NI2 specific messages. This is precautionary only. git-svn-id: https://origsvn.digium.com/svn/libpri/branches/1.4@2204 2fbb986a-6c06-0410-b554-c9c1f0a7f128 --- pri_facility.c | 5 +++-- rose.c | 26 +++++++++++++------------- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/pri_facility.c b/pri_facility.c index 6ce1e1e..d533070 100644 --- a/pri_facility.c +++ b/pri_facility.c @@ -5528,8 +5528,9 @@ void rose_handle_invoke(struct pri *ctrl, q931_call *call, int msgtype, q931_ie #endif /* Not handled yet */ default: if (ctrl->debug & PRI_DEBUG_APDU) { - pri_message(ctrl, "!! ROSE invoke operation not handled! %s\n", - rose_operation2str(invoke->operation)); + pri_message(ctrl, + "!! ROSE invoke operation not handled on switchtype:%s! %s\n", + pri_switch2str(ctrl->switchtype), rose_operation2str(invoke->operation)); } break; } diff --git a/rose.c b/rose.c index c453d07..1ecb607 100644 --- a/rose.c +++ b/rose.c @@ -1292,6 +1292,19 @@ static const struct rose_convert_msg rose_ni2_msgs[] = { * encode_invoke_args, encode_result_args, * decode_invoke_args, decode_result_args */ + { + ROSE_NI2_InformationFollowing, &rose_ni2_oid, 4, + rose_enc_ni2_InformationFollowing_ARG, NULL, + rose_dec_ni2_InformationFollowing_ARG, NULL + }, + + /* Also used by PRI_SWITCH_ATT4ESS and PRI_SWITCH_LUCENT5E */ + { + ROSE_NI2_InitiateTransfer, &rose_ni2_oid, 8, + rose_enc_ni2_InitiateTransfer_ARG, NULL, + rose_dec_ni2_InitiateTransfer_ARG, NULL + }, + /* NI2 seems to have pirated several Q.SIG messages */ /* * localValue's from Q.SIG Name-Operations @@ -1317,19 +1330,6 @@ static const struct rose_convert_msg rose_ni2_msgs[] = { rose_enc_qsig_BusyName_ARG, NULL, rose_dec_qsig_BusyName_ARG, NULL }, - - { - ROSE_NI2_InformationFollowing, &rose_ni2_oid, 4, - rose_enc_ni2_InformationFollowing_ARG, NULL, - rose_dec_ni2_InformationFollowing_ARG, NULL - }, - - /* Also used by PRI_SWITCH_ATT4ESS and PRI_SWITCH_LUCENT5E */ - { - ROSE_NI2_InitiateTransfer, &rose_ni2_oid, 8, - rose_enc_ni2_InitiateTransfer_ARG, NULL, - rose_dec_ni2_InitiateTransfer_ARG, NULL - }, /* *INDENT-ON* */ };