[libpri-commits] rmudgett: branch group/issue14068 r808 - in /team/group/issue14068: ./ q931.c

SVN commits to the libpri project libpri-commits at lists.digium.com
Wed May 20 10:29:19 CDT 2009


Author: rmudgett
Date: Wed May 20 10:29:16 2009
New Revision: 808

URL: http://svn.asterisk.org/svn-view/libpri?view=rev&rev=808
Log:
Merged revisions 804 via svnmerge from 
https://origsvn.digium.com/svn/libpri/branches/1.4

........
  r804 | rmudgett | 2009-05-20 10:03:34 -0500 (Wed, 20 May 2009) | 4 lines
  
  Removed usage of FUNC_DUMP(), FUNC_RECV(), and FUNC_SEND() defines.
  
  They did not really help and hindered easy lookup of parameter types.
........

Modified:
    team/group/issue14068/   (props changed)
    team/group/issue14068/q931.c

Propchange: team/group/issue14068/
------------------------------------------------------------------------------
    automerge = *

Propchange: team/group/issue14068/
------------------------------------------------------------------------------
--- svnmerge-integrated (original)
+++ svnmerge-integrated Wed May 20 10:29:16 2009
@@ -1,1 +1,1 @@
-/branches/1.4:1-798
+/branches/1.4:1-807

Modified: team/group/issue14068/q931.c
URL: http://svn.asterisk.org/svn-view/libpri/team/group/issue14068/q931.c?view=diff&rev=808&r1=807&r2=808
==============================================================================
--- team/group/issue14068/q931.c (original)
+++ team/group/issue14068/q931.c Wed May 20 10:29:16 2009
@@ -221,9 +221,9 @@
 static char *msg2str(int msg);
 
 
-#define FUNC_DUMP(name) void ((name))(int full_ie, struct pri *pri, q931_ie *ie, int len, char prefix)
-#define FUNC_RECV(name) int ((name))(int full_ie, struct pri *pri, q931_call *call, int msgtype, q931_ie *ie, int len)
-#define FUNC_SEND(name) int ((name))(int full_ie, struct pri *pri, q931_call *call, int msgtype, q931_ie *ie, int len, int order)
+#define FUNC_DUMP(name) void (name)(int full_ie, struct pri *pri, q931_ie *ie, int len, char prefix)
+#define FUNC_RECV(name) int (name)(int full_ie, struct pri *pri, q931_call *call, int msgtype, q931_ie *ie, int len)
+#define FUNC_SEND(name) int (name)(int full_ie, struct pri *pri, q931_call *call, int msgtype, q931_ie *ie, int len, int order)
 
 #if 1
 /* Update call state with transition trace. */
@@ -287,7 +287,7 @@
 	return res;
 }
 
-static FUNC_RECV(receive_channel_id)
+static int receive_channel_id(int full_ie, struct pri *pri, q931_call *call, int msgtype, q931_ie *ie, int len)
 {	
 	int x;
 	int pos=0;
@@ -361,7 +361,7 @@
 	return -1;
 }
 
-static FUNC_SEND(transmit_channel_id)
+static int transmit_channel_id(int full_ie, struct pri *pri, q931_call *call, int msgtype, q931_ie *ie, int len, int order)
 {
 	int pos=0;
 
@@ -432,7 +432,7 @@
 	return -1;
 }
 
-static FUNC_DUMP(dump_channel_id)
+static void dump_channel_id(int full_ie, struct pri *pri, q931_ie *ie, int len, char prefix)
 {
 	int pos=0;
 	int x;
@@ -489,20 +489,20 @@
 	return code2str(ri, ris, sizeof(ris) / sizeof(ris[0]));
 }
 
-static FUNC_DUMP(dump_restart_indicator)
+static void dump_restart_indicator(int full_ie, struct pri *pri, q931_ie *ie, int len, char prefix)
 {
 	pri_message(pri, "%c Restart Indentifier (len=%2d) [ Ext: %d  Spare: %d  Resetting %s (%d) ]\n", 
 		prefix, len, (ie->data[0] & 0x80) >> 7, (ie->data[0] & 0x78) >> 3, ri2str(ie->data[0] & 0x7), ie->data[0] & 0x7);
 }
 
