한국어

소프트스위치

온누리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");
  }

조회 수 :
9300
등록일 :
2023.08.13
04:59:56 (*.246.68.224)
엮인글 :
http://webs.co.kr/index.php?document_srl=3349479&act=trackback&key=fba
게시글 주소 :
http://webs.co.kr/index.php?document_srl=3349479
List of Articles
번호 제목 글쓴이 조회 수 추천 수 날짜sort
142 Problem with presence_xml module Opensips 1.9 admin 49455   2014-03-06
 
141 How to install OpenSIPS on CentOS debian module add xcap admin 47252   2014-03-06
 
140 MediaProxy Installation Guide admin 183991   2014-03-06
 
139 rtpproxy Module admin 40096   2014-03-06
 
138 OpenSIPS Control Panel install guide admin 98137   2014-03-06
 
137 OpenSIPS Control Panel (OCP) Installation Guide admin 282288   2014-03-06
 
136 Installing RTPproxy Start RTPproxy in Bridged mode very good admin 104853   2014-03-07
 
135 Building Telephony Systems with OpenSIPS 1.6 RTPProxy + OpenSIPS 1.7 admin 42259   2014-03-07
 
134 RTPproxy Frequentry Asked Questions (FAQ) ¶ admin 177670   2014-03-07
 
133 Using the openSIPS Registrant Module admin 53603   2014-03-09
 
132 Kamailo OpenSIPs installation on Debian admin 84906   2014-03-09
 
131 opensips-1.10.0_src.tar.gz experimental source code documentation admin 39035   2014-03-09
 
130 Where to check OpenSIPS does not start? admin 44492   2014-03-09
 
129 book-opensips-101 / content / 3.2. SIP TLS Secure Calling.mediawiki admin 44229   2014-03-12
 
128 The Impact of TLS on SIP Server Performance file admin 43576   2014-03-12
 
127 OpenSIPS configuration for 2 or more FreeSWITCH installs admin 76489   2014-03-12
 
126 Conference Support in Kamailio (OpenSER) admin 88190   2014-03-12
 
125 SIP PBX - OpenSIPS and Asterisk configuration admin 165895   2014-03-12
 
124 telepresence: Open Source SIP Telepresence/MCU admin 185191   2014-03-12
 
123 Ekiga (formely known as GnomeMeeting) is an open source SoftPhone admin 44066   2014-03-12
 
122 SIPSorcery admin 45264   2014-03-18
 
121 Video conference server OpenMCU-ru - Introduction admin 55912   2014-04-01
 
120 2013 2012년 분야별 최고의 오픈소스 소프트웨어 124선 admin 65393   2014-04-05
 
119 SigIMS IMS Platform admin 39501   2014-05-24
 
118 opensips 1.11.2 install guide good 인스톨 가이드 admin 45205   2014-08-09
 
117 fusionPBX install debian wheezy admin 39034   2014-08-09
 
116 opensips 1.11.2 install Good Giide admin 67431   2014-08-09
 
115 Installation and configuration process record opensips 1.9.1 admin 96920   2014-08-09
 
114 OpenSIPS Installation Notes admin 48259   2014-08-09
 
113 Opensips Installation, How to. Good guide wiki page admin 37269   2014-08-10