한국어

스마트폰앱

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

     페북공유

   ◎위챗 : speedseoul


  
     PAYPAL
     
     PRICE
     

pixel.gif

    before pay call 0088 from app



https://www.linphone.org/docs/liblinphone-javadoc/org/linphone/core/package-summary.html


void setProxy(String proxyUri)
              throws LinphoneCoreException
Sets the proxy address Examples of valid sip proxy address are:
  • IP address: sip:87.98.157.38
  • IP address with port: sip:87.98.157.38:5062
  • hostnames : sip:sip.example.net

Managing proxies

User registration is controled by LinphoneProxyConfig settings. 
Each LinphoneProxyConfig object can be configured with registration informations like proxy address user id, and so on. 
A created proxy config using org.linphone.core.LinphoneCoreFactory#createProxyConfig , once configured, must be added to LinphoneCore using function LinphoneCore.addProxyConfig(org.linphone.core.LinphoneProxyConfig)
It is recommended to set a default proxy config using function LinphoneCore.setDefaultProxyConfig(org.linphone.core.LinphoneProxyConfig). Once done, if a proxy config has been configured with attribute enable register , next call to LinphoneCore.iterate() triggers a SIP register. 
Registration status is reported by registration listener

This pseudo code demonstrates basic registration operations: 


        
        LinphoneProxyConfig proxy_cfg;
        /*create proxy config*/
        proxy_cfg = LinphoneCoreFactory.instance().createProxyConfig();
        /*parse identity*/
        LinphoneAddress from = LinphoneCoreFactory.instance().createAddress("sip:toto@sip.titi.com");
        LinphoneAuthInfo info;
        if (password!=NULL){
                info=LinphoneCoreFactory.instance().createAuthInfo(from.getUsername(),null,"secret",null,null); /*create authentication structure from identity*/
                lc.addAuthInfo(info); /*add authentication info to LinphoneCore*/
        }       
        // configure proxy entries
        proxy_cfg.setIdenty(identity); /*set identity with user name and domain*/
        String server_addr = from.getDomain(); /*extract domain address from identity*/
        proxy_cfg.setProxy(server_addr); /* we assume domain = proxy server address*/
        proxy_cfg.enableRegister(true); /*activate registration for this proxy config*/
        
        lc.addProxyConfig(proxy_cfg); /*add proxy config to linphone core*/
        lc.setDefaultProxyconfig(proxy_cfg); /*set to default proxy*/ 