-static FUNC_RECV(receive_restart_indicator)
+static int receive_restart_indicator(int full_ie, struct pri *pri, q931_call *call, int msgtype, q931_ie *ie, int len)
 {
 	/* Pretty simple */
 	call->ri = ie->data[0] & 0x7;
 	return 0;
 }
 
-static FUNC_SEND(transmit_restart_indicator)
+static int transmit_restart_indicator(int full_ie, struct pri *pri, q931_call *call, int msgtype, q931_ie *ie, int len, int order)
 {
 	/* Pretty simple */
 	switch(call->ri) {
@@ -614,7 +614,7 @@
     return code2str(proto, protos, sizeof(protos) / sizeof(protos[0]));
 }
 
-static FUNC_DUMP(dump_bearer_capability)
+static void dump_bearer_capability(int full_ie, struct pri *pri, q931_ie *ie, int len, char prefix)
 {
 	int pos=2;
 	pri_message(pri, "%c Bearer Capability (len=%2d) [ Ext: %d  Q.931 Std: %d  Info transfer capability: %s (%d)\n",
@@ -744,7 +744,7 @@
 	}
 }
 
-static FUNC_RECV(receive_bearer_capability)
+static int receive_bearer_capability(int full_ie, struct pri *pri, q931_call *call, int msgtype, q931_ie *ie, int len)
 {
 	int pos=2;
 	if (ie->data[0] & 0x60) {
@@ -795,7 +795,7 @@
 	return 0;
 }
 
-static FUNC_SEND(transmit_bearer_capability)
+static int transmit_bearer_capability(int full_ie, struct pri *pri, q931_call *call, int msgtype, q931_ie *ie, int len, int order)
 {
 	int tc;
 	int pos;
@@ -941,7 +941,7 @@
 	num[len] = 0;
 }
 
-static FUNC_DUMP(dump_called_party_number)
+static void dump_called_party_number(int full_ie, struct pri *pri, q931_ie *ie, int len, char prefix)
 {
 	unsigned char cnum[256];
 
@@ -950,7 +950,7 @@
 		prefix, len, ie->data[0] >> 7, ton2str((ie->data[0] >> 4) & 0x07), (ie->data[0] >> 4) & 0x07, npi2str(ie->data[0] & 0x0f), ie->data[0] & 0x0f, cnum);
 }
 
-static FUNC_DUMP(dump_called_party_subaddr)
+static void dump_called_party_subaddr(int full_ie, struct pri *pri, q931_ie *ie, int len, char prefix)
 {
 	unsigned char cnum[256];
 	q931_get_number(cnum, sizeof(cnum), ie->data + 1, len - 3);
@@ -960,7 +960,7 @@
 		(ie->data[0] & 0x08) >> 3, cnum);
 }
 
-static FUNC_DUMP(dump_calling_party_number)
+static void dump_calling_party_number(int full_ie, struct pri *pri, q931_ie *ie, int len, char prefix)
 {
 	unsigned char cnum[256];
 	if (ie->data[0] & 0x80)
@@ -974,7 +974,7 @@
 		pri_message(pri, "%c                           Presentation: %s (%d)  '%s' ]\n", prefix, pri_pres2str(ie->data[1] & 0x7f), ie->data[1] & 0x7f, cnum);
 }
 
-static FUNC_DUMP(dump_calling_party_subaddr)
+static void dump_calling_party_subaddr(int full_ie, struct pri *pri, q931_ie *ie, int len, char prefix)
 {
 	unsigned char cnum[256];
 	q931_get_number(cnum, sizeof(cnum), ie->data + 1, len - 3);
@@ -984,7 +984,7 @@
 		(ie->data[0] & 0x08) >> 3, cnum);
 }
 
