mgcp: Enable the tap after configuring it...
This commit is contained in:
parent
260d6ed02c
commit
0e01d09500
|
@ -351,6 +351,7 @@ DEFUN(tap_call,
|
||||||
memset(&tap->forward, 0, sizeof(tap->forward));
|
memset(&tap->forward, 0, sizeof(tap->forward));
|
||||||
inet_aton(argv[2], &tap->forward.sin_addr);
|
inet_aton(argv[2], &tap->forward.sin_addr);
|
||||||
tap->forward.sin_port = htons(atoi(argv[3]));
|
tap->forward.sin_port = htons(atoi(argv[3]));
|
||||||
|
tap->enabled = 1;
|
||||||
return CMD_SUCCESS;
|
return CMD_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue