한국어

소프트스위치

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

조회 수 :
7288
등록일 :
2023.08.13
04:59:56 (*.246.68.224)
엮인글 :
http://webs.co.kr/index.php?document_srl=3349479&act=trackback&key=14d
게시글 주소 :
http://webs.co.kr/index.php?document_srl=3349479
List of Articles
번호 제목 글쓴이 날짜 조회 수sort
171 OpenSIPS Control Panel (OCP) Installation Guide admin 2014-03-06 280175
170 Opensips Gateway between SIP and SMPP messages admin 2019-02-19 267094
169 What is new in 1.8.0 opensip admin 2012-05-21 253951
168 What is new in 2.3.0 opensips admin 2017-09-04 245804
167 Using SIP Devices behind NAT OPensip Asterisk IPPhone SIP Telephony file admin 2013-03-31 227209
166 OpenSIPS vs Asterisk admin 2013-04-06 221799
165 PUSH SERVER 푸시서버 안드로이드 애플 admin 2017-09-11 208854
164 telepresence: Open Source SIP Telepresence/MCU admin 2014-03-12 181669
163 MediaProxy Installation Guide admin 2014-03-06 181500
162 RTPproxy Frequentry Asked Questions (FAQ) ¶ admin 2014-03-07 175807
161 SIP PBX - OpenSIPS and Asterisk configuration admin 2014-03-12 163130
160 Asterisk v1.4x built on FreeBSD v7.1 UNIX admin 2012-01-06 150763
159 사설 망 환경에서 SIP 의 NAT Traversal 문제 admin 2011-12-23 145397
158 How to install Mediaproxy 2.5.2 on CentOS 6 64 bit admin 2017-09-04 143928
157 SIP 트래픽 생성 테스트 툴 admin 2011-12-23 137259
156 opensips command /sbin/opensipsctl detail admin 2017-09-04 125327
155 How to setup a Jabber / XMPP server on Debian 8 (jessie) using ejabberd admin 2017-09-13 124436
154 Opensips_1.9 install guide this is great I like this admin 2014-03-04 107851
153 OpenSIPS basic configuration script 기본 컨피그 admin 2017-09-05 105588
152 Welcome to the Smartvox Knowledgebase admin 2013-04-06 105016
151 Installing RTPproxy Start RTPproxy in Bridged mode very good admin 2014-03-07 102897
150 오픈소스 (사내)메신저 서버 구축, 오픈 파이어(openfire) 설치방법과 세팅 admin 2014-08-11 102490
149 Flooding Asterisk, Freeswitch and Kamailio with Metasploit admin 2013-04-06 100610
148 OpenSIPS Control Panel install guide admin 2014-03-06 96288
147 dictionary.opensips radius admin 2017-12-09 95708
146 Installation and configuration process record opensips 1.9.1 admin 2014-08-09 95518
145 in opensips what is lookup(domain [, flags [, aor]]) admin 2017-12-09 91718
144 My new toy: Bluebox-ng admin 2013-04-06 91716
143 Conference Support in Kamailio (OpenSER) admin 2014-03-12 85961
142 Kamailo OpenSIPs installation on Debian admin 2014-03-09 82760