SIGN UP

Developer community

Community Support / sip call forwarded to implant forwarded to next sip server
MAHMOUD
2014-08-23 17:19:09
Reply
sip call forwarded to implant forwarded to next sip server
Dear Community, 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 100@sipserver1.com --> user100@myaccount.voximplant.com--> 931234@sipserver2.com and DID 200@sipserver1.com --> user 200@myaccount.voximplant.com --> 971234@sipserver2.com 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. Regards, Mahmoud

Comments(3)

Andrey
2014-09-07 20:47:54
Reply
Hello Mahmoud. 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: http://voximplant.com/docs/quickstart/12/event-driven-call-processing/ 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:200@yourapp.youraccount.voximplant.com). Also please make sure that IP addresses of DID providers are added to SIP whitelist in Control Panel.
MAHMOUD
2014-09-18 17:55:55
Reply
Hello, 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.
admin
2014-09-18 19:18:49
Reply
Mahmoud, thanks for your feedback. We will work on the examples.

Add your comment

Please complete this field.

Get your free developer account or talk with our sales team to learn more about Voximplant solutions
SIGN UP