한국어

소프트스위치

온누리070 플레이스토어 다운로드
    acrobits softphone
     온누리 070 카카오 프러스 친구추가온누리 070 카카오 프러스 친구추가친추
     카카오톡 채팅 상담 카카오톡 채팅 상담카톡
    
     라인상담
     라인으로 공유

     페북공유

   ◎위챗 : speedseoul


  
     PAYPAL
     
     PRICE
     

pixel.gif

    before pay call 0088 from app


https://code.google.com/p/homer/wiki/OpenSIPS


OpenSIPS as Homer Capture server

Homer's sipcapture module allows OpenSIPS to operate as a robust and scalable SIP sampling/capture server with native support for HEPv1/v2, IPIP Encapsulation protocols and switch mirroring/monitoring port traffic. OpenSIPS can be configured either as Capture Agent (siptrace module) sampling and forwarding packets, or as Capture Node (sipcapture module) collecting, indexing and storing SIP packets as received from the available Capture Agents (HEP), SBCs (IPIP) or directly from the ethernet wire.

Capture Agents can be distributed in a modular fashion, allowing support for any network topology. In addition to the integrated sampling and capturing functions in OpenSIPS, a stand-alone capture agent (captagent) is provided enabling HEP encapsulation for unsupported systems and soft-switches. OpenSER/Kamailio and FreeSWITCH users already enjoy integrated HEP mirroring functionality.

 OpenSIPs - config for capture node.

####### Global Parameters #########

debug
=3
log_stderror
=no
log_facility
=LOG_LOCAL0

fork
=yes
children
=5

disable_tcp
=yes
db_default_url
="mysql://opensips:opensipsrw@localhost/opensips"
port
=9060

/* uncomment and configure the following line if you want opensips to
   bind on a specific interface/port/proto (default bind on all available) */

listen
=udp:10.0.0.1:9060

####### Modules Section ########
#set module path
mpath
="/usr/local/lib64/opensips/modules/"

loadmodule
"db_mysql.so"
loadmodule
"sipcapture.so"

####### Routing Logic ########
modparam
("sipcapture", "db_url", "mysql://homer:password@localhost/homer_db")
modparam
("sipcapture", "capture_on", 1)
modparam
("sipcapture", "table_name", "sip_capture")
/* activate HEP capturing */
modparam
("sipcapture", "hep_capture_on", 1)

/* configuration for Mirroring PORT */
modparam
("sipcapture", "raw_socket_listen", "10.0.130.41:5060-6000")
modparam
("sipcapture", "raw_interface", "eth1")
/* activate monitoring port capturing */
modparam
("sipcapture", "raw_moni_capture_on", 1)
modparam
("sipcapture", "raw_sock_children", 4)
/* Promiscious mode */
modparam
("sipcapture", "promiscious_on", 1)

####### Routing Logic ########


# main request routing logic

# Main SIP request routing logic
# - processing of any incoming SIP request starts with this route
route
{
       
#For example, you can capture only needed methods...
       
#if (!(method =~ "^(OPTIONS|NOTIFY|SUBSCRIBE)$"))) {
                sip_capture
();
       
#}
        drop
;
}

onreply_route
{

       
#And only needed reply or needed requests method
       
#if(status =~ "^(1[0-9][0-9]|[3[0-9][0-9]|4[0-9]|[56][0-9][0-9])") {
       
#if(!($rm =~ "^(NOTIFY|SUBSCRIBE|OPTIONS|)$")) {
                sip_capture
();
       
#}
        drop
;
}

 OpenSIPs - config for trace node.

####### Global Parameters #########
debug
=3
log_stderror
=no
log_facility
=LOG_LOCAL0
fork
=yes
children
=4
disable_tcp
=yes
db_default_url
="mysql://opensips:opensipsrw@localhost/opensips"

port
=5060

listen
=udp:192.168.0.1:5060


####### Modules Section ########

#set module path
mpath
="/usr/local/lib64/opensips/modules/"

loadmodule
"signaling.so"
loadmodule
"sl.so"
loadmodule
"tm.so"
loadmodule
"rr.so"
loadmodule
"maxfwd.so"
loadmodule
"textops.so"
loadmodule
"mi_fifo.so"
loadmodule
"siptrace.so"


# ----------------- setting module-specific parameters ---------------

# ----- mi_fifo params -----
modparam
("mi_fifo", "fifo_name", "/tmp/opensips_fifo")
modparam
("rr", "append_fromtag", 0)
modparam
("siptrace", "duplicate_uri", "sip:10.0.0.1:9060")
modparam
("siptrace", "duplicate_with_hep", 1)
modparam
("siptrace", "trace_to_database", 0)
modparam
("siptrace", "trace_flag", 22)
modparam
("siptrace", "trace_on", 1)
#HEPv2 == timestamp will be included to HEP header
modparam
("siptrace", "hep_version", 2)

 
Main SIP request routing logic
# - processing of any incoming SIP request starts with this route
route
{

       
......

        setflag
(22);

       
#Duplicate this sip message to Homer capture node
        sip_trace
();

       
.....
        route
(1);
}

