]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Add Facility IE handling on incoming SETUP messages to national too
authorStefan Knoblich <stkn@freeswitch.org>
Mon, 8 Sep 2008 21:34:08 +0000 (21:34 +0000)
committerStefan Knoblich <stkn@freeswitch.org>
Mon, 8 Sep 2008 21:34:08 +0000 (21:34 +0000)
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@546 a93c3328-9c30-0410-af19-c9cd2b2d52af

libs/openzap/src/isdn/nationalStateNT.c
libs/openzap/src/isdn/nationalmes.c

index 48d649f2df050ad6cbd414924673868b5beb11b3..6b6aa305d644fdad5ee52ad4f25761530a5809a0 100644 (file)
@@ -118,6 +118,9 @@ void nationalCreateNT(L3UCHAR i)
        Q931SetIEProc(Q931ie_USER_USER,                        i, Q931Pie_UserUser,      Q931Uie_UserUser);
        Q931SetIEProc(Q931ie_GENERIC_DIGITS,                   i, Q931Pie_GenericDigits, Q931Uie_GenericDigits);
 
+       Q931SetIEProc(Q931ie_CONNECTED_NUMBER, i, Q931Pie_Generic, Q931Uie_Generic);
+       Q931SetIEProc(Q931ie_FACILITY,         i, Q931Pie_Generic, Q931Uie_Generic);
+
        /* The following define a state machine. The point is that the Message  */
        /* procs can when search this to find out if the message/state                  */
        /* combination is legale. If not, the proc for unexpected message apply.*/
index 5ef69014b53296f88b7d0c1445dd9dd90462fb36..8d75760c8e9b509375d9464c5bfb29bf4bccef67 100644 (file)
@@ -91,6 +91,7 @@ L3INT nationalUmes_Setup(Q931_TrunkInfo_t *pTrunk, L3UCHAR *IBuf, Q931mes_Generi
                        case Q931ie_TRANSIT_NETWORK_SELECTION:
                        case Q931ie_LOW_LAYER_COMPATIBILITY:
                        case Q931ie_HIGH_LAYER_COMPATIBILITY:
+                       case Q931ie_FACILITY:
                                rc = Q931Uie[pTrunk->Dialect][IBuf[IOff]](pTrunk, mes, &IBuf[IOff], &mes->buf[OOff], &IOff, &OOff);
                                if (rc != Q931E_NO_ERROR) 
                                        return rc;