2011-05-14 108 views

回答

0

好吧,我已经找到了,但我有一个问题

public int getState() 

Since: API Level 9 
Gets the session state. The value returned must be one of the states in SipSession.State. 
Returns 

the session state 

如何把在gesState不断INCOMING_CALL_ANSWERING()?

if (call.getState(INCOMING_CALL_ANSWERING)) 

?? ?? 这不起作用。

编辑:好吧,我ahve做这样的:示例代码

if (call.getState()== 4) 
2

部分SipDemo

一个B键

call = manager.makeAudioCall(me.getUriString(), "[email protected]", listener, 30); 

;当B答案

SipAudioCall.Listener listener = new SipAudioCall.Listener() { 

    @Override 
    public void onCallEstablished(SipAudioCall call) { 
     Log.v("call","b answering");     
     call.startAudio(); 
    }