From fc18e69a6c26b00d7f2d900c621d4c1ba8aaf78a Mon Sep 17 00:00:00 2001 From: Shane Burrell Date: Wed, 16 Apr 2008 22:43:51 +0000 Subject: [PATCH] Formatting git-svn-id: http://svn.openzap.org/svn/openzap/trunk@462 a93c3328-9c30-0410-af19-c9cd2b2d52af --- libs/openzap/src/zap_m3ua.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/libs/openzap/src/zap_m3ua.c b/libs/openzap/src/zap_m3ua.c index 0e02a4ae7f..c54e533eab 100644 --- a/libs/openzap/src/zap_m3ua.c +++ b/libs/openzap/src/zap_m3ua.c @@ -5,8 +5,9 @@ * Created by Shane Burrell on 4/3/08. * Copyright 2008 Shane Burrell. All rights reserved. * - * + * Copyright (c) 2007, Anthony Minessale II, Nenad Corbic * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: @@ -394,6 +395,7 @@ static int parse_ss7_event(zap_span_t *span, m3uac_connection_t *mcon, m3uac_eve static ZIO_CONFIGURE_FUNCTION(m3ua_configure) { m3ua_channel_profile_t *profile = NULL; + int ok = 1; if (!(profile = (m3ua_channel_profile_t *) hashtable_search(globals.profile_hash, (char *)category))) { @@ -404,12 +406,13 @@ static ZIO_CONFIGURE_FUNCTION(m3ua_configure) zap_log(ZAP_LOG_INFO, "creating profile [%s]\n", category); } - - if (!strcasecmp(var, "local_ip")) { - //profile->span_config.framing = pika_str2span(val); +// zap_set_string(m3ua_data->mcon. cfg.local_ip, local_ip); + if (!strcasecmp(var, "local_sctp_port")) { + profile->local_port = 30000 ; + profile->remote_port = 30000; profile->cust_span++; } - ok = 0; + ok = 1; if (ok) {