-static FUNC_DUMP(dump_redirecting_number)
+static void dump_redirecting_number(int full_ie, struct pri *pri, q931_ie *ie, int len, char prefix)
 {
 	unsigned char cnum[256];
 	int i = 0;
@@ -1010,7 +1010,7 @@
 	pri_message(pri, "  '%s' ]\n", cnum);
 }
 
-static FUNC_RECV(receive_connected_number)
+static int receive_connected_number(int full_ie, struct pri *pri, q931_call *call, int msgtype, q931_ie *ie, int len)
 {
 	int i = 0;
 
@@ -1031,7 +1031,7 @@
 	return 0;
 }
 
-static FUNC_SEND(transmit_connected_number)
+static int transmit_connected_number(int full_ie, struct pri *pri, q931_call *call, int msgtype, q931_ie *ie, int len, int order)
 {
 	int datalen = strlen(call->connectednum);
 	if (datalen > 0) {
@@ -1044,7 +1044,7 @@
 	return 0;
 }
 
-static FUNC_DUMP(dump_connected_number)
+static void dump_connected_number(int full_ie, struct pri *pri, q931_ie *ie, int len, char prefix)
 {
 	unsigned char cnum[256];
 	int i = 0;
@@ -1067,7 +1067,7 @@
 }
 
 
-static FUNC_RECV(receive_redirecting_number)
+static int receive_redirecting_number(int full_ie, struct pri *pri, q931_call *call, int msgtype, q931_ie *ie, int len)
 {
 	int i = 0;
 
@@ -1090,7 +1090,7 @@
 	return 0;
 }
 
-static FUNC_SEND(transmit_redirecting_number)
+static int transmit_redirecting_number(int full_ie, struct pri *pri, q931_call *call, int msgtype, q931_ie *ie, int len, int order)
 {
 	if (order > 1)
 		return 0;
@@ -1104,7 +1104,7 @@
 	return 0;
 }
 
-static FUNC_DUMP(dump_redirecting_subaddr)
+static void dump_redirecting_subaddr(int full_ie, struct pri *pri, q931_ie *ie, int len, char prefix)
 {
 	unsigned char cnum[256];
 	q931_get_number(cnum, sizeof(cnum), ie->data + 2, len - 4);
@@ -1114,14 +1114,14 @@
 		(ie->data[0] & 0x08) >> 3, cnum);
 }
 
-static FUNC_RECV(receive_calling_party_subaddr)
+static int receive_calling_party_subaddr(int full_ie, struct pri *pri, q931_call *call, int msgtype, q931_ie *ie, int len)
 {
 	/* copy digits to call->callingsubaddr */
  	q931_get_number((unsigned char *) call->callingsubaddr, sizeof(call->callingsubaddr), ie->data + 1, len - 3);
 	return 0;
 }
 
-static FUNC_RECV(receive_called_party_number)
+static int receive_called_party_number(int full_ie, struct pri *pri, q931_call *call, int msgtype, q931_ie *ie, int len)
 {
 	/* copy digits to call->callednum */
  	q931_get_number((unsigned char *) call->callednum, sizeof(call->callednum), ie->data + 1, len - 3);
@@ -1129,7 +1129,7 @@
 	return 0;
 }
 
-static FUNC_SEND(transmit_called_party_number)
+static int transmit_called_party_number(int full_ie, struct pri *pri, q931_call *call, int msgtype, q931_ie *ie, int len, int order)
 {
 	ie->data[0] = 0x80 | call->calledplan;
 	if (*call->callednum)
@@ -1137,7 +1137,7 @@
 	return strlen(call->callednum) + 3;
 }
 
-static FUNC_RECV(receive_calling_party_number)
+static int receive_calling_party_number(int full_ie, struct pri *pri, q931_call *call, int msgtype, q931_ie *ie, int len)
 {
 	u_int8_t *data;
 	size_t length;
@@ -1170,7 +1170,7 @@
 	return 0;
 }
 
-static FUNC_SEND(transmit_calling_party_number)
+static int transmit_calling_party_number(int full_ie, struct pri *pri, q931_call *call, int msgtype, q931_ie *ie, int len, int order)
 {
 	ie->data[0] = call->callerplan;
 	ie->data[1] = 0x80 | call->callerpres;
@@ -1179,7 +1179,7 @@
 	return strlen(call->callernum) + 4;
 }
 
