한국어

스마트폰앱

온누리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

조회 수 :
4750
등록일 :
2017.10.22
03:04:11 (*.160.88.18)
엮인글 :
http://webs.co.kr/index.php?document_srl=3312213&act=trackback&key=389
게시글 주소 :
http://webs.co.kr/index.php?document_srl=3312213
List of Articles
번호 제목 글쓴이 날짜 조회 수
66 mjsip sip sample code program admin 2019-09-07 41
» Package org.linphone.core Description admin 2017-10-22 4750
64 Sqlite detail easy tutorial. admin 2017-09-09 4921
63 Change package name Linphone Android admin 2017-08-25 5083
62 Liblinphone - import Linphone library in Android Studio 2017 admin 2017-08-25 5440
61 I am able to build the limphone on mac by follow the steps describe here admin 2017-08-25 4994
60 To build liblinphone for Android, you must COMPILATION INSTRUCTIONS admin 2017-08-25 5306
59 sipdroid source code admin 2017-08-08 5095
58 안드로이드 주소록 전체가져오기 이름만가져오기 사진가져오기 코드 admin 2015-04-13 24825
57 the sipdroid Research Miscellaneous admin 2015-03-26 8372
56 HSS070 English Korean 무료 국제전화 미국 중국 카나다 무료 통화 제공 admin 2014-12-28 14407
55 Softphones admin 2014-09-20 10760
54 /xxxxx/gen already exists but is not a source folder. Convert to a source folder or rename it. admin 2014-09-03 13932
53 CSIPSimple building Rebuilding Detail on Eclips Good All is heare perfect admin 2014-08-15 11680
52 Improving QoE of SIP-based Automated Voice Interaction in Mobile Networks file admin 2014-03-20 12498
51 speex support in android admin 2014-03-19 11875
50 voxmobile Source and how to build admin 2014-02-18 13190
49 PJSIP hung the phone constantly corrected the problem admin 2014-02-09 13172
48 Csipsimple code rebuilding source sip 통신 Call Mechanism admin 2014-02-09 73080
47 Csipsimple code rebuilding source sip 통신 technical interviewer admin 2014-02-09 13189
46 Csipsimple code rebuilding source 주요인터페이스분석 admin 2014-02-09 176823
45 Csipsimple code rebuilding source 다운로드 구성 csipsimple 소스 프로젝트 admin 2014-02-09 15027
44 Android DialogFragment Tutorial admin 2014-02-09 12929
43 Creating a fullscreen DialogFragment with a custom background admin 2014-02-09 16078
42 [Android API] 네트워크 상태 체크하기 admin 2013-12-19 18177
41 [안드로이드] 네트워크 연결 상태 체크 함수. admin 2013-12-19 14768
40 안드로이드 인터넷연결체크 ( 3g/lte/wifi ) 메서드 admin 2013-12-19 20739
39 Android Get Phone Contacts details with Contact Image admin 2013-12-15 13822
38 안드로이드 커스텀 타이틀바 How to add custom title bar to android application admin 2013-10-02 16998
37 How to create a custom title bar admin 2013-07-15 15432