Hi all<br><br>I'm new to FS and I would like to know is it possible to implement following scenario:<br><br>1. User dials number<br>2. Routing script detects outgoing call event. Every call needs to be handled by routing script.<br>
3. Routing script takes in input: user name, domain, dialed number. Than it query database to find best SIP trunk to route the call, it also checks destination price per minute and calculates maximum call time for prepaid user.<br>
4. Routing script output is: SIP trunk to use, SIP call parameters (ie. callerid), maximum call duration<br>5. FS read output from routing script and make call using returned parameters<br><br>Preferred routing implementation technology: background running unix deamon written in Java or PHP. Connection with FS via socket.<br>
<br>Event routing script will be multi-threaded, must be able to deal with a lot of calls in parallel and processing of one call should not block processing of other calls (I have this problem with Yate voip server, and that's really big problem)<br>
<br>Is it possible to do this using FS?<br>Any advices where to search for additional info? I know that there is event handler but can it return "dialstring" for outgoing call events?<br>Some code examples?<br><br>
I will really appreciate your help<br><br><br><br><br>