한국어

소프트스위치

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

     페북공유

   ◎위챗 : speedseoul


  
     PAYPAL
     
     PRICE
     

pixel.gif

    before pay call 0088 from app


OpenSIPS Control Panel and Homer integration

https://blog.opensips.org/2017/08/02/opensips-control-panel-and-homer-integration/

imgpsh_fullsizeThere are several articles and examples showing how to integrate Homer and OpenSIPS for SIP tracing/capturing purposes – capturing SIP, log, REST queries, network data, Management commands and more. This is an integration at data exchange level.

But an integration is also possible at the Web portal level – to integrate the Homer portal into the OpenSIPS Control Panel, the OpenSIPS provisioning interface.

Why? To get fast control over your whole system, with a single login. Why login and check two web interfaces, when you can have only one.

The OpenSIPS Control Panel 7.2.3, matching OpenSIPS 2.3, can integrate the Homer portal as an internal tool.

CP_Homer_dashboard

Nice, isn’t it?

The integration is done with full security consideration (the two web portals are performing cross authentication via REST APIs) and with no loss in functionality.

So, how can you can set this up?

OpenSIPS Control Panel configuration

First, be sure you have the Homer tool enabled in your OpenSIPS Control Panel installation. In the config/modules.inc.php file, in the $config_modules array, in the “system” section, for the “homer” entry, be sure you have set “enabled” => true.

After that, you need to configure the Homer tool, to be able to talk to the Homer portal. In the config/tools/system/homer/local.inc.php file you need to set a couple of options:

  • $homer_URL – this is the HTTP URL pointing the Homer portal
  • $homer_auth_method – the authentication method against Homer; the easiest and most flexible is the “get” method.

Homer configuration

For Homer, all the changes to be done are in the api/preferences.php file.

First of all, switch the authentication engine from “Internal” (via passwords) to “External” (via API):

define(‘AUTHENTICATION’,”External”);

Then configure the External Authentication engine as follows:

/*********[EXTERNAL AUTH ]********/
define(‘EXTERNAL_AUTH_URI’, “http://10.0.0.10/cp/tools/system/homer/auth.php”);
define(‘EXTERNAL_AUTH_METHOD’, “GET”);
define(‘EXTERNAL_AUTH_PARAM’, “param=KEY”);
define(‘EXTERNAL_AUTH_REQUEST_TYPE’, “get”);
define(‘EXTERNAL_AUTH_REQUEST_KEY’, “externalid”);
define(‘EXTERNAL_AUTH_POSITIVE_REPLY’, “200”);
define(‘EXTERNAL_AUTH_REPLY_USER_INFO’, “json”);

The only custom option is the EXTERNAL_AUTH_URI which is an HTTP URL pointing back to your OpenSIPS Control Panel installation – this must be constructed as

http://OCP_HOST/OCP_PATH/tools/system/homer/auth.php

where http://OCP_HOST/OCP_PATH is the HTTP URL you normally use to access your OpenSIPS Control Panel login page.

And you are done!

Note that you will not be able to login anymore into Homer portal via username and password.

Results

The result is a handy way to check CDRs, ongoing dialog, traces, everything, under the same umbrella.

CP_Homer_callflow

Even more, if the Homer tool is present, the CDRviewer tool in OpenSIPS Control Panel (for listing the CDRs) will automatically generate a link from the SIP call-ID value of the CDR to the call flow in Homer – with a single click you can view the call flow for a given CDR.

CP_Homer_cdrviewer.png

Enjoy it!

 

조회 수 :
44008
등록일 :
2017.08.17
10:07:43 (*.160.88.18)
엮인글 :
http://webs.co.kr/index.php?document_srl=3310654&act=trackback&key=15d
게시글 주소 :
http://webs.co.kr/index.php?document_srl=3310654
List of Articles
번호 제목 글쓴이 조회 수 추천 수sort 날짜
172 opensips basic route script configuration admin 9523   2023-08-13
 
171 Opensips Gateway between SIP and SMPP messages admin 269872   2019-02-19
 
170 smpp sms opensips admin 14608   2019-02-19
 
169 Busy Lamp Field (BLF) feature on Opensips 2.4.0 with Zoiper configuration admin 23963   2018-05-29
 
168 Documentation -> Tutorials -> WebSocket Transport using OpenSIPS admin 20894   2018-05-17
 
167 List of SIP response codes admin 44312   2017-12-20
 
166 opensips/modules/event_routing/ Push Notification Call pickup admin 17551   2017-12-20
 
165 opensips push notification How to detail file admin 27776   2017-12-20
 
164 OpenSIPS routing logic admin 49316   2017-12-12
 
163 OpenSIPS example configuration admin 21297   2017-12-12
 
162 opensips complete configuration example admin 45032   2017-12-10
 
161 Opensips1.6 ebook detail configuration and SIP signal and NAT etc file admin 74782   2017-12-10
 
160 dictionary.opensips radius admin 98349   2017-12-09
 
159 what is record_route() in opensips ? admin 27348   2017-12-09
 
158 what is loose_route() in opensips ? file admin 26359   2017-12-09
 
157 in opensips what is lookup(domain [, flags [, aor]]) admin 94080   2017-12-09
 
156 in opensips db_does_uri_exist() what is admin 21066   2017-12-09
 
155 in opensips what is has_totag() admin 24859   2017-12-09
 
154 opensips exec module admin 21235   2017-12-08
 
153 opensips push notification How to admin 24421   2017-12-07
 
152 OpenSIPS Module Interface admin 44777   2017-12-07
 
151 opensips configuration config explain easy basic 오픈쉽스 컨피그레이션 기본 설명 file admin 24745   2017-12-07
 
150 openssl 을 이용한 인증서 생성 절차를 정리한다. 개인키 CSR SSL 인증서 파일 생성 admin 25912   2017-09-14
 
149 Documentation -> Tutorials -> TLS opensips.cfg admin 26699   2017-09-14
 
148 Using TLS in OpenSIPS v2.2.x admin 46781   2017-09-14
 
147 How to setup a Jabber / XMPP server on Debian 8 (jessie) using ejabberd admin 126361   2017-09-13
 
146 SIP to XMPP Gateway + SIP Presence Server opensips admin 54393   2017-09-13
 
145 OpenSIPS command line tricks admin 46812   2017-09-13
 
144 Fail2Ban Freeswitch How to secure admin 63586   2017-09-12
 
143 opensips tls cfg admin 31979   2017-09-14