한국어

소프트스위치

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

조회 수 :
8867
등록일 :
2023.08.13
04:59:56 (*.246.68.224)
엮인글 :
http://webs.co.kr/index.php?document_srl=3349479&act=trackback&key=b17
게시글 주소 :
http://webs.co.kr/index.php?document_srl=3349479
List of Articles
번호 제목 글쓴이 날짜 조회 수sort
142 in opensips what is has_totag() admin 2017-12-09 23949
141 ubuntu 安装配置opensips,rtpproxy,mediaproxy admin 2017-09-04 24914
140 WebSocket Transport using OpenSIPS admin 2017-09-01 25040
139 openssl 을 이용한 인증서 생성 절차를 정리한다. 개인키 CSR SSL 인증서 파일 생성 admin 2017-09-14 25105
138 OpenSIPS 2.3 install admin 2017-09-01 25212
137 opensips.cfg. sample admin 2017-09-12 25257
136 OpenSIPS 2.1 (rc) is available, download now! admin 2015-03-22 25472
135 what is loose_route() in opensips ? file admin 2017-12-09 25602
134 Documentation -> Tutorials -> TLS opensips.cfg admin 2017-09-14 26091
133 what is record_route() in opensips ? admin 2017-12-09 26298
132 opensips push notification How to detail file admin 2017-12-20 26805
131 How to Install OpenSIPS 2.1.2 Server on Ubuntu 15.04 admin 2017-09-01 27666
130 opensips tls cfg admin 2017-09-14 31053
129 WebSocket Support in OpenSIPS 2.1 admin 2015-04-04 32202
128 A2Billing and OpenSIPS – Part 1 admin 2017-08-29 32585
127 Installing RTPEngine on Ubuntu 14.04 admin 2017-09-05 33378
126 WebRTC with OpenSIPS WebSocket is a protocol provides full-duplex admin 2015-04-04 33651
125 Service Provision Using Asterisk & OpenSIPS - AstriCon 2014 admin 2015-02-25 34078
124 Advanced SIP scenarios with Event-based-Routing admin 2017-09-11 34527
123 A2Billing and OpenSIPS – Part 2 admin 2017-08-29 34662
122 Script Function , Module Index v1.11 함수 모듈 opensips admin 2014-10-14 36414
121 Opensips Installation, How to. Good guide wiki page admin 2014-08-10 37103
120 [OpenSIPS-Users] Opensips 1.10 NAT radius aaa admin 2014-08-23 37189
119 Kamailio Nat Traversal using RTPProxy admin 2014-08-11 37274
118 Configuracion de Kamailio 3.3 con NAT Traversal y XCAP. admin 2014-08-12 37288
117 OpenSIPS as Homer Capture server admin 2014-08-13 37415
116 kamailio.cfg configuration Example admin 2014-10-04 37565
115 opensips NAT Traversal Module admin 2014-10-02 37719
114 opensips.cfg for Asterisk admin 2014-10-20 37959
113 opensips Nat script with RTPPROXY - English Good perfect admin 2014-08-15 37970