简体   繁体   中英

SIP call using Peers Java API

I am using java SIP library ( http://peers.sourceforge.net/ ) to implement SIP call in my application. I am looking an option by which i can handle my GUI state on the basis of events which generate when user invite other user for call until remote(other user) don't accept a call.

I have seen calleepickup:

@Override
public void calleePickup(SipResponse sipResponse)

This event trigger when call accept/reject dialog appear on remote side however i was assuming this when exactly a remote accept a call.

Same as ringing event is not invoke in any case either i dial or receive a call from remote.

@Override
public void ringing(SipResponse sipResponse)

Any idea how i can add this functionality to handle my dialup GUI.

Take a look at https://github.com/ymartineau/peers/blob/master/peers-gui/src/main/java/net/sourceforge/peers/gui/EventManager.java

There are methods for all events (incoming call, callee pickup, call rejected, etc). You should manage your own state machine to handle events.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM