Add PacketCable NCS 1.0 support for Docsis/Eurodocsis networks
(closes issue #12950) Reported by: alea-soluciones Patches: ncs-pktccops-12950-r206803.patch uploaded by alea-soluciones (license 514) Tested by: alea-soluciones, adomjan, urtho, nahuelgreco git-svn-id: http://svn.digium.com/svn/asterisk/trunk@227049 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
0213b3cdb2
commit
21f12d5255
2
CHANGES
2
CHANGES
|
@ -67,6 +67,8 @@ MGCP Changes
|
||||||
* Added ability to preset channel variables on indicated lines with the setvar
|
* Added ability to preset channel variables on indicated lines with the setvar
|
||||||
configuration option. Also, clearvars=all resets the list of variables back
|
configuration option. Also, clearvars=all resets the list of variables back
|
||||||
to none.
|
to none.
|
||||||
|
* PacketCable NCS 1.0 support has been added for Docsis/Eurodocsis Networks.
|
||||||
|
See configs/res_pktccops.conf for more information.
|
||||||
|
|
||||||
Applications
|
Applications
|
||||||
------------
|
------------
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -11,6 +11,11 @@
|
||||||
;cos=3 ; Sets 802.1p priority for signaling packets.
|
;cos=3 ; Sets 802.1p priority for signaling packets.
|
||||||
;cos_audio=5 ; Sets 802.1p priority for RTP audio packets.
|
;cos_audio=5 ; Sets 802.1p priority for RTP audio packets.
|
||||||
|
|
||||||
|
;---------------------- DIGIT TIMEOUTS ----------------------------
|
||||||
|
firstdigittimeout = 30000 ; default 16000 = 16s
|
||||||
|
gendigittimeout = 10000 ; default 8000 = 8s
|
||||||
|
matchdigittimeout = 5000 ; defaults 3000 = 3s
|
||||||
|
|
||||||
;------------------------------ JITTER BUFFER CONFIGURATION --------------------------
|
;------------------------------ JITTER BUFFER CONFIGURATION --------------------------
|
||||||
; jbenable = yes ; Enables the use of a jitterbuffer on the receiving side of a
|
; jbenable = yes ; Enables the use of a jitterbuffer on the receiving side of a
|
||||||
; MGCP channel. Defaults to "no". An enabled jitterbuffer will
|
; MGCP channel. Defaults to "no". An enabled jitterbuffer will
|
||||||
|
@ -111,3 +116,20 @@
|
||||||
;transfer = no
|
;transfer = no
|
||||||
;dtmfmode = inband
|
;dtmfmode = inband
|
||||||
;line => aaln/2 ; now lets save this config to line2 aka aaln/2
|
;line => aaln/2 ; now lets save this config to line2 aka aaln/2
|
||||||
|
|
||||||
|
; PacketCable
|
||||||
|
;[sbv5121e-mta.test.local]
|
||||||
|
;host = 10.0.1.3
|
||||||
|
;callwaiting = 1
|
||||||
|
;canreinvite = 1
|
||||||
|
;dtmfmode = rfc2833
|
||||||
|
;amaflags = BILLING
|
||||||
|
;ncs = yes ; Use NCS 1.0 signalling
|
||||||
|
;pktcgatealloc = yes ; Allocate DQOS gate on CMTS
|
||||||
|
;hangupongateremove = yes ; Hangup the channel if the CMTS close the gate
|
||||||
|
;callerid = 3622622225
|
||||||
|
;accountcode = test-3622622225
|
||||||
|
;line = aaln/1
|
||||||
|
;callerid = 3622622226
|
||||||
|
;accountcode = test-3622622226
|
||||||
|
;line = aaln/2
|
||||||
|
|
|
@ -0,0 +1,32 @@
|
||||||
|
; Sample res_pktccops.conf
|
||||||
|
|
||||||
|
[general]
|
||||||
|
gateinfoperiod => 60 ; default 60s
|
||||||
|
gatetimeout = 150 ; default 150
|
||||||
|
t1 => 250 ; default 250s
|
||||||
|
t7 => 200 ; default 200s
|
||||||
|
t8 => 300 ; default 300s
|
||||||
|
keepalive => 60 ; default 60s
|
||||||
|
|
||||||
|
[teszt]
|
||||||
|
host => 192.168.0.24
|
||||||
|
pool => 10.0.1.0 10.0.1.255
|
||||||
|
pool => 10.0.3.0 10.0.3.255
|
||||||
|
pool => 10.0.7.0 10.0.8.255
|
||||||
|
pool => 10.0.10.0 10.0.11.255
|
||||||
|
|
||||||
|
[general]
|
||||||
|
gateinfoperiod => 60 ; default 60s
|
||||||
|
gatetimeout = 150 ; default 150
|
||||||
|
t1 => 250 ; default 250s
|
||||||
|
t7 => 200 ; default 200s
|
||||||
|
t8 => 300 ; default 300s
|
||||||
|
keepalive => 60 ; default 60s
|
||||||
|
|
||||||
|
[test]
|
||||||
|
host => 192.168.0.24
|
||||||
|
pool => 10.0.1.0 10.0.1.255
|
||||||
|
pool => 10.0.3.0 10.0.3.255
|
||||||
|
pool => 10.0.7.0 10.0.8.255
|
||||||
|
pool => 10.0.10.0 10.0.11.255
|
||||||
|
|
|
@ -0,0 +1,82 @@
|
||||||
|
/*
|
||||||
|
* Asterisk -- An open source telephony toolkit.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2009, Attila Domjan
|
||||||
|
*
|
||||||
|
* Attila Domjan <attila.domjan.hu@gmail.com>
|
||||||
|
*
|
||||||
|
* See http://www.asterisk.org for more information about
|
||||||
|
* the Asterisk project. Please do not directly contact
|
||||||
|
* any of the maintainers of this project for assistance;
|
||||||
|
* the project provides a web site, mailing lists and IRC
|
||||||
|
* channels for your use.
|
||||||
|
*
|
||||||
|
* This program is free software, distributed under the terms of
|
||||||
|
* the GNU General Public License Version 2. See the LICENSE file
|
||||||
|
* at the top of the source tree.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*! \file
|
||||||
|
*
|
||||||
|
* \brief PacketCable COPS
|
||||||
|
*
|
||||||
|
* \author Attila Domjan <attila.domjan.hu@gmail.com>
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef _ASTERISK_PKTCCOPS_H
|
||||||
|
#define _ASTERISK_PKTCCOPS_H
|
||||||
|
|
||||||
|
#include "asterisk/optional_api.h"
|
||||||
|
|
||||||
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
enum {
|
||||||
|
GATE_SET,
|
||||||
|
GATE_INFO,
|
||||||
|
GATE_SET_HAVE_GATEID,
|
||||||
|
GATE_DEL
|
||||||
|
};
|
||||||
|
|
||||||
|
enum {
|
||||||
|
GATE_ALLOC_FAILED,
|
||||||
|
GATE_ALLOC_PROGRESS,
|
||||||
|
GATE_ALLOCATED,
|
||||||
|
GATE_CLOSED,
|
||||||
|
GATE_CLOSED_ERR,
|
||||||
|
GATE_OPEN,
|
||||||
|
GATE_DELETED,
|
||||||
|
GATE_TIMEOUT
|
||||||
|
};
|
||||||
|
|
||||||
|
struct cops_gate {
|
||||||
|
AST_LIST_ENTRY(cops_gate) list;
|
||||||
|
uint32_t gateid;
|
||||||
|
uint16_t trid;
|
||||||
|
time_t in_transaction;
|
||||||
|
uint32_t mta;
|
||||||
|
int state;
|
||||||
|
time_t allocated;
|
||||||
|
time_t checked;
|
||||||
|
time_t deltimer;
|
||||||
|
struct cops_cmts *cmts;
|
||||||
|
int (* got_dq_gi) (struct cops_gate *gate);
|
||||||
|
int (* gate_remove) (struct cops_gate *gate);
|
||||||
|
int (* gate_open) (struct cops_gate *gate);
|
||||||
|
void *tech_pvt;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
AST_OPTIONAL_API(struct cops_gate *, ast_pktccops_gate_alloc,
|
||||||
|
(int cmd, struct cops_gate *gate, uint32_t mta, uint32_t actcount,
|
||||||
|
float bitrate, uint32_t psize, uint32_t ssip, uint16_t ssport,
|
||||||
|
int (* const got_dq_gi) (struct cops_gate *gate),
|
||||||
|
int (* const gate_remove) (struct cops_gate *gate)),
|
||||||
|
{ return NULL; });
|
||||||
|
|
||||||
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* _ASTERISK_PKTCCOPS_H */
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue