[Freeswitch-users] Pre-paid impossible with freeSwitch ?
Michael Collins
msc at freeswitch.org
Wed Dec 15 03:20:16 MSK 2010
If you can execute a system command then you could do something as simple as
this:
system('fs_cli -x "uuid_kill xxxxxxxx"')
Where xxx is the uuid you want to hang up.
Just so you know, the method you've chosen may have been somewhat easy to
implement, it probably won't scale very well because you'll have a JS
instance for every call that goes through this billing system. A few dozen
calls won't be a problem, but if you intend to scale then I would recommend
you look at creating a call control system written in C or use ESL (event
socket library) to have a program connect to FS via TCP where you can
control many hundreds of calls simultaneously and you can have your program
connect to an external database, checking balances, etc.
Just my two cents.
-MC
On Tue, Dec 14, 2010 at 2:27 PM, Shamun toha md <shamun.toha at gmail.com>wrote:
> Is there no scanner using crontab to connnect FS and trigger command
> uuid_drop uuid that i want to drop ?
>
> - How can i solve this using ? "SpiderMonkey" is there any patch to have
> the setTimeout() function alteast, which will be a scanner for my
> session.uuid's ???
>
>
>
>
>
> On Tue, Dec 14, 2010 at 10:34 PM, Brian West <brian at freeswitch.org> wrote:
>
>> I have to say that statement right there is WRONG. You should never ever
>> be doing billing inline like this and if you are you're doing it wrong.
>>
>> Just my advice here... you don't have to follow it you can take it with a
>> grain of salt but if you really want to do this correctly then you had
>> better learn C.
>>
>> /b
>>
>> On Dec 14, 2010, at 3:32 PM, Shamun toha md wrote:
>>
>> > I build the whole billing using Javascript
>>
>>
>> _______________________________________________
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20101214/22ba04da/attachment.html
More information about the FreeSWITCH-users
mailing list