Jump to content
PortSIP PBX for Unified Communications
Sign in to follow this  
Kristof Sztaho

VOIP call events (how to handle)

Recommended Posts

Hello,

We're just about to use PortSIP SDK in our new mobile applications (Android and iOS). We faced the following problem in our POC phase:

We cannot identify the positive/negative answer from the called client in the caller app. In our caller application (and in the downloadable portsip client app as well) the same onInviteAnswered and onInviteConnected events are triggered on answering and rejecting the call. The only difference in the two scenarios is a tiny difference in the sipMessage:

On "answered" case the \"Outbound Call\" string value appears in the sip message in a certain place.
When the called number was "offline": application/sdp\r\n appears.

The reject and the hangup cannot be identified from each other.

Could you please help me with some details of the correct call-handling?

 

Thanks in advance!

Regards,

Kristof

 

Share this post


Link to post
Share on other sites
12 hours ago, Kristof Sztaho said:

Hello,

We're just about to use PortSIP SDK in our new mobile applications (Android and iOS). We faced the following problem in our POC phase:

We cannot identify the positive/negative answer from the called client in the caller app. In our caller application (and in the downloadable portsip client app as well) the same onInviteAnswered and onInviteConnected events are triggered on answering and rejecting the call. The only difference in the two scenarios is a tiny difference in the sipMessage:

On "answered" case the \"Outbound Call\" string value appears in the sip message in a certain place.
When the called number was "offline": application/sdp\r\n appears.

The reject and the hangup cannot be identified from each other.

Could you please help me with some details of the correct call-handling?

 

Thanks in advance!

Regards,

Kristof

 

Hi, there also has the onInviteFailure callback event.

 

Share this post


Link to post
Share on other sites
9 hours ago, admin said:

Hi, there also has the onInviteFailure callback event.

 

Hi, in our case the onInviteFailure was not called, only the two events described above. It's a bit strange anyway why the onInviteConnected was called in the first place when an explicit reject was answered?

Edited by Kristof Sztaho

Share this post


Link to post
Share on other sites
16 hours ago, Kristof Sztaho said:

Hi, in our case the onInviteFailure was not called, only the two events described above. It's a bit strange anyway why the onInviteConnected was called in the first place when an explicit reject was answered?

You should check your server, the callback events depend on the messages which received from server.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...