*
* Implementation of Media Gateway Control Protocol
*
- * Copyright (C) 1999, Mark Spencer
+ * Copyright (C) 1999-2004, Digium, Inc.
*
- * Mark Spencer <markster@linux-support.net>
+ * Mark Spencer <markster@digium.com>
*
* This program is free software, distributed under the terms of
* the GNU General Public License
}
if (sub) {
ast_mutex_lock(&sub->lock);
- if (sub->rtp) {
- res = ast_rtp_write(sub->rtp, frame);
+ if ((sub->parent->sub == sub) || !sub->parent->singlepath) {
+ if (sub->rtp) {
+ res = ast_rtp_write(sub->rtp, frame);
+ }
}
ast_mutex_unlock(&sub->lock);
}
e->callreturn = callreturn;
e->cancallforward = cancallforward;
e->canreinvite = canreinvite;
+ e->singlepath = singlepath;
e->callwaiting = callwaiting;
e->slowsequence = slowsequence;
e->transfer = transfer;