한국어

소프트스위치

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

조회 수 :
7537
등록일 :
2023.08.13
04:59:56 (*.246.68.224)
엮인글 :
http://webs.co.kr/index.php?document_srl=3349479&act=trackback&key=bc0
게시글 주소 :
http://webs.co.kr/index.php?document_srl=3349479
List of Articles
번호 제목 글쓴이 조회 수 추천 수sort 날짜
171 The FreeRADIUS Project admin 44295   2011-12-14
 
170 OpenH323 Gatekeeper - The GNU Gatekeeper admin 53813   2011-12-14
 
169 the OpenSIPS Project OpenSIP admin 45787   2011-12-14
 
168 사설 망 환경에서 SIP 의 NAT Traversal 문제 admin 145702   2011-12-23
 
167 SIP 트래픽 생성 테스트 툴 admin 137514   2011-12-23
 
166 Asterisk v1.4x built on FreeBSD v7.1 UNIX admin 151101   2012-01-06
 
165 debian 11 opensips 3.2 install command admin 10283   2023-06-25
 
164 t_relay opensips admin 5972   2023-07-25
 
163 opensips Call pickup configuration admin 6076   2023-07-27
 
162 opensips Push Notification configuration admin 6151   2023-07-29
 
161 string trans opensips admin 6111   2023-08-05
 
160 opensips-cli command admin 7969   2023-08-07
 
159 What is new in 1.8.0 opensip admin 254328   2012-05-21
 
158 OpenSIPS install configuration support admin 830   2024-04-09
 
157 OpenSIPS 이해 서비스 지원 admin 822   2024-04-09
 
156 Asterisk 에서 FreeSWITCH 전환 admin 843   2024-04-09
 
155 Open Source VOIP applications, both clients and servers. admin 44411   2013-11-20
 
154 OfficeSIP Server is freeware VoIP, SIP server for Windows admin 54965   2013-09-11
 
153 rfc5766-turn-server admin 41562   2013-03-21
 
152 OpenSER_from_an_asterisk_POV file admin 39091   2013-04-06
 
151 OpenSIPS vs Asterisk admin 222181   2013-04-06
 
150 Kamailio 3.3.x and Asterisk 10.7.0 Realtime Integration using Asterisk Database admin 52760   2013-04-06
 
149 OPENSIP Training VIDEO admin 37303   2013-02-20
 
148 OpenSIPS Kick Start‎: VIDEO admin 39027   2013-02-20
 
147 Welcome to the Smartvox Knowledgebase admin 105186   2013-04-06
 
146 Kamailio :: A Quick Introduction admin 82044   2013-04-06
 
145 The SIP Router Project admin 45490   2013-04-06
 
144 Asterisk Installation Asterisk Realtime configuration admin 46213   2013-04-06
 
143 Flooding Asterisk, Freeswitch and Kamailio with Metasploit admin 100832   2013-04-06
 
142 My new toy: Bluebox-ng admin 91877   2013-04-06