한국어

스마트폰앱

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

     페북공유

   ◎위챗 : speedseoul


  
     PAYPAL
     
     PRICE
     

pixel.gif

    before pay call 0088 from app



https://stackoverflow.com/questions/14172412/jainsip-on-android-sending-register-throws-exception/14218878


import org.zoolu.sip.address.NameAddress;

import org.zoolu.sip.message.Message;

import org.zoolu.sip.message.MessageFactory;

import org.zoolu.sip.provider.SipProvider;

import org.zoolu.sip.provider.SipStack;

import org.zoolu.sip.transaction.TransactionClient;

import org.zoolu.sip.transaction.TransactionClientListener;


import android.app.Activity;

import android.os.Bundle;

import android.util.Log;

import android.view.Menu;


public class MainActivity extends Activity implements TransactionClientListener{


@Override

protected void onCreate(Bundle savedInstanceState) {

    super.onCreate(savedInstanceState);

    setContentView(R.layout.activity_main);


    new Thread(new Runnable(){


        @Override

        public void run() {

            try{

                SipStack.init();


                SipProvider sipProvider = new SipProvider( "192.168.0.198", 5060, new String[]{"udp"}, null);

                NameAddress toAddress = new NameAddress(  "sip:192.168.0.195:9876");

                NameAddress fromAddress = new NameAddress(   "sip:192.168.0.198:9876");


                Message message = MessageFactory.createRegisterRequest(

                        sipProvider, 

                        toAddress, 

                        fromAddress, 

                        fromAddress, 

                        null, 

                        null);


                TransactionClient t = new TransactionClient(

                        sipProvider, 

                        message,

                        MainActivity.this);


                t.request();


            }catch(Exception e){

                Log.d("MYSIP", Log.getStackTraceString(e));

            }

        }}).start();

}


// Interface methods


}

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