diff options
author | Christian Richter <christian.richter@beronet.com> | 2006-02-15 19:32:45 +0000 |
---|---|---|
committer | Christian Richter <christian.richter@beronet.com> | 2006-02-15 19:32:45 +0000 |
commit | f6bd1b8559e6dfb7f12fe797a1fac0ff9fe3c36c (patch) | |
tree | 1366bf804725d662a11ee78940a3103fdca18c91 /channels/misdn/isdn_lib.c | |
parent | 5f3af13a97cd6a9a10cb34f00ff3f5da7407c388 (diff) |
added pmp_l1_check option, to avoid l1 checking for group calls on PMP ports
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10225 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/misdn/isdn_lib.c')
-rw-r--r-- | channels/misdn/isdn_lib.c | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/channels/misdn/isdn_lib.c b/channels/misdn/isdn_lib.c index 8605bff90..ee0e988de 100644 --- a/channels/misdn/isdn_lib.c +++ b/channels/misdn/isdn_lib.c @@ -1460,27 +1460,25 @@ int misdn_lib_send_facility(struct misdn_bchannel *bc, enum facility_type fac, v } -int misdn_lib_port_up(int port) +int misdn_lib_port_up(int port, int check) { struct misdn_stack *stack; - + + for (stack=glob_mgr->stack_list; stack; stack=stack->next) { + if ( !stack->ptp && !check) return 1; + if (stack->port == port) { - if (stack->nt) { - if (stack->l1link) - return 1; - else - return 0; - } else { - if (stack->l1link) - return 1; - else - return 0; + if (stack->l1link) + return 1; + else { + cb_log(-1,port, "Port down [%s]\n", + stack->ptp?"PP":"PMP"); + return 0; } - } } |