한국어

소프트스위치

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

     페북공유

   ◎위챗 : speedseoul


  
     PAYPAL
     
     PRICE
     

pixel.gif

    before pay call 0088 from app


1.6.2.  Call pickup

https://opensips.org/html/docs/modules/3.2.x/event_routing.html


The scenario is Alice calling to bob, Bob does not pickup and Charlie is performing call pickup (to get the call from Alice)

We use notify_on_event to link the two calls: the one from Alice to Bob and the one from Charlie to call pickup service.

Schematics: when we send a call to a user within a pickup group, we subscribe to see if there is any call to the pickup service (from another member of the same pickup group). 

When we have a call to the pickup service, we raise from script an event - this event will be notified to the first call and we cancel the branches to Bob and inject the registered contacts for the user calling to pickup group (Charlie).


... route[handle_call] if ($rU=="33") { ## this is a call to the pickup service ## (Charlie calling 33) # reject incoming call as we will generate an back call # from the original call (Alice to Bob) t_newtran(); send_reply(480,"Gone"); # raise the pickup custom event # with pickup group 1 and picker being Charlie (caller) $avp(attr-name) = "group"; $avp(attr-val) = "1"; $avp(attr-name) = "picker"; $avp(attr-val) = $fu; raise_event("E_CALL_PICKUP", $avp(attr-name), $avp(attr-val)); exit; } else { ## this is a call to a subscriber ## (Alice calls Bob) # apply user location if (!lookup("location","m")) { send_reply(404, "Not Found"); exit; } # 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(); # subscribe to a call pickup event, but for our group only $avp(filter) = "group=1"; notify_on_event("E_CALL_PICKUP",$avp(filter), "handle_pickup", 20); t_relay(); } exit; } route[handle_pickup] { xlog("call picked by $avp(picker), fetching its contacts\n"); if (lookup("location","", $avp(picker))) { # take the contacts retured by lookup() (for Charlie) # and inject them into the original call, but also cancel # any existing ongoing branch (ringing to Bob) t_inject_branches("msg","cancel"); } }


조회 수 :
7702
등록일 :
2023.07.27
16:20:30 (*.7.25.5)
엮인글 :
http://webs.co.kr/index.php?document_srl=3349444&act=trackback&key=7d2
게시글 주소 :
http://webs.co.kr/index.php?document_srl=3349444
List of Articles
번호 제목 글쓴이 조회 수 추천 수 날짜sort
142 Problem with presence_xml module Opensips 1.9 admin 49357   2014-03-06
 
141 How to install OpenSIPS on CentOS debian module add xcap admin 47204   2014-03-06
 
140 MediaProxy Installation Guide admin 183919   2014-03-06
 
139 rtpproxy Module admin 40055   2014-03-06
 
138 OpenSIPS Control Panel install guide admin 98073   2014-03-06
 
137 OpenSIPS Control Panel (OCP) Installation Guide admin 282229   2014-03-06
 
136 Installing RTPproxy Start RTPproxy in Bridged mode very good admin 104722   2014-03-07
 
135 Building Telephony Systems with OpenSIPS 1.6 RTPProxy + OpenSIPS 1.7 admin 42222   2014-03-07
 
134 RTPproxy Frequentry Asked Questions (FAQ) ¶ admin 177602   2014-03-07
 
133 Using the openSIPS Registrant Module admin 53543   2014-03-09
 
132 Kamailo OpenSIPs installation on Debian admin 84837   2014-03-09
 
131 opensips-1.10.0_src.tar.gz experimental source code documentation admin 38980   2014-03-09
 
130 Where to check OpenSIPS does not start? admin 44428   2014-03-09
 
129 book-opensips-101 / content / 3.2. SIP TLS Secure Calling.mediawiki admin 44175   2014-03-12
 
128 The Impact of TLS on SIP Server Performance file admin 43472   2014-03-12
 
127 OpenSIPS configuration for 2 or more FreeSWITCH installs admin 76428   2014-03-12
 
126 Conference Support in Kamailio (OpenSER) admin 88104   2014-03-12
 
125 SIP PBX - OpenSIPS and Asterisk configuration admin 165757   2014-03-12
 
124 telepresence: Open Source SIP Telepresence/MCU admin 185086   2014-03-12
 
123 Ekiga (formely known as GnomeMeeting) is an open source SoftPhone admin 44024   2014-03-12
 
122 SIPSorcery admin 45221   2014-03-18
 
121 Video conference server OpenMCU-ru - Introduction admin 55841   2014-04-01
 
120 2013 2012년 분야별 최고의 오픈소스 소프트웨어 124선 admin 65312   2014-04-05
 
119 SigIMS IMS Platform admin 39450   2014-05-24
 
118 opensips 1.11.2 install guide good 인스톨 가이드 admin 45199   2014-08-09
 
117 fusionPBX install debian wheezy admin 39030   2014-08-09
 
116 opensips 1.11.2 install Good Giide admin 67419   2014-08-09
 
115 Installation and configuration process record opensips 1.9.1 admin 96896   2014-08-09
 
114 OpenSIPS Installation Notes admin 48257   2014-08-09
 
113 Opensips Installation, How to. Good guide wiki page admin 37242   2014-08-10