From 2cb2d5f3acdaf13d979c9bf9efb74b34b7ceea70 Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Sun, 9 Aug 2020 14:27:56 +0200 Subject: Replaced MNCC by OSMO-CC --- src/anetz/anetz.c | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'src/anetz/anetz.c') diff --git a/src/anetz/anetz.c b/src/anetz/anetz.c index fc9fc52..c598b1a 100644 --- a/src/anetz/anetz.c +++ b/src/anetz/anetz.c @@ -28,14 +28,11 @@ #include "../libdebug/debug.h" #include "../libtimer/timer.h" #include "../libmobile/call.h" -#include "../libmncc/cause.h" +#include "../libmobile/cause.h" +#include "../libosmocc/message.h" #include "anetz.h" #include "dsp.h" -/* Call reference for calls from mobile station to network - This offset of 0x400000000 is required for MNCC interface. */ -static int new_callref = 0x40000000; - /* Timers */ #define PAGING_TO 30 /* Nach dieser Zeit ist der Operator genervt... */ #define RELEASE_TO 3 /* Release time, so station keeps blocked for a while */ @@ -326,17 +323,8 @@ void anetz_receive_tone(anetz_t *anetz, int tone) /* throughconnect speech when calling/answer tone is gone */ if (tone != 1) { if (!anetz->callref) { - int callref = ++new_callref; - int rc; - PDEBUG_CHAN(DANETZ, DEBUG_INFO, "1750 Hz signal from mobile station is gone, setup call.\n"); - rc = call_up_setup(callref, NULL, anetz->operator); - if (rc < 0) { - PDEBUG_CHAN(DANETZ, DEBUG_NOTICE, "Call rejected (cause %d), sending release tone.\n", -rc); - anetz_release(anetz); - break; - } - anetz->callref = callref; + anetz->callref = call_up_setup(NULL, anetz->operator, OSMO_CC_NETWORK_ANETZ_NONE, ""); } else { PDEBUG_CHAN(DANETZ, DEBUG_INFO, "1750 Hz signal from mobile station is gone, answer call.\n"); call_up_answer(anetz->callref, anetz->station_id); -- cgit v1.2.3