한국어

소프트스위치

온누리070 플레이스토어 다운로드
    acrobits softphone
     온누리 070 카카오 프러스 친구추가온누리 070 카카오 프러스 친구추가친추
     카카오톡 채팅 상담 카카오톡 채팅 상담카톡
    
     라인상담
     라인으로 공유

     페북공유

   ◎위챗 : speedseoul


  
     PAYPAL
     
     PRICE
     

pixel.gif

    before pay call 0088 from app


1.6.1.  Push Notification
We use notify_on_event to capture the events on new contact registrations for callee. Once the call is sent to callee, based on the notification (for new contacts) we inject the newly registered contacts as new branches in the ongoing transaction.

Schematics : when we send a call to a user, we subscribe to see any new contacts being registered by the user. On such a notification, we add the new contact as a new branch to the ongoing transaction (ringing) to user.

Example 1.3. Push Notification script

...
route[route_to_user] {

    # prepare transaction for branch injection; it is mandatory
    # to create the transaction before the subscription, otherwise
    # the EBR module will not pass the transaction ID into the
    # notification route
    t_newtran();

    # keep the transaction alive (even if all branches will 
    # terminate) until the FR INVITE timer hits (we want to wait
    # for new possible contacts being registered)
    t_wait_for_new_branches();

    # subscribe to new contact registration event,
    # but for our callee only
    $avp(filter) = "aor="+$rU;
    notify_on_event("E_UL_CONTACT_INSERT",$avp(filter),
        "fork_call", 20);

    # fetch already registered contacts and relay if any
    if (lookup("location"))
        route(relay);
    # if there were no contacts available (so no branches 
    # created so far), the created transaction will still be 
    # waiting for new branches due to the usage of the 
    # t_wait_for_new_branches() function

    exit;
}

route[fork_call]
{
    xlog("user $avp(aor) registered a new "
        "contact $avp(uri), injecting\n");
    # take the contact described by the E_UL_CONTACT_INSERT
    # event and inject it as a new branch into the original
    # transaction
    t_inject_branches("event");
}
...
조회 수 :
7320
등록일 :
2023.07.29
03:56:03 (*.128.253.243)
엮인글 :
http://webs.co.kr/index.php?document_srl=3349448&act=trackback&key=a46
게시글 주소 :
http://webs.co.kr/index.php?document_srl=3349448
List of Articles
번호 제목 글쓴이 날짜sort 조회 수
142 OpenSIPS Module Interface admin 2017-12-07 44034
141 opensips configuration config explain easy basic 오픈쉽스 컨피그레이션 기본 설명 file admin 2017-12-07 23316
140 openssl 을 이용한 인증서 생성 절차를 정리한다. 개인키 CSR SSL 인증서 파일 생성 admin 2017-09-14 25016
139 Documentation -> Tutorials -> TLS opensips.cfg admin 2017-09-14 26014
138 Using TLS in OpenSIPS v2.2.x admin 2017-09-14 46001
137 opensips tls cfg admin 2017-09-14 30983
136 How to setup a Jabber / XMPP server on Debian 8 (jessie) using ejabberd admin 2017-09-13 125641
135 SIP to XMPP Gateway + SIP Presence Server opensips admin 2017-09-13 53356
134 OpenSIPS command line tricks admin 2017-09-13 46171
133 Fail2Ban Freeswitch How to secure admin 2017-09-12 62500
132 opensips.cfg. sample admin 2017-09-12 25196
131 Advanced SIP scenarios with Event-based-Routing admin 2017-09-11 34442
130 PUSH SERVER 푸시서버 안드로이드 애플 admin 2017-09-11 210205
129 오픈소스 (사내)메신저 서버 구축, 오픈 파이어(openfire) 설치방법과 세팅(리눅스 기준) admin 2017-09-09 73978
128 rtpengine config basic and opensips configuration and command admin 2017-09-06 54572
127 WebSocket Transport using OpenSIPS configuration 웹 소켓 컨피그레이션 기본 admin 2017-09-06 22108
126 OpenSIPS basic configuration script 기본 컨피그 admin 2017-09-05 106800
125 rtpengine install and config admin 2017-09-05 59566
124 Installing RTPEngine on Ubuntu 14.04 admin 2017-09-05 33304
123 compile only the textops module make modules=modules/textops modules admin 2017-09-05 20311
122 opensips command /sbin/opensipsctl detail admin 2017-09-04 126545
121 2017 08 31 opensips 2.32 install debian8.8 module install compile err modules admin 2017-09-04 43330
120 Build-Depends debian 8.8 opensips 2.3 admin 2017-09-04 65633
119 What is new in 2.3.0 opensips admin 2017-09-04 247131
118 ubuntu 安装配置opensips,rtpproxy,mediaproxy admin 2017-09-04 24821
117 How to install Mediaproxy 2.5.2 on CentOS 6 64 bit admin 2017-09-04 145127
116 Using TLS in OpenSIPS v2.2.x configuration admin 2017-09-04 48257
115 How to 2.3 download , OpenSIPS new apt repository. DEBs for Debian / Ubuntu admin 2017-09-02 20045
114 You can install CDRTool in the following ways: admin 2017-09-01 21564
113 How to Install OpenSIPS 2.1.2 Server on Ubuntu 15.04 admin 2017-09-01 27574