]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
tweak the state stuff
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 14 Jun 2007 01:54:51 +0000 (01:54 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 14 Jun 2007 01:54:51 +0000 (01:54 +0000)
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@253 a93c3328-9c30-0410-af19-c9cd2b2d52af

libs/openzap/src/isdn/Q931StateTE.c

index 2b81d2dcf7ffb58a8cbedfdee09f5590f2156e7b..55ba103eb5d4f6793ccad8317bf037f6d6fcca31 100644 (file)
@@ -761,7 +761,12 @@ L3INT Q931ProcReleaseTE(Q931_TrunkInfo_t *pTrunk, L3UCHAR * buf, L3INT iFrom)
     Q931mes_Generic *pMes = (Q931mes_Generic *)&buf[Q931L4HeaderSpace];
     L3INT state = Q931GetCallState(pTrunk, pMes->CRV);
     L3INT ret = Q931E_NO_ERROR;
-    if(state == Q931_U0 && iFrom == 2)
+    if(iFrom == 4)
+               {
+                       /* TODO Add proc here*/
+                       ret = Q931Tx32(pTrunk,buf,pMes->Size);
+               }
+       else if(state == Q931_U0 && iFrom == 2)
     {
         ret = Q931ReleaseComplete(pTrunk, iFrom);
     }
@@ -785,7 +790,8 @@ L3INT Q931ProcReleaseCompleteTE(Q931_TrunkInfo_t *pTrunk, L3UCHAR * buf, L3INT i
     L3INT ret = Q931E_NO_ERROR;
     if(state == Q931_U0 && iFrom == 2)
     {
-        /* no action */
+        /* TODO Add proc here*/
+               ret = Q931Tx34(pTrunk,buf,pMes->Size);
     }
        return ret;
 }