[thirdparty-commits] rmudgett: mISDNuser/trunk r130 - in /mISDNuser/trunk/i4lnet: net_l3.c net_l3.h

SVN commits to the Digium third-party software repository thirdparty-commits at lists.digium.com
Fri Aug 14 10:28:55 CDT 2009


Author: rmudgett
Date: Fri Aug 14 10:28:51 2009
New Revision: 130

URL: http://svn.asterisk.org/svn-view/thirdparty?view=rev&rev=130
Log:
mISDN/mISDNuser must allow called party number and subaddress ies in FACILITY messages.

Several supplementary service FACILITY messages need the called party
number and called party subaddress ies to be present (e.g., AOC and
StatusRequest).  Some network switches choke when these messages get a
STATUS message as a response.

JIRA ABE-1941

Modified:
    mISDNuser/trunk/i4lnet/net_l3.c
    mISDNuser/trunk/i4lnet/net_l3.h

Modified: mISDNuser/trunk/i4lnet/net_l3.c
URL: http://svn.asterisk.org/svn-view/thirdparty/mISDNuser/trunk/i4lnet/net_l3.c?view=diff&rev=130&r1=129&r2=130
==============================================================================
--- mISDNuser/trunk/i4lnet/net_l3.c (original)
+++ mISDNuser/trunk/i4lnet/net_l3.c Fri Aug 14 10:28:51 2009
@@ -657,6 +657,10 @@
 		find_and_copy_ie(msg->data, msg->len, IE_FACILITY, 0, umsg);
 	fac->DISPLAY =
 		find_and_copy_ie(msg->data, msg->len, IE_DISPLAY, 0, umsg);
+	fac->CALLED_PN =
+		find_and_copy_ie(msg->data, msg->len, IE_CALLED_PN, 0, umsg);
+	fac->CALLED_SUB =
+		find_and_copy_ie(msg->data, msg->len, IE_CALLED_SUB, 0, umsg);
 	if (mISDN_l3up(pc, umsg))
 		free_msg(umsg);
 }
@@ -1956,6 +1960,10 @@
 			return;
 		if (fac->DISPLAY)
 			AddvarIE(pc, IE_DISPLAY, fac->DISPLAY);
+		if (fac->CALLED_PN)
+			AddvarIE(pc, IE_CALLED_PN, fac->CALLED_PN);
+		if (fac->CALLED_SUB)
+			AddvarIE(pc, IE_CALLED_SUB, fac->CALLED_SUB);
 		SendMsg(pc, -1);
 	}
 }

Modified: mISDNuser/trunk/i4lnet/net_l3.h
URL: http://svn.asterisk.org/svn-view/thirdparty/mISDNuser/trunk/i4lnet/net_l3.h?view=diff&rev=130&r1=129&r2=130
==============================================================================
--- mISDNuser/trunk/i4lnet/net_l3.h (original)
+++ mISDNuser/trunk/i4lnet/net_l3.h Fri Aug 14 10:28:51 2009
@@ -387,6 +387,8 @@
 typedef struct _FACILITY {
 	u_char *FACILITY;
 	u_char *DISPLAY;
+	u_char *CALLED_PN;
+	u_char *CALLED_SUB;
 } FACILITY_t;
 
 typedef struct _REGISTER {




More information about the thirdparty-commits mailing list