With libpri, to avoid sending DISPLAY IE, set the opts param to omit_display

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@701 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
Mathieu Rene
2009-03-19 20:15:39 +00:00
parent 79da28cdd7
commit a6672fc558
3 changed files with 35 additions and 16 deletions

View File

@@ -1956,12 +1956,12 @@ static switch_status_t load_config(void)
const char *o_switch = "dms100";
const char *o_dp = "unknown";
const char *o_l1 = "ulaw";
const char *o_debug = NULL;
const char *o_debug = "none";
const char* opts = "none";
uint32_t span_id = 0;
zap_span_t *span = NULL;
uint32_t opts = 0;
for (param = switch_xml_child(myspan, "param"); param; param = param->next) {
char *var = (char *) switch_xml_attr_soft(param, "name");
@@ -1979,8 +1979,8 @@ static switch_status_t load_config(void)
o_debug = val;
} else if (!strcasecmp(var, "context")) {
context = val;
} else if (!strcasecmp(var, "suggest-channel") && switch_true(val)) {
opts |= 1;
} else if (!strcasecmp(var, "opts")) {
opts = val;
} else if (!strcasecmp(var, "dialplan")) {
dialplan = val;
}