[asterisk-commits] file: trunk r49573 - in /trunk: ./
channels/chan_iax2.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Thu Jan 4 16:02:33 MST 2007
Author: file
Date: Thu Jan 4 17:02:32 2007
New Revision: 49573
URL: http://svn.digium.com/view/asterisk?view=rev&rev=49573
Log:
Merged revisions 49568 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r49568 | file | 2007-01-04 18:00:50 -0500 (Thu, 04 Jan 2007) | 2 lines
It's possible for the iax2 pvt to disappear, so if it has... don't bother looking for dpentries.
........
Modified:
trunk/ (props changed)
trunk/channels/chan_iax2.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.
Modified: trunk/channels/chan_iax2.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_iax2.c?view=diff&rev=49573&r1=49572&r2=49573
==============================================================================
--- trunk/channels/chan_iax2.c (original)
+++ trunk/channels/chan_iax2.c Thu Jan 4 17:02:32 2007
@@ -7122,11 +7122,13 @@
}
}
}
- AST_LIST_LOCK(&dpcache);
- AST_LIST_TRAVERSE(&iaxs[fr->callno]->dpentries, dp, peer_list)
- if (!(dp->flags & CACHE_FLAG_TRANSMITTED))
- iax2_dprequest(dp, fr->callno);
- AST_LIST_UNLOCK(&dpcache);
+ if (iaxs[fr->callno]) {
+ AST_LIST_LOCK(&dpcache);
+ AST_LIST_TRAVERSE(&iaxs[fr->callno]->dpentries, dp, peer_list)
+ if (!(dp->flags & CACHE_FLAG_TRANSMITTED))
+ iax2_dprequest(dp, fr->callno);
+ AST_LIST_UNLOCK(&dpcache);
+ }
break;
case IAX_COMMAND_POKE:
/* Send back a pong packet with the original timestamp */
More information about the asterisk-commits
mailing list