diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-03-02 22:22:50 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-03-02 22:22:50 +0100 |
commit | 3c8b0f89aa2878d4a1545ece0997a0ca6f73b5aa (patch) | |
tree | 42819425557682d20cea10d00c106c9326c112d0 /src/mgcp_ss7.c | |
parent | 7e8ee3a4be86be614a6edd4e41d4d5bffdcf8a46 (diff) |
mgcp: Use the blocked attribute to figure out if an endpoint is blocked
Diffstat (limited to 'src/mgcp_ss7.c')
-rw-r--r-- | src/mgcp_ss7.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mgcp_ss7.c b/src/mgcp_ss7.c index c047108..2c93084 100644 --- a/src/mgcp_ss7.c +++ b/src/mgcp_ss7.c @@ -74,8 +74,8 @@ static int select_voice_port(struct mgcp_endpoint *endp) int timeslot, multiplex; mgcp_endpoint_to_timeslot(ENDPOINT_NUMBER(endp), &multiplex, ×lot); - if (timeslot == 0x0 || timeslot == 0x1F) { - LOGP(DMGCP, LOGL_ERROR, "0x0 and 0x1F are reserved for signalling.\n"); + if (endp->blocked) { + LOGP(DMGCP, LOGL_ERROR, "Timeslot 0x%x is blocked.\n", timeslot); return -1; } |