Fixed handling of sending_complete in pbx_capi_call() when overlap dialing

is activated.
This commit is contained in:
MelwareDE 2008-01-14 13:23:58 +00:00
parent 84550afacf
commit 66a3ad0ede
1 changed files with 6 additions and 3 deletions

View File

@ -1313,12 +1313,15 @@ static int pbx_capi_call(struct ast_channel *c, char *idest, int timeout)
cc_verbose(4, 0, VERBOSE_PREFIX_2 "%s: is digital call, set proto to TRANSPARENT\n",
i->vname);
}
if ((i->doOverlap) && (strlen(dest))) {
cc_copy_string(i->overlapdigits, dest, sizeof(i->overlapdigits));
if ((i->doOverlap) || (!strlen(dest))) {
called[0] = 1;
sending_complete = "\x00";
if (strlen(dest)) {
cc_copy_string(i->overlapdigits, dest, sizeof(i->overlapdigits));
} else {
i->doOverlap = 0;
}
} else {
i->doOverlap = 0;
called[0] = strlen(dest) + 1;
sending_complete = "\x02\x01\x00";
}