- when 'o' option is used for overlap dialing, don't send any digits

with the CONNECT_REQ. This gives better progress together with 'b'.
This commit is contained in:
MelwareDE 2005-10-01 17:00:56 +00:00
parent b65c13d415
commit e6911c60e8
2 changed files with 7 additions and 6 deletions

7
README
View File

@ -77,9 +77,10 @@ The Dial string
The string consists of a list of characters with the following meaning:
'b' : early B3 always.
'B' : early B3 on successful calls only.
'o' : use overlap sending of number if number is longer than 2 digits
(This is useful, when further digits shall be send to complete the
destination address).
'o' : use overlap sending of number.
(Useful if additional digits shall be send afterwards or together
with 'b' to get dialtone and then send the number, e.g. if otherwise
no progress tones are available)
If the <interface-name> is used in dialstring, be sure the name (specified
in capi.conf) does not start with 'contr' or 'g'.

View File

@ -938,9 +938,9 @@ static int capi_call(struct ast_channel *c, char *idest, int timeout)
#else
CONNECT_REQ_CIPVALUE(&CMSG) = 0x10; /* Telephony */
#endif
if ((i->doOverlap) && (strlen(dest) > 2)) {
strncpy(i->overlapdigits, dest + 2, sizeof(i->overlapdigits) - 1);
called[0] = 3;
if ((i->doOverlap) && (strlen(dest))) {
strncpy(i->overlapdigits, dest, sizeof(i->overlapdigits) - 1);
called[0] = 1;
} else {
called[0] = strlen(dest) + 1;
}