sip call forwarded to implant forwarded to next sip server
I don't know about webRTC and JS codes etc. I want to make a scenario on implant and want to know if some body can help and send me simple guides and instructions. this is my voice task: I want to buy DIDs from a third party then I want to make a main account on voximplant and make users and transfer funds to users. I want to assign a DID to each user and charge the incoming calls then route the calls to next sip server for termination like this: DID email@example.com --> firstname.lastname@example.org--> email@example.com and DID firstname.lastname@example.org --> user email@example.com --> firstname.lastname@example.org etc. I want to use voximplant as a billing solution to charge the calls per destination prefix.
I will appreciate if some one can learn me configuration for one DID then I will do for other DIDs with same format.
You need to write scenario that will do the following:
1. When an incoming call arrives (AppEvents.CallAlerting is received), make an outbound SIP call (using VoxEngine.callSIP) to desired destination. You can store destination mapping in JS code or request it from your web service using Net.httpRequest.
2. Handle call events (CallEvents.Connected, CallEvents.Failed, CallEvents.Disconnected) on outbound call and invoke control methods of incoming call appropriately (Call.hangup(), Call.answer(), etc.)
3. Make HTTP request to your system with call duration passed into it using Net.httpRequest function when call is terminated.
Here's the list of tutorials thay may help:
Then you need to create VoxImplant application.
And finally you should create a rule in that application with .* pattern
Then you need to forward DIDs to your app (sip:email@example.com). Also please make sure that IP addresses of DID providers are added to SIP whitelist in Control Panel.
Thank you for your response. I believe it will be very useful and applicable for whom like me if you can make several manuals with details of lines of codes and direct to scenarios, apps, users, etc. here is some more frequent scenarios:
SIP DID --> webRTC browser : in this scenario I buy a DID from a 3rd DID provider and asnwer it on browser
SIP DID --> Mobile SDK : in this scenario I buy a DID from a 3rd DID provider and asnwer it on Mobile SDK
webRTC Browser --> SIP URI : in this scenario I login to browser account and make call it a
Mobile SDK --> SIP URI
SIP DID --> VOXIMPLANT CLOUD --> SIP URI
If you could make such manuals then I could go to my account and follow steps 1,2,3,,,, told on the manual and create what I need esily.
I am really want to make such scenarios for my business but am not able create the scenarios I need through your docs posted on your website.
Mahmoud, thanks for your feedback. We will work on the examples.
Add your comment
Get your free developer account or talk with our sales team to learn more about Voximplant solutions