提交 35fb1f54 authored 作者: Anthony Minessale's avatar Anthony Minessale

add leading m:<delim>: to change delim on inline dp eg…

add leading m:<delim>: to change delim on inline dp eg m:^:set:foo=bar^set=blah=true to put an end to Vagabond's suffering

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16526 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 d14bffee
......@@ -46,6 +46,7 @@ SWITCH_STANDARD_DIALPLAN(inline_dialplan_hunt)
int x = 0;
char *lbuf;
char *target = arg;
char delim = ',';
if (!caller_profile) {
caller_profile = switch_channel_get_caller_profile(channel);
......@@ -59,12 +60,19 @@ SWITCH_STANDARD_DIALPLAN(inline_dialplan_hunt)
target = caller_profile->destination_number;
}
if (!zstr(target) && (lbuf = switch_core_session_strdup(session, target))
&& (argc = switch_separate_string(lbuf, ',', argv, (sizeof(argv) / sizeof(argv[0]))))) {
} else {
if (zstr(target)) {
return NULL;
} else {
lbuf = switch_core_session_strdup(session, target);
}
if (*lbuf == 'm' && *(lbuf + 1) == ':' && *(lbuf + 3) == ':') {
delim = *(lbuf + 2);
lbuf += 4;
}
argc = switch_separate_string(lbuf, delim, argv, (sizeof(argv) / sizeof(argv[0])));
for (x = 0; x < argc; x++) {
char *app = argv[x];
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论