한국어

소프트스위치

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

조회 수 :
9049
등록일 :
2023.08.13
04:59:56 (*.246.68.224)
엮인글 :
http://webs.co.kr/index.php?document_srl=3349479&act=trackback&key=187
게시글 주소 :
http://webs.co.kr/index.php?document_srl=3349479
List of Articles
번호 제목 글쓴이 조회 수sort 추천 수 날짜
142 Kamailio :: A Quick Introduction admin 82829   2013-04-06
 
141 Opensips Installation, How to. admin 76835   2014-03-05
 
140 OpenSIPS configuration for 2 or more FreeSWITCH installs admin 76054   2014-03-12
 
139 오픈소스 (사내)메신저 서버 구축, 오픈 파이어(openfire) 설치방법과 세팅(리눅스 기준) admin 74487   2017-09-09
 
138 Opensips1.6 ebook detail configuration and SIP signal and NAT etc file admin 74273   2017-12-10
 
137 Installation and configuration process record opensips opensips-cp admin 70828   2014-08-13
 
136 OpenSIPS Control Panel (OCP) Installation Guide Good admin 68874   2014-08-13
 
135 opensips 1.11.2 install Good Giide admin 67332   2014-08-09
 
134 ICE: The ultimate way of beating NAT in SIP admin 65844   2014-08-23
 
133 Build-Depends debian 8.8 opensips 2.3 admin 65781   2017-09-04
 
132 2013 2012년 분야별 최고의 오픈소스 소프트웨어 124선 admin 64782   2014-04-05
 
131 Fail2Ban Freeswitch How to secure admin 62948   2017-09-12
 
130 rtpengine install and config admin 59821   2017-09-05
 
129 100% CPU usage opensips admin 55714   2014-03-05
 
128 OfficeSIP Server is freeware VoIP, SIP server for Windows admin 55709   2013-09-11
 
127 Video conference server OpenMCU-ru - Introduction admin 55579   2014-04-01
 
126 rtpengine config basic and opensips configuration and command admin 54765   2017-09-06
 
125 OpenH323 Gatekeeper - The GNU Gatekeeper admin 54606   2011-12-14
 
124 SIP to XMPP Gateway + SIP Presence Server opensips admin 53746   2017-09-13
 
123 Kamailio 3.3.x and Asterisk 10.7.0 Realtime Integration using Asterisk Database admin 53522   2013-04-06
 
122 Using the openSIPS Registrant Module admin 53315   2014-03-09
 
121 Many OPENSIPS Configuration Examples This will Help you admin 49802   2014-08-23
 
120 Problem with presence_xml module Opensips 1.9 admin 48987   2014-03-06
 
119 OpenSIPS routing logic admin 48682   2017-12-12
 
118 Using TLS in OpenSIPS v2.2.x configuration admin 48528   2017-09-04
 
117 OpenSIPS Installation Notes admin 48182   2014-08-09
 
116 Asterisk Installation Asterisk Realtime configuration admin 46914   2013-04-06
 
115 How to install OpenSIPS on CentOS debian module add xcap admin 46913   2014-03-06
 
114 the OpenSIPS Project OpenSIP admin 46632   2011-12-14
 
113 OpenSIPS command line tricks admin 46395   2017-09-13