한국어

소프트스위치

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


조회 수 :
7978
등록일 :
2023.07.27
16:20:30 (*.7.25.5)
엮인글 :
http://webs.co.kr/index.php?document_srl=3349444&act=trackback&key=375
게시글 주소 :
http://webs.co.kr/index.php?document_srl=3349444
List of Articles
번호 제목 글쓴이 조회 수sort 추천 수 날짜
142 Kamailio :: A Quick Introduction admin 83094   2013-04-06
 
141 Opensips Installation, How to. admin 77263   2014-03-05
 
140 OpenSIPS configuration for 2 or more FreeSWITCH installs admin 76740   2014-03-12
 
139 오픈소스 (사내)메신저 서버 구축, 오픈 파이어(openfire) 설치방법과 세팅(리눅스 기준) admin 75211   2017-09-09
 
138 Opensips1.6 ebook detail configuration and SIP signal and NAT etc file admin 74771   2017-12-10
 
137 Installation and configuration process record opensips opensips-cp admin 70997   2014-08-13
 
136 OpenSIPS Control Panel (OCP) Installation Guide Good admin 69114   2014-08-13
 
135 opensips 1.11.2 install Good Giide admin 67470   2014-08-09
 
134 Build-Depends debian 8.8 opensips 2.3 admin 66094   2017-09-04
 
133 ICE: The ultimate way of beating NAT in SIP admin 66062   2014-08-23
 
132 2013 2012년 분야별 최고의 오픈소스 소프트웨어 124선 admin 65786   2014-04-05
 
131 Fail2Ban Freeswitch How to secure admin 63576   2017-09-12
 
130 rtpengine install and config admin 60137   2017-09-05
 
129 Video conference server OpenMCU-ru - Introduction admin 56440   2014-04-01
 
128 100% CPU usage opensips admin 56373   2014-03-05
 
127 OfficeSIP Server is freeware VoIP, SIP server for Windows admin 56164   2013-09-11
 
126 rtpengine config basic and opensips configuration and command admin 55382   2017-09-06
 
125 OpenH323 Gatekeeper - The GNU Gatekeeper admin 54840   2011-12-14
 
124 SIP to XMPP Gateway + SIP Presence Server opensips admin 54378   2017-09-13
 
123 Using the openSIPS Registrant Module admin 53994   2014-03-09
 
122 Kamailio 3.3.x and Asterisk 10.7.0 Realtime Integration using Asterisk Database admin 53804   2013-04-06
 
121 Many OPENSIPS Configuration Examples This will Help you admin 50049   2014-08-23
 
120 Problem with presence_xml module Opensips 1.9 admin 49875   2014-03-06
 
119 OpenSIPS routing logic admin 49305   2017-12-12
 
118 Using TLS in OpenSIPS v2.2.x configuration admin 48875   2017-09-04
 
117 OpenSIPS Installation Notes admin 48295   2014-08-09
 
116 How to install OpenSIPS on CentOS debian module add xcap admin 47534   2014-03-06
 
115 Asterisk Installation Asterisk Realtime configuration admin 47160   2013-04-06
 
114 the OpenSIPS Project OpenSIP admin 46898   2011-12-14
 
113 How to install OpenSIPS on CentOS Debian etc admin 46868   2014-03-05