Registration state listener :


 void registrationState(LinphoneCore lc, LinphoneProxyConfig cfg, LinphoneCore.RegistrationState cstate, String message){
                System.out.println(New registration state ["+cstate+"] for user id ["+cfg.getUserName()+"] at proxy ["+cfg.getProxy()+"]";
}


Authentication: 
Most of the time, registration requires authentication to succed. LinphoneAuthInfo info must be either added to LinphoneCore using method LinphoneCore.addAuthInfo(org.linphone.core.LinphoneAuthInfo) before LinphoneProxyConfig is added to Linphone core, or on demand from listener org.linphone.core.LinphoneCoreListener#authInfoRequested(LinphoneCore, String, String) . 

Unregistration: 
Unregistration or any changes to LinphoneProxyConfig must be first started by a call to function LinphoneProxyConfig.edit() and validated by function LinphoneProxyConfig.done() 
This pseudo code shows how to unregister a user associated to aLinphoneProxyConfig


        LinphoneProxyConfig proxy_cfg;
        lc.setDefaultProxyConfig(proxy_cfg); /* get default proxy config*/
        proxy_cfg.edit(); /*start editing proxy configuration*/
        proxy_cfg.enableRegister(false); /*de-activate registration for this proxy config*/
        proxy_cfg.done(); /*initiate REGISTER with expire = 0*/



Managing Buddies and buddy list and presence


Buddies and buddy list 
Each buddy is represented by a LinphoneFriend object created by function LinphoneCoreFactory.createLinphoneFriend(). Buddy configuration parameters like sip uri or status publication are configurable for each buddy. 
Here under a typical buddy creation: 


        LinphoneFriend my_friend=LinphoneFactory.instance().createFriend("sip:joe@sip.linphone.org"); /*creates friend object for buddy joe*/
        my_friend.enableSubscribes(true); /*configure this friend to emit SUBSCRIBE message after being added to LinphoneCore*/
        my_friend.setIncSubscribePolicy(LinphoneFriend.SubscribePolicy.Accept); /* accept Incoming subscription request for this friend*/

friends status changes are reported by LinphoneCoreListener.notifyPresenceReceived(LinphoneCore lc, LinphoneFriend lf) .


 void notifyPresenceReceived(LinphoneCore lc, LinphoneFriend lf){
        LinphoneAddress friend_address = lf.getAddress();
        System.out.println("New state ["+lf.getStatus()+"] for user id ["+friend_address+"] ");
}


Once created a buddy can be added to the buddy list using function LinphoneCore.addFriend(LinphoneFriend lf) . Added friends will be notified about local status changes 
Any subsequente modifications to LinphoneFriend must be first started by a call to function to LinphoneFriend.edit() and validated by function LinphoneFriend.done()


        my_friend.edit(); /* start editing friend */
        my_friend.enableSubscribes(true); /*disable subscription for this friend*/
        my_friend.done(); /*commit changes triggering an UNSUBSCRIBE message*/

Publishing presence status 
Local presence status can be changed using function LinphoneCore.setPresenceInfo(int, java.lang.String, org.linphone.core.OnlineStatus).New status is propagated to all friends previously added to LinphoneCore. 

Handling incoming subscription request 
New incoming subscription requests are process according tothe incoming subscription policy state for subscription initiated by members of the buddy list. 
For incoming request coming from an unknown buddy, the call back LinphoneCoreListener.newSubscriptionRequest(LinphoneCore lc, LinphoneFriend lf, String url)

Chat room and Messaging

Exchanging text messages 
Messages are sent using LinphoneChatRoom object. First step is to create a chat room from a peer sip uri.


        LinphoneChatRoom chat_room = lc.createChatRoom("sip:joe@sip.linphone.org");


Once created, messages are sent using function LinphoneChatRoom.sendMessage(java.lang.String) .


        chat_room.sendMessage("Hello world"); /*sending message*/


Incoming message are received from a listener


        void textReceived(LinphoneCore lc, LinphoneChatRoom cr,LinphoneAddress from,String message) {
                System.out.println("Message ["+message+"] received from ["+from+"] ");
        }

Sound and echo cancellation settings

조회 수 :
4104
등록일 :
2017.10.22
03:04:11 (*.160.88.18)
엮인글 :
http://webs.co.kr/index.php?document_srl=3312213&act=trackback&key=0f8
게시글 주소 :
http://webs.co.kr/index.php?document_srl=3312213
List of Articles
번호 제목 글쓴이 날짜 조회 수sort
65 Csipsimple code rebuilding source 주요인터페이스분석 admin 2014-02-09 132164
64 Android 2.0 주소록 동기화 기능 admin 2012-09-30 59186
63 안드로이드마켓에 앱 등록하는 순서 admin 2012-08-19 58560
62 Csipsimple code rebuilding source sip 통신 Call Mechanism admin 2014-02-09 55527
61 Android User Session Management using Shared Preferences admin 2012-10-16 46378
60 안드로이드 타이머 절적한 설명과 간단한소스코드 등 안드로이드 프로그램 설명 깔끔 admin 2012-09-23 44831
59 Unicode Tables v4 admin 2012-10-16 42183
58 How to Show Alert Dialog in Android (간단하고 쉬운설명) admin 2012-10-15 35626
57 [안드로이드] 서버/클라이언트 소켓(Socket) 통신하기 admin 2012-09-20 34720
56 [안드로이드/개발] Intent admin 2012-09-23 31564
55 통신사별 와이파이 비밀번호 admin 2012-10-31 29361
54 JAVA + SSL (server and client examples) admin 2012-10-07 28668
53 Android Detect Internet Connection Status admin 2012-10-12 27074
52 WIFI 3G 인터넷 연결 실시간 체크 소스코드 Broadcast Receiver 사용 (Adnroid) admin 2012-10-31 25523
51 Rotary Dialer clip art admin 2013-04-20 22767
50 WIFI 3G 인터넷 연결 체크 소스코드 직접 사용한 코드 android admin 2012-10-14 21739
49 안드로이드용 앱 개발 마켓등록 까지 해본거 샘플 무료국제전화 앱 FreeDialer admin 2012-09-27 20984
48 전화관련 안드로이드함수 admin 2012-08-18 20613
47 자바 ,이클립스,Android SDK, ADT 설치하여 무료국제전화 다이얼러를 만들어봅시다. admin 2012-08-06 20596
46 Android Contacts API 2 example admin 2012-09-30 20508
45 안드로이드 주소록 전체가져오기 이름만가져오기 사진가져오기 코드 admin 2015-04-13 20152
44 안드로이드 인터넷연결체크 ( 3g/lte/wifi ) 메서드 admin 2013-12-19 19650
43 Android SQlite 사용 admin 2012-09-04 19454
42 How to read contacts on Android 2.0 admin 2012-10-14 19143
41 Manage Contacts android admin 2012-09-30 18515
40 접속번호 + 상대방번호 # 를 주소록에 전화번호로 저장하여 사용하면 편리하다 admin 2012-06-17 18202
39 FreeDial 무료국제전화는 프리미엄 국제전화 다이렉트 회선사용 admin 2012-09-20 17858
38 Java 프로그램 실행화일 만들기 : Launch4j admin 2013-02-21 17477
37 아이폰 IPhone 앱 개발 기본 admin 2012-09-27 17426
36 2X Client Configuration | Android Remote Desktop 안드로이드 PC 리모트 데스크탑 admin 2012-12-02 17350
35 IBM Scan Codes EBCDIC Codes admin 2012-10-16 17052
34 ASCII Table and Description admin 2012-10-16 16837
33 Querying The Android Contact Database admin 2012-09-30 16792
32 아이폰용 무료국제전화용 무료 다이얼러 Speedydialer 설치및 사용방법 file admin 2012-07-14 16571
31 google voice source code admin 2012-09-22 16321
30 팁, wifi 패스워드 모음집 password admin 2012-10-21 15933
29 java network programming source code, learning socket programming admin 2012-12-04 15684
28 [Android API] 네트워크 상태 체크하기 admin 2013-12-19 15639
27 한국휴대폰에서 미국 중국 카나다 무료 국제전화 서비스 admin 2012-04-27 15418
26 Creating a fullscreen DialogFragment with a custom background admin 2014-02-09 15134
25 안드로이드 커스텀 타이틀바 How to add custom title bar to android application admin 2013-10-02 15096
24 HTML Codes admin 2012-10-16 15075
23 How to create a custom title bar admin 2013-07-15 14689
22 App Store - ILD Dialer admin 2012-06-17 14551
21 Csipsimple code rebuilding source 다운로드 구성 csipsimple 소스 프로젝트 admin 2014-02-09 13103
20 [안드로이드] 네트워크 연결 상태 체크 함수. admin 2013-12-19 13040
19 Android Get Phone Contacts details with Contact Image admin 2013-12-15 12225
18 Android DialogFragment Tutorial admin 2014-02-09 12177
17 HSS070 English Korean 무료 국제전화 미국 중국 카나다 무료 통화 제공 admin 2014-12-28 12076
16 voxmobile Source and how to build admin 2014-02-18 11899
15 PJSIP hung the phone constantly corrected the problem admin 2014-02-09 11822
14 Csipsimple code rebuilding source sip 통신 technical interviewer admin 2014-02-09 11567
13 /xxxxx/gen already exists but is not a source folder. Convert to a source folder or rename it. admin 2014-09-03 11164
12 Improving QoE of SIP-based Automated Voice Interaction in Mobile Networks file admin 2014-03-20 10628
11 speex support in android admin 2014-03-19 10381
10 CSIPSimple building Rebuilding Detail on Eclips Good All is heare perfect admin 2014-08-15 10106
9 Softphones admin 2014-09-20 9233
8 the sipdroid Research Miscellaneous admin 2015-03-26 7271
7 Liblinphone - import Linphone library in Android Studio 2017 admin 2017-08-25 4772
6 To build liblinphone for Android, you must COMPILATION INSTRUCTIONS admin 2017-08-25 4629
5 sipdroid source code admin 2017-08-08 4470
4 Change package name Linphone Android admin 2017-08-25 4464
3 I am able to build the limphone on mac by follow the steps describe here admin 2017-08-25 4373
2 Sqlite detail easy tutorial. admin 2017-09-09 4334
» Package org.linphone.core Description admin 2017-10-22 4104