한국어

스마트폰앱

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


}

조회 수 :
2779
등록일 :
2019.09.07
20:49:13 (*.214.125.21)
엮인글 :
http://webs.co.kr/index.php?document_srl=3320518&act=trackback&key=f30
게시글 주소 :
http://webs.co.kr/index.php?document_srl=3320518
List of Articles
번호 제목 글쓴이 날짜 조회 수
» mjsip sip sample code program admin 2019-09-07 2779
49 Package org.linphone.core Description admin 2017-10-22 7795
48 Sqlite detail easy tutorial. admin 2017-09-09 7800
47 Change package name Linphone Android admin 2017-08-25 11373
46 Liblinphone - import Linphone library in Android Studio 2017 admin 2017-08-25 8571
45 I am able to build the limphone on mac by follow the steps describe here admin 2017-08-25 8116
44 To build liblinphone for Android, you must COMPILATION INSTRUCTIONS admin 2017-08-25 10833
43 sipdroid source code admin 2017-08-08 8238
42 안드로이드 주소록 전체가져오기 이름만가져오기 사진가져오기 코드 admin 2015-04-13 50082
41 the sipdroid Research Miscellaneous admin 2015-03-26 11537
40 HSS070 English Korean 무료 국제전화 미국 중국 카나다 무료 통화 제공 admin 2014-12-28 32049
39 Softphones admin 2014-09-20 13894
38 /xxxxx/gen already exists but is not a source folder. Convert to a source folder or rename it. admin 2014-09-03 17788
37 Improving QoE of SIP-based Automated Voice Interaction in Mobile Networks file admin 2014-03-20 15805
36 speex support in android admin 2014-03-19 15011
35 voxmobile Source and how to build admin 2014-02-18 16396
34 PJSIP hung the phone constantly corrected the problem admin 2014-02-09 24021
33 Csipsimple code rebuilding source 다운로드 구성 csipsimple 소스 프로젝트 admin 2014-02-09 18255
32 Android DialogFragment Tutorial admin 2014-02-09 16649
31 Creating a fullscreen DialogFragment with a custom background admin 2014-02-09 19642
30 [Android API] 네트워크 상태 체크하기 admin 2013-12-19 21719
29 [안드로이드] 네트워크 연결 상태 체크 함수. admin 2013-12-19 18217
28 안드로이드 인터넷연결체크 ( 3g/lte/wifi ) 메서드 admin 2013-12-19 25422
27 Android Get Phone Contacts details with Contact Image admin 2013-12-15 21023
26 안드로이드 커스텀 타이틀바 How to add custom title bar to android application admin 2013-10-02 20638
25 How to create a custom title bar admin 2013-07-15 18694
24 Rotary Dialer clip art admin 2013-04-20 27142
23 Java 프로그램 실행화일 만들기 : Launch4j admin 2013-02-21 23942
22 java network programming source code, learning socket programming admin 2012-12-04 20030
21 Unicode Tables v4 admin 2012-10-16 114477