route
[1] {

       
if (!t_relay()) {
                sl_reply_error
();
       
};
       
exit;
}

 Captagent on one SIP server:

./captagent -p 9060 -s 10.0.0.1 -r 5060-5080 -i 333 -H2
usage: captagent <-mvhnc> <-d dev> <-s host> <-p port>
             
<-P pid file> <-r port|portrange> <-f filter file>
             
<-i id> <-H 1|2>
   
-h  is help/usage
   
-v  is version information
   
-m  is don't go into promiscuous mode
   -n  is don'
t go into background
   
-d  is use specified device instead of the pcap default
   
-s  is the capture server
   
-p  is use specified port of capture server
   
-r  is open specified capturing port or portrange instead of the default (5060)
   
-P  is open specified pid file instead of the default (/var/run/captagent.pid)
   
-f  is the file with specific pcap filter
   
-c  is checkout
   
-i  is capture identifity. Must be a 16-bit number. I.e. 101
   
-H  is HEP protocol version [1|2]. By default we use HEP version 1

SIPTRACE on OpenSIPS 1.7.x:

To enable HEP support in siptrace/opensips 1.7.x do the following:

1. Download OpenSIPS SVN head

2. Copy modules/siptrace and modules/sipcapture to the 1.7.1 source tree

3. Modify modules/siptrace/siptrace.c as follows:

        -     if (dlgb.create_dlg(msg,0)<1) {
       
+     if (dlgb.create_dlg(msg)<1) {

4. Recompile the siptrace module:

        # make modules=modules/siptrace modules

NOTE: Module SIPCAPTURE is only used to compile module SIPTRACE and CANNOT be used on OpenSIPS 1.7.x (for Homer Capture always use TRUNK)

조회 수 :
36910
등록일 :
2014.08.13
10:53:33 (*.160.88.200)
엮인글 :
http://www.webs.co.kr/index.php?document_srl=194011&act=trackback&key=06c
게시글 주소 :
http://www.webs.co.kr/index.php?document_srl=194011
List of Articles
번호 제목 글쓴이 조회 수 추천 수sort 날짜
81 OpenSIPS , default script , Types of Routs , Routing in SIP, Video lecture admin 40884   2014-08-13
 
80 Configuracion de Kamailio 3.3 con NAT Traversal y XCAP. admin 36772   2014-08-12
 
79 OpenSIPS/OpenSER-a versatile SIP Server cfg admin 37819   2014-08-11
 
78 Kamailio Nat Traversal using RTPProxy admin 36767   2014-08-11
 
77 MediaProxy Installation Guide admin 39472   2014-08-10
 
76 RTPProxy 1.2.x Installation & Integration with OpenSIPS 1.5x admin 41381   2014-08-10
 
75 Opensips Installation, How to. Good guide wiki page admin 36587   2014-08-10
 
74 [OpenSIPS-Users] Opensips 1.10 NAT radius aaa admin 36622   2014-08-23
 
73 OpenSIPS Consultancy Pricing module install Server 판매 또는 설치및 컨설팅 가이드 admin 41428   2014-08-23
 
72 ICE: The ultimate way of beating NAT in SIP admin 65150   2014-08-23
 
71 MediaProxy wiki page install configuration admin 43179   2014-08-11
 
70 Under RHEL6.5 install OpenSIPS 1.11.1 tls admin 38780   2014-08-12
 
69 오픈소스 (사내)메신저 서버 구축, 오픈 파이어(openfire) 설치방법과 세팅 admin 102569   2014-08-11
 
68 OpenSIPS Installation Notes admin 47607   2014-08-09
 
67 Installation and configuration process record opensips 1.9.1 admin 95616   2014-08-09
 
66 opensips 1.11.2 install Good Giide admin 66716   2014-08-09
 
65 fusionPBX install debian wheezy admin 38492   2014-08-09
 
64 opensips 1.11.2 install guide good 인스톨 가이드 admin 44608   2014-08-09
 
63 SigIMS IMS Platform admin 38018   2014-05-24
 
62 2013 2012년 분야별 최고의 오픈소스 소프트웨어 124선 admin 63336   2014-04-05
 
61 Video conference server OpenMCU-ru - Introduction admin 54610   2014-04-01
 
60 SIPSorcery admin 44075   2014-03-18
 
59 telepresence: Open Source SIP Telepresence/MCU admin 181826   2014-03-12
 
58 SIP PBX - OpenSIPS and Asterisk configuration admin 163264   2014-03-12
 
57 Conference Support in Kamailio (OpenSER) admin 86051   2014-03-12
 
56 OpenSIPS configuration for 2 or more FreeSWITCH installs admin 74985   2014-03-12
 
55 The Impact of TLS on SIP Server Performance file admin 42079   2014-03-12
 
54 book-opensips-101 / content / 3.2. SIP TLS Secure Calling.mediawiki admin 42552   2014-03-12
 
53 Where to check OpenSIPS does not start? admin 43061   2014-03-09
 
52 Ekiga (formely known as GnomeMeeting) is an open source SoftPhone admin 42697   2014-03-12