place where it was used.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48476
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
struct chanmon;
-#define LOAD_OH(oh) { \
- oh.context = context; \
- oh.exten = exten; \
- oh.priority = priority; \
- oh.cid_num = cid_num; \
- oh.cid_name = cid_name; \
- oh.account = account; \
- oh.vars = vars; \
- oh.parent_channel = NULL; \
-}
-
struct outgoing_helper {
const char *context;
const char *exten;
pthread_attr_t attr;
if (sync) {
- LOAD_OH(oh);
+ oh.context = context;
+ oh.exten = exten;
+ oh.priority = priority;
+ oh.cid_num = cid_num;
+ oh.cid_name = cid_name;
+ oh.account = account;
+ oh.vars = vars;
+ oh.parent_channel = NULL;
+
chan = __ast_request_and_dial(type, format, data, timeout, reason, cid_num, cid_name, &oh);
if (channel) {
*channel = chan;