Voximplant forward the call to another phone number - voximplant

During a call in Voxpmplant, I want to forward the call to another phone number. Do I understand correctly, that I need to call another user via the VoxEngine.callUser method and then unite them via VoxEngine.easyProcess method?

You call a user via VoxEngine.callUser, or VoxEngine.callPSTN, or VoxEngine.callSIP, and then unite the calls via the sendMediaBetween(call1, call2) method.
https://voximplant.com/docs/references/voxengine/voxengine/sendmediabetween

Related

Voximplant – the callSIP method to call a phone number

I want to use the Voximplant's callSIP method to call a phone number. Is it possible? How do I specify a number to call in the VoxEngine.callSIP() method?
When you call via callSIP, you make a call to a 3rd-party PBX. If the PBX allows calling to phone numbers, yes, you can do it, but you need to find out what format the PBX accepts.
In most cases, you can specify the number in the To field in the username part of the SIP address, for example: number_to_call#domain. Alternatively, you can call a phone number directly through Voximplant via the callPSTN() method.

Add IM message to UCMA AudioVideo Call

I have a UCMA AudioVideo call going to (Use called the bot). I could not figure out how to add an IM message to same call. Can anybody give a hint please.
And when IM and AV are in same call, then how to get the state of both calls?
Figured out the answer, There is conversation object associated with one type of call, same object is to be used to create another type of call.

Twilio call hold not working

We are using twilio API for hold call process but we are facing problem :
If we connect the call from A to B, then our call connecting successfully but when we are update the call for hold(Using updating method) then B putting on hold success, but A call disconnecting.
I want to put B on hold but should not disconnect the A call.
Please give me suitable suggestion for this hold process.
Thanks.
Firstly ,Its important to understand that putting a call on hold in the Twilio environment is not a native function rather it works like all updates to a call to connect the call to something else, which could be dialing a number,play an audio, place in queue etc..What you choose to implement the On Hold idiom is up to you.
Make sure you are updating the child sid not the parent sid.
I suggest reading this article What-is-a-Call-SID
If you update the parentsid the child will automatically be lost.
If you update the child sid , the parent call will be disconnected and continue with the original twiml that bridged the call in the first place. You have the option of leaving default fallthrough twiml to go to a queue etc..
Another method of implementing hold , is calling out using theAgent Outbund Conference Api

Using jsSIP in A Project

We're using jsSIP in our project and I'm trying to get phone number of the caller when receiving an incoming call. I could't find the answer in the jsSIP documentation.
In the above image, i want to take "1004" telephone number. How can i do that?
You can also use
session.remote_identity.display_name
for incoming calls
You can try this for incoming and outgoing calls and you will get the user that is calling you or you are calling
session.remote_identity.uri.user
You can try this for incoming and outgoing calls and you will get the user call-id name
session.remote_identity.display_name
In newRTCSession Event you will get a session object.
session.request.header.
Use session.request.getHeader('From') to get From number
coolPhone.on('newRTCSession',function(session){
console.log(session.request);
console.log('call Id',session.request.getHeader('From'));
})

How to disable a specific email in ActionMailer?

I would like to disable only certain emails.
I have a mailer class that has a method which is used to send the emails. I cannot get rid of the method itself as it is called from several places. I would like to change the method in such a way that the calls to the method doesn't actually send any email.
You could throw this in your method or use it where you call deliver on the email that you do not want to send in production
unless Rails.env.production?
EDIT
If you just want to check the class of the call
if self.is_a?(class)