한국어

스마트폰앱

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


}

조회 수 :
12418
등록일 :
2019.09.07
20:49:13 (*.214.125.21)
엮인글 :
http://webs.co.kr/index.php?document_srl=3320518&act=trackback&key=ef4
게시글 주소 :
http://webs.co.kr/index.php?document_srl=3320518
List of Articles
번호 제목 글쓴이 날짜 조회 수
» mjsip sip sample code program admin 2019-09-07 12418
10 Sqlite detail easy tutorial. admin 2017-09-09 21283
9 Liblinphone - import Linphone library in Android Studio 2017 admin 2017-08-25 19327
8 I am able to build the limphone on mac by follow the steps describe here admin 2017-08-25 17465
7 To build liblinphone for Android, you must COMPILATION INSTRUCTIONS admin 2017-08-25 26170
6 sipdroid source code admin 2017-08-08 17926
5 안드로이드 주소록 전체가져오기 이름만가져오기 사진가져오기 코드 admin 2015-04-13 78051
4 HSS070 English Korean 무료 국제전화 미국 중국 카나다 무료 통화 제공 admin 2014-12-28 49623
3 /xxxxx/gen already exists but is not a source folder. Convert to a source folder or rename it. admin 2014-09-03 27797
2 speex support in android admin 2014-03-19 25760
1 [안드로이드] 서버/클라이언트 소켓(Socket) 통신하기 admin 2012-09-20 90329