한국어

소프트스위치

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

     페북공유

   ◎위챗 : speedseoul


  
     PAYPAL
     
     PRICE
     

pixel.gif

    before pay call 0088 from app


https://www.opensips.org/Documentation/Script-Routes-2-3

    route {
         if(is_method("OPTIONS")) {
            # send reply for each options request
            sl_send_reply("200", "ok");
            exit();
         }
         route(1);
    }
    route[1] {
         # forward according to uri
         forward();
    }

 route {
        lookup("location");
        t_on_branch("1");
        if(!t_relay()) {
            sl_send_reply("500", "relaying failed");
        }
    }
    branch_route[1] {
        if(uri=~"10\.10\.10\.10") {
            # discard branches that go to 10.10.10.10
            drop();
        }
    }

   route {
        lookup("location");
        t_on_failure("1");
        if(!t_relay()) {
            sl_send_reply("500", "relaying failed");
        }
    }
    failure_route[1] {
        if(is_method("INVITE")) {
             # call failed - relay to voice mail
             t_relay("udp:voicemail.server.com:5060");
        }
    }

route {
        seturi("sip:bob@opensips.org");  # first branch
        append_branch("sip:alice@opensips.org"); # second branch

        t_on_reply("global"); # the "global" reply route
                              # is set the whole transaction
        t_on_branch("1");

        t_relay();
}

branch_route[1] {
        if ($rU=="alice")
                t_on_reply("alice"); # the "alice" reply route
                                      # is set only for second branch
}

onreply_route {
        xlog("OpenSIPS received a reply from $si\n");
}


onreply_route[alice] {
        xlog("received reply on the branch from alice\n");
}

onreply_route[global] {
        if (t_check_status("1[0-9][0-9]")) {
                setflag(1);
                log("provisional reply received\n");
                if (t_check_status("183"))
                        drop;
        }
}

  error_route {
     xlog("--- error route class=$(err.class) level=$(err.level)
            info=$(err.info) rcode=$(err.rcode) rreason=$(err.rreason) ---\n");
     xlog("--- error from [$si:$sp]\n+++++\n$mb\n++++\n");
     sl_send_reply("$err.rcode", "$err.rreason");
     exit;
  }

  local_route {
     if (is_method("INVITE") && $ru=~"@foreign.com") {
        append_hf("P-hint: foreign request\r\n");
        exit;
     }
     if (is_method("BYE") ) {
        acc_log_request("internally generated BYE");
     }
  }

 startup_route {
    avp_db_query("select gwlist where ruleid==1",$avp(i:100));
    cache_store("local", "rule1", "$avp(i:100)");
  }

  timer_route[gw_update, 300] {
    avp_db_query("select gwlist where ruleid==1",$avp(i:100));
    $shv(i:100) =$avp(i:100);
  }

event_route[E_PIKE_BLOCKED] {
    xlog("The E_PIKE_BLOCKED event was raised\n");
  }
  event_route[E_PIKE_BLOCKED, async] {
    xlog("The E_PIKE_BLOCKED event was raised\n");
  }

조회 수 :
8869
등록일 :
2023.08.13
04:59:56 (*.246.68.224)
엮인글 :
http://webs.co.kr/index.php?document_srl=3349479&act=trackback&key=133
게시글 주소 :
http://webs.co.kr/index.php?document_srl=3349479
List of Articles
번호 제목 글쓴이 날짜sort 조회 수
142 Problem with presence_xml module Opensips 1.9 admin 2014-03-06 48731
141 How to install OpenSIPS on CentOS debian module add xcap admin 2014-03-06 46693
140 MediaProxy Installation Guide admin 2014-03-06 183008
139 rtpproxy Module admin 2014-03-06 39482
138 OpenSIPS Control Panel install guide admin 2014-03-06 97453
137 OpenSIPS Control Panel (OCP) Installation Guide admin 2014-03-06 281517
136 Installing RTPproxy Start RTPproxy in Bridged mode very good admin 2014-03-07 104235
135 Building Telephony Systems with OpenSIPS 1.6 RTPProxy + OpenSIPS 1.7 admin 2014-03-07 41410
134 RTPproxy Frequentry Asked Questions (FAQ) ¶ admin 2014-03-07 176964
133 Using the openSIPS Registrant Module admin 2014-03-09 53142
132 Kamailo OpenSIPs installation on Debian admin 2014-03-09 84128
131 opensips-1.10.0_src.tar.gz experimental source code documentation admin 2014-03-09 38616
130 Where to check OpenSIPS does not start? admin 2014-03-09 43828
129 book-opensips-101 / content / 3.2. SIP TLS Secure Calling.mediawiki admin 2014-03-12 43374
128 The Impact of TLS on SIP Server Performance file admin 2014-03-12 42867
127 OpenSIPS configuration for 2 or more FreeSWITCH installs admin 2014-03-12 75775
126 Conference Support in Kamailio (OpenSER) admin 2014-03-12 87345
125 SIP PBX - OpenSIPS and Asterisk configuration admin 2014-03-12 164921
124 telepresence: Open Source SIP Telepresence/MCU admin 2014-03-12 183936
123 Ekiga (formely known as GnomeMeeting) is an open source SoftPhone admin 2014-03-12 43459
122 SIPSorcery admin 2014-03-18 44756
121 Video conference server OpenMCU-ru - Introduction admin 2014-04-01 55409
120 2013 2012년 분야별 최고의 오픈소스 소프트웨어 124선 admin 2014-04-05 64319
119 SigIMS IMS Platform admin 2014-05-24 38720
118 opensips 1.11.2 install guide good 인스톨 가이드 admin 2014-08-09 45099
117 fusionPBX install debian wheezy admin 2014-08-09 38958
116 opensips 1.11.2 install Good Giide admin 2014-08-09 67288
115 Installation and configuration process record opensips 1.9.1 admin 2014-08-09 96675
114 OpenSIPS Installation Notes admin 2014-08-09 48134
113 Opensips Installation, How to. Good guide wiki page admin 2014-08-10 37105