How to create a kind of SDK for JainSIP? - jain-sip

I'm gonna use jainSIP in a softphone and I wonder somethings.
For events like hang up the call, hold, resume, cancel, reject the call, How the call Id can be pulled up to the softphone ? I know during an answer, it's the request.getHeader which provide call Id but for these events ?
Thank you in advance !

JAIN SIP gives you raw access to the message, you will have to build the functions of the SDK yourself ie call, hold, resume, cancel, reject.

Related

Check when user calls a certain number Call Kit

I am trying to use call kit or another library to check when a user calls a certain number. I want to know when this happens so that I can send the user a notification. I know that you can detect incoming calls but not sure if outgoing calls are allowed. Is there any way for me to do this?
Thanks in advance

iphone push notification to trigger a method

I am not a developer as much as i am a project manager, i need to know more if the following is possible to help me decide the future of a project.
mainly my question is, can i trigger a certain method (function) in my application using the push notification ? so my app might be in the background (or not) and i want to send a push notification message that wakes the application and execute some piece of code.
if the answer is yes, can this be done without the user interaction ? so i mean without the user clicking on the push message ? to be some kind of automated, so i send the Push notification message, the iPhone receives it and execute the code, without the use interaction ?
i can set up my own APNS server if needed.
i am not looking for a code as much as i am looking for an answer if this can be done or not.
Thanks,
Yes, this is possible, as long as the user clicks on the notification. This could be done either with local notifications, or push notifications.
When an application is launched in response to a notification, the AppDelegate method application:didFinishLaunchingWithOptions: will have an option indicating the notification that precipitated the launch.
It cannot, to my knowledge, be achieved without user interaction.

Call transfers, hold and conference calls

In the process of building an operator application in C# I have encountered some problems. They all stem from the fact that the operator isn't actually a phone. So doing things like transfer a call (a BYE then REFER), or placing a call on hold (send another INVITE as a=recvonly) are easy for phones to do because they already hold state information about the call dialog from the initial handshake.
Is it possible to send INVITEs on behalf of another phone to get them into conference? Is it possible to send INVITEs on behalf of another phone to get them into hold?
Well, if you are using Asterisk I'd recommend looking into Asterisk Manager Interface and not deal with SIP protocol directly. It provides methods to create/transfer/hangup calls,monitor,etc, and everything else you might need.

Is there a scenario, where even BYE from UA on the dialog does not result in deletion of the dialog?

Is there a scenario, where even BYE from UA on the dialog does not result in deletion of the dialog?
If so, can you please give an example for such scenario...
If you use RFC3265 the reception of a BYE for a call having pending subscriptions will not terminate the dialog. See RFC 3265 Section 3.3.4. Dialog creation and termination
If a UA doesn't receive the BYE, then of course it cannot know that the remote party has gone.
In that case, there are a few ways for it to realise that the dialog has in fact been terminated: it can use session timers, or watch what happens on the media plane - did those TCP connections terminate? have the RTCP reports stopped arriving? - or other mechanisms.
But otherwise, for the UA sending the BYE, the dialog has immediately terminated.

BlackBerry - Perform some actions before email/sms is sent

I haven't been able to found this on Google, so I thought maybe somene here knew if this was possible and if so, how to implement it =) thanks in advance for any answers!
What I am aiming for is overwriting this method so I can perform some actions before the sms/mail gets sent, then just allow it to perform its normal actions.
Use (link update) SendListener to handle sms send event, example: How To - Display a PopupScreen from a SendListener