[libpri-commits] rmudgett: branch rmudgett/link_q931 r2033 - /team/rmudgett/link_q931/
SVN commits to the libpri project
libpri-commits at lists.digium.com
Fri Oct 15 14:21:52 CDT 2010
Author: rmudgett
Date: Fri Oct 15 14:21:48 2010
New Revision: 2033
URL: http://svnview.digium.com/svn/libpri?view=rev&rev=2033
Log:
Validate the call ptr instead so I don't need a link anymore.
Modified:
team/rmudgett/link_q931/pri_facility.c
Modified: team/rmudgett/link_q931/pri_facility.c
URL: http://svnview.digium.com/svn/libpri/team/rmudgett/link_q931/pri_facility.c?view=diff&rev=2033&r1=2032&r2=2033
==============================================================================
--- team/rmudgett/link_q931/pri_facility.c (original)
+++ team/rmudgett/link_q931/pri_facility.c Fri Oct 15 14:21:48 2010
@@ -2556,9 +2556,9 @@
switch (reason) {
case APDU_CALLBACK_REASON_MSG_RESULT:
-/* BUGBUG need a link here */
- call_2 = q931_find_call(ctrl, apdu->response.user.value);
- if (!call_2) {
+ call_2 = apdu->response.user.ptr;
+ if (!q931_is_call_valid(ctrl, call_2)) {
+ /* Call is no longer present. */
break;
}
@@ -2637,7 +2637,7 @@
response.invoke_id = ctrl->last_invoke;
response.timeout_time = ctrl->timers[PRI_TIMER_T_RESPONSE];
response.callback = etsi_ect_link_id_rsp;
- response.user.value = call_2->cr;
+ response.user.ptr = call_2;
/* Remember that if we queue a facility IE for a facility message we
* have to explicitly send the facility message ourselves */
More information about the libpri-commits
mailing list