gX in the dialstring may be a list of groups or a range.

This commit is contained in:
MelwareDE 2005-07-03 12:15:14 +00:00
parent 511e30e401
commit 32448a4482
2 changed files with 7 additions and 3 deletions

6
README
View File

@ -72,7 +72,11 @@ This chan_capi version includes:
Now it is: Dial(CAPI/g<group>/[b|B]<destination>)
Or: Dial(CAPI/contr<controller>/[b|B]<destination>)
'group' can be a value, comma separated list of values or a range
using '-'. The according interface is found by searching a match with
the 'group' specified in the capi.conf for each interface.
CLIP/CLIR now uses the calling presentation of the calling channel, which can
be modified using the CallingPres() application. Use CallingPres(32) for CLIR.
That is why the msn= param in capi.conf is now obsolete. The callerID is also

View File

@ -1350,7 +1350,7 @@ struct ast_channel *capi_request(char *type, int format, void *data)
if (((char *)interface)[0] == 'g') {
interface++;
capigroup = atoi(interface);
capigroup = ast_get_group(interface);
cc_ast_verbose(1, 1, VERBOSE_PREFIX_3 "capi request group = %d\n",
capigroup);
} else if (!strncmp(interface, "contr", 5)) {
@ -1382,7 +1382,7 @@ struct ast_channel *capi_request(char *type, int format, void *data)
foundcontroller = controller;
} else {
/* DIAL(CAPI/gX/...) */
if (!(i->group & (1 << capigroup))) {
if (!(i->group & capigroup)) {
/* keep on running! */
ast_mutex_unlock(&contrlock);
continue;