-static FUNC_DUMP(dump_user_user)
+static void dump_user_user(int full_ie, struct pri *pri, q931_ie *ie, int len, char prefix)
 {
 	int x;
 	pri_message(pri, "%c User-User Information (len=%2d) [", prefix, len);
@@ -1189,7 +1189,7 @@
 }
 
 
-static FUNC_RECV(receive_user_user)
+static int receive_user_user(int full_ie, struct pri *pri, q931_call *call, int msgtype, q931_ie *ie, int len)
 {        
         call->useruserprotocoldisc = ie->data[0] & 0xff;
         if (call->useruserprotocoldisc == 4) /* IA5 */
@@ -1197,7 +1197,7 @@
 	return 0;
 }
 
-static FUNC_SEND(transmit_user_user)
+static int transmit_user_user(int full_ie, struct pri *pri, q931_call *call, int msgtype, q931_ie *ie, int len, int order)
 {        
 	int datalen = strlen(call->useruserinfo);
 	if (datalen > 0) {
@@ -1218,7 +1218,7 @@
 	return 0;
 }
 
-static FUNC_DUMP(dump_change_status)
+static void dump_change_status(int full_ie, struct pri *pri, q931_ie *ie, int len, char prefix)
 {
 	int x;
 	
@@ -1229,13 +1229,13 @@
 	pri_message(pri, " ]\n");
 }
 
-static FUNC_RECV(receive_change_status)
+static int receive_change_status(int full_ie, struct pri *pri, q931_call *call, int msgtype, q931_ie *ie, int len)
 {
 	call->changestatus = ie->data[0] & 0x0f;
 	return 0;
 }
 
-static FUNC_SEND(transmit_change_status)
+static int transmit_change_status(int full_ie, struct pri *pri, q931_call *call, int msgtype, q931_ie *ie, int len, int order)
 {
 	ie->data[0] = 0xc0 | call->changestatus;
 	return 3;
@@ -1283,7 +1283,7 @@
 	return code2str(loc, locs, sizeof(locs) / sizeof(locs[0]));
 }
 
-static FUNC_DUMP(dump_progress_indicator)
+static void dump_progress_indicator(int full_ie, struct pri *pri, q931_ie *ie, int len, char prefix)
 {
 	pri_message(pri, "%c Progress Indicator (len=%2d) [ Ext: %d  Coding: %s (%d)  0: %d  Location: %s (%d)\n",
 		prefix, len, ie->data[0] >> 7, coding2str((ie->data[0] & 0x60) >> 5), (ie->data[0] & 0x60) >> 5,
@@ -1292,7 +1292,7 @@
 		prefix, ie->data[1] >> 7, prog2str(ie->data[1] & 0x7f), ie->data[1] & 0x7f);
 }
 
-static FUNC_RECV(receive_display)
+static int receive_display(int full_ie, struct pri *pri, q931_call *call, int msgtype, q931_ie *ie, int len)
 {
 	unsigned char *data;
 	data = ie->data;
@@ -1305,7 +1305,7 @@
 	return 0;
 }
 
-static FUNC_SEND(transmit_display)
+static int transmit_display(int full_ie, struct pri *pri, q931_call *call, int msgtype, q931_ie *ie, int len, int order)
 {
 	int i;
 	
@@ -1323,7 +1323,7 @@
 	return 2 + i + strlen(call->callername);
 }
 
-static FUNC_RECV(receive_progress_indicator)
+static int receive_progress_indicator(int full_ie, struct pri *pri, q931_call *call, int msgtype, q931_ie *ie, int len)
 {
 	call->progloc = ie->data[0] & 0xf;
 	call->progcode = (ie->data[0] & 0x60) >> 5;
@@ -1365,7 +1365,7 @@
 	return 0;
 }
 
-static FUNC_SEND(transmit_facility)
+static int transmit_facility(int full_ie, struct pri *pri, q931_call *call, int msgtype, q931_ie *ie, int len, int order)
 {
 	struct apdu_event *tmp;
 	int i = 0;
@@ -1468,7 +1468,7 @@
 	return 0;
 }
 
-static FUNC_SEND(transmit_progress_indicator)
+static int transmit_progress_indicator(int full_ie, struct pri *pri, q931_call *call, int msgtype, q931_ie *ie, int len, int order)
 {
 	int code, mask;
 	/* Can't send progress indicator on GR-303 -- EVER! */
@@ -1507,7 +1507,7 @@
 	/* Leave off */
 	return 0;
 }
-static FUNC_SEND(transmit_call_state)
+static int transmit_call_state(int full_ie, struct pri *pri, q931_call *call, int msgtype, q931_ie *ie, int len, int order)
 {
 	if (call->ourcallstate > -1 ) {
 		ie->data[0] = call->ourcallstate;
@@ -1516,7 +1516,7 @@
 	return 0;
 }
 
-static FUNC_RECV(receive_call_state)
+static int receive_call_state(int full_ie, struct pri *pri, q931_call *call, int msgtype, q931_ie *ie, int len)
 {
 	call->sugcallstate = ie->data[0] & 0x3f;
 	return 0;
@@ -1548,14 +1548,14 @@
 	return code2str(callstate, callstates, sizeof(callstates) / sizeof(callstates[0]));
 }
 
-static FUNC_DUMP(dump_call_state)
+static void dump_call_state(int full_ie, struct pri *pri, q931_ie *ie, int len, char prefix)
 {
 	pri_message(pri, "%c Call State (len=%2d) [ Ext: %d  Coding: %s (%d)  Call state: %s (%d)\n",
 		prefix, len, ie->data[0] >> 7, coding2str((ie->data[0] & 0xC0) >> 6), (ie->data[0] & 0xC0) >> 6,
 		callstate2str(ie->data[0] & 0x3f), ie->data[0] & 0x3f);
 }
 
-static FUNC_DUMP(dump_call_identity)
+static void dump_call_identity(int full_ie, struct pri *pri, q931_ie *ie, int len, char prefix)
 {
 	int x;
 	pri_message(pri, "%c Call Identity (len=%2d) [ ", prefix, len);
@@ -1564,7 +1564,7 @@
 	pri_message(pri, " ]\n");
 }
 
-static FUNC_DUMP(dump_time_date)
+static void dump_time_date(int full_ie, struct pri *pri, q931_ie *ie, int len, char prefix)
 {
 	pri_message(pri, "%c Time Date (len=%2d) [ ", prefix, len);
 	if (ie->len > 0)
@@ -1582,7 +1582,7 @@
 	pri_message(pri, " ]\n");
 }
 
-static FUNC_DUMP(dump_keypad_facility)
+static void dump_keypad_facility(int full_ie, struct pri *pri, q931_ie *ie, int len, char prefix)
 {
 	char tmp[64];
 	
@@ -1594,7 +1594,7 @@
 	pri_message(pri, "%c Keypad Facility (len=%2d) [ %s ]\n", prefix, ie->len, tmp );
 }
 
-static FUNC_RECV(receive_keypad_facility)
+static int receive_keypad_facility(int full_ie, struct pri *pri, q931_call *call, int msgtype, q931_ie *ie, int len)
 {
 	int mylen;
 
@@ -1612,7 +1612,7 @@
 	return 0;
 }
 
-static FUNC_SEND(transmit_keypad_facility)
+static int transmit_keypad_facility(int full_ie, struct pri *pri, q931_call *call, int msgtype, q931_ie *ie, int len, int order)
 {
 	int sublen;
 
@@ -1632,7 +1632,7 @@
 		return 0;
 }
 
-static FUNC_DUMP(dump_display)
+static void dump_display(int full_ie, struct pri *pri, q931_ie *ie, int len, char prefix)
 {
 	int x, y;
 	char *buf = malloc(len + 1);
@@ -1696,7 +1696,7 @@
 	pri_message(pri, "%s", tmp);
 }
 
-static FUNC_DUMP(dump_facility)
+static void dump_facility(int full_ie, struct pri *pri, q931_ie *ie, int len, char prefix)
 {
 	int dataat = (ie->data[0] & 0x80) ? 1 : 2;
 
@@ -1710,7 +1710,7 @@
 
 }
 
-static FUNC_DUMP(dump_network_spec_fac)
+static void dump_network_spec_fac(int full_ie, struct pri *pri, q931_ie *ie, int len, char prefix)
 {
 	pri_message(pri, "%c Network-Specific Facilities (len=%2d) [ ", prefix, ie->len);
 	if (ie->data[0] == 0x00) {
@@ -1721,12 +1721,12 @@
 	pri_message(pri, " ]\n");
 }
 
-static FUNC_RECV(receive_network_spec_fac)
+static int receive_network_spec_fac(int full_ie, struct pri *pri, q931_call *call, int msgtype, q931_ie *ie, int len)
 {
 	return 0;
 }
 
-static FUNC_SEND(transmit_network_spec_fac)
+static int transmit_network_spec_fac(int full_ie, struct pri *pri, q931_call *call, int msgtype, q931_ie *ie, int len, int order)
 {
 	/* We are ready to transmit single IE only */
 	if (order > 1)
@@ -1761,7 +1761,7 @@
 	return code2str(cause, causeclasses, sizeof(causeclasses) / sizeof(causeclasses[0]));
 }
 
-static FUNC_DUMP(dump_cause)
+static void dump_cause(int full_ie, struct pri *pri, q931_ie *ie, int len, char prefix)
 {
 	int x;
 	pri_message(pri, "%c Cause (len=%2d) [ Ext: %d  Coding: %s (%d)  Spare: %d  Location: %s (%d)\n",
@@ -1798,7 +1798,7 @@
 	}
 }
 
-static FUNC_RECV(receive_cause)
+static int receive_cause(int full_ie, struct pri *pri, q931_call *call, int msgtype, q931_ie *ie, int len)
 {
 	call->causeloc = ie->data[0] & 0xf;
 	call->causecode = (ie->data[0] & 0x60) >> 5;
@@ -1806,7 +1806,7 @@
 	return 0;
 }
 
-static FUNC_SEND(transmit_cause)
+static int transmit_cause(int full_ie, struct pri *pri, q931_call *call, int msgtype, q931_ie *ie, int len, int order)
 {
 	/* We are ready to transmit single IE only */
 	if (order > 1)
@@ -1822,19 +1822,19 @@
 	}
 }
 
-static FUNC_DUMP(dump_sending_complete)
+static void dump_sending_complete(int full_ie, struct pri *pri, q931_ie *ie, int len, char prefix)
 {
 	pri_message(pri, "%c Sending Complete (len=%2d)\n", prefix, len);
 }
 
-static FUNC_RECV(receive_sending_complete)
+static int receive_sending_complete(int full_ie, struct pri *pri, q931_call *call, int msgtype, q931_ie *ie, int len)
 {
 	/* We've got a "Complete" message: Exect no further digits. */
 	call->complete = 1; 
 	return 0;
 }
 
-static FUNC_SEND(transmit_sending_complete)
+static int transmit_sending_complete(int full_ie, struct pri *pri, q931_call *call, int msgtype, q931_ie *ie, int len, int order)
 {
 	if ((pri->overlapdial && call->complete) || /* Explicit */
 		(!pri->overlapdial && ((pri->switchtype == PRI_SWITCH_EUROISDN_E1) || 
@@ -1875,18 +1875,18 @@
 	return code2str(info, notifies, sizeof(notifies) / sizeof(notifies[0]));
 }
 
-static FUNC_DUMP(dump_notify)
+static void dump_notify(int full_ie, struct pri *pri, q931_ie *ie, int len, char prefix)
 {
 	pri_message(pri, "%c Notification indicator (len=%2d): Ext: %d  %s (%d)\n", prefix, len, ie->data[0] >> 7, notify2str(ie->data[0] & 0x7f), ie->data[0] & 0x7f);
 }
 
-static FUNC_RECV(receive_notify)
+static int receive_notify(int full_ie, struct pri *pri, q931_call *call, int msgtype, q931_ie *ie, int len)
 {
 	call->notify = ie->data[0] & 0x7F;
 	return 0;
 }
 
-static FUNC_SEND(transmit_notify)
+static int transmit_notify(int full_ie, struct pri *pri, q931_call *call, int msgtype, q931_ie *ie, int len, int order)
 {
 	if (call->notify >= 0) {
 		ie->data[0] = 0x80 | call->notify;
@@ -1895,7 +1895,7 @@
 	return 0;
 }
 
-static FUNC_DUMP(dump_shift)
+static void dump_shift(int full_ie, struct pri *pri, q931_ie *ie, int len, char prefix)
 {
 	pri_message(pri, "%c %sLocking Shift (len=%02d): Requested codeset %d\n", prefix, (full_ie & 8) ? "Non-" : "", len, full_ie & 7);
 }
@@ -1932,18 +1932,18 @@
 	return code2str(info, lineinfo, sizeof(lineinfo) / sizeof(lineinfo[0]));
 }
 
-static FUNC_DUMP(dump_line_information)
+static void dump_line_information(int full_ie, struct pri *pri, q931_ie *ie, int len, char prefix)
 {
 	pri_message(pri, "%c Originating Line Information (len=%02d): %s (%d)\n", prefix, len, lineinfo2str(ie->data[0]), ie->data[0]);
 }
 
-static FUNC_RECV(receive_line_information)
+static int receive_line_information(int full_ie, struct pri *pri, q931_call *call, int msgtype, q931_ie *ie, int len)
 {
 	call->ani2 = ie->data[0];
 	return 0;
 }
 
-static FUNC_SEND(transmit_line_information)
+static int transmit_line_information(int full_ie, struct pri *pri, q931_call *call, int msgtype, q931_ie *ie, int len, int order)
 {
 #if 0	/* XXX Is this IE possible for 4ESS only? XXX */
 	if(pri->switchtype == PRI_SWITCH_ATT4ESS) {
@@ -1982,7 +1982,7 @@
 	return code2str(type, gdtype, sizeof(gdtype) / sizeof(gdtype[0]));
 }
 
-static FUNC_DUMP(dump_generic_digits)
+static void dump_generic_digits(int full_ie, struct pri *pri, q931_ie *ie, int len, char prefix)
 {
 	int encoding;
 	int type;
@@ -2028,7 +2028,7 @@
 	pri_message(pri, "\n");
 }
 
-static FUNC_RECV(receive_generic_digits)
+static int receive_generic_digits(int full_ie, struct pri *pri, q931_call *call, int msgtype, q931_ie *ie, int len)
 {
 	int encoding;
 	int type;
@@ -2103,7 +2103,7 @@
 	return 0;
 }
 
-static FUNC_SEND(transmit_generic_digits)
+static int transmit_generic_digits(int full_ie, struct pri *pri, q931_call *call, int msgtype, q931_ie *ie, int len, int order)
 {
 #if 0	/* XXX Is this IE possible for other switches? XXX */
 	if (order > 1)
@@ -2148,7 +2148,7 @@
 }
 
 
-static FUNC_DUMP(dump_signal)
+static void dump_signal(int full_ie, struct pri *pri, q931_ie *ie, int len, char prefix)
 {
 	pri_message(pri, "%c Signal (len=%02d): ", prefix, len);
 	if (len < 3) {
@@ -2158,7 +2158,7 @@
 	pri_message(pri, "Signal %s (%d)\n", signal2str(ie->data[0]), ie->data[0]);
 }
 
-static FUNC_DUMP(dump_transit_count)
+static void dump_transit_count(int full_ie, struct pri *pri, q931_ie *ie, int len, char prefix)
 {
 	/* Defined in ECMA-225 */
 	pri_message(pri, "%c Transit Count (len=%02d): ", prefix, len);




More information about the libpri-commits mailing list