added lock for sending messages to avoid double sending. shuffled some empty_chans after the cb_event calls, this avoids that a release_complete from a quite different call releases a fresh created setup by accident.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61770 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Christian Richter
2007-04-24 13:50:05 +00:00
parent 3682e51ba7
commit f1edea1129
3 changed files with 66 additions and 39 deletions

View File

@@ -24,6 +24,10 @@
ibuffer_t *astbuf;
ibuffer_t *misdnbuf;
struct send_lock {
pthread_mutex_t lock;
};
struct isdn_msg {
unsigned long misdn_msg;