Voximplant – the callSIP method to call a phone number - voximplant

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.

Related

Voximplant forward the call to another phone number

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

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'));
})

ESME parameters confirmation

we are writing a component which sends message to a device thru one 3rd party interface.
i did used smpp client code to do that, but i want to make sure that what ever parameters i am passing is correct.
anyone correct me on below parameters if i am wrong.
sender = // 3rd party IP address
destination = // sim number which i want to send sms to it
ipAddress = "smpp.xyzwireless.com"; // provided by 3rd party
port = 2775;
systemId = srini // provided by 3rd party
password = srini // provided by 3rd party
and the with above details Bind() method will execute first then submit() and unBind() methods.
after you confirmed above parameters, could you confirm below possibility.
i want to keep the connection between ESME and SMSC alive for some long time. for that i am doing enquireLink() method.
i am placing this enquireLink method inside Timer() of java so it keeps check the connection for every 45 seconds and re-establish the disconnection time to next 60 seconds from time of enquireLink.
Am i thinking anything wrong here? correct me guys.
Thanks in advance.
If JSMPP implements opensmpp the same way other os-libs do, then sender will stand for an A-number — alpha-numeric or simply numeric string of no more that 11 bytes that represents your identity to a recipient.
You can think of it as your ESME sim number.
You might also need to specify source_TON and source_NPI to help SMSC understand the contents of this sender field.
The rest of your parameters and methods seem fine.

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)

Why doesn't the Cisco WebDialer API use the lineNumber specified when dialing a call?

I am using the Cisco WebDialer API to place calls for users with multiple lines. When calling makeCallSoap, the lineNumber property of the UserProfile argument seems to be ignored. The call is dialed successfully, but the user's default line is always used rather than the line specified in the UserProfile argument.
How can I dial a call using a line other than the default with the WebDialer API?