[Freeswitch-users] how to get session of bridged Bleg
Michael Collins
msc at freeswitch.org
Fri May 28 20:56:40 PDT 2010
On Fri, May 28, 2010 at 8:19 PM, Henry Huang <b_ball_henry at hotmail.com>wrote:
> Anthony:
>
> Can you kindly describe why is it not a good practice to do accounting in
> the script? And what's the major benefit for doing accounting from a
> separate system?
>
> "Separation of concerns." The PBX/soft-switch is designed to connect calls
and it does a great job of that. It also does a great job of producing raw
information from which a proper database application can do billing. Mixing
the two has, at best, marginal benefits, but it can cause many troubles.
Having the billing app/db in a separate process (preferably on a completely
separate system) makes it more robust, more scalable, easier to maintain and
easier to troubleshoot. Those rewards are well worth the relatively small
effort that is required to build the billing system separately.
-MC
> Henry
>
> Chat Skype: unicsolution MSN: b_ball_henry at hotmail.com
> Contact Me [image: Linkedin]<http://www.linkedin.com/pub/henry-huang/1/654/578>[image:
> Facebook] <http://www.facebook.com/profile.php?id=595148342>[image:
> Twitter] <http://twitter.com/unicsolution>
>
>
> On Sat, May 29, 2010 at 3:41 AM, Anthony Minessale <
> anthony.minessale at gmail.com> wrote:
>
>> you can't, at least the way you are trying.
>>
>> you should not be doing accounting in your script, rather, you should make
>> a separate system to process
>> call data.
>>
>>
>>
>>
>> On Fri, May 28, 2010 at 12:43 PM, Frank @ Impact <frank at impactfax.com>wrote:
>>
>>> FreeSWITCH Version 1.0.head (git-) from 5/28/10
>>>
>>>
>>>
>>> I have a lua script called from the dialplan that bridges the call with
>>>
>>> session:execute("bridge","{route=sofia/gateway/US/15555551212}
>>> sofia/gateway/US/15555551212")
>>>
>>>
>>>
>>> after the call ends, I am trying to get some variables out of the Blegsession, the bridged leg.
>>> But I do not have a session handle to get the variables. I know what
>>> the uuid is from global variable_bridge_uuid. But how can I get the
>>> session of the B-leg so that I can do a getVariable()? The variables I
>>> want are not available in any of the global variables I can see with info.
>>>
>>> _______________________________________________
>>> 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
>>>
>>>
>>
>>
>> --
>> Anthony Minessale II
>>
>> FreeSWITCH http://www.freeswitch.org/
>> ClueCon http://www.cluecon.com/
>> Twitter: http://twitter.com/FreeSWITCH_wire
>>
>> AIM: anthm
>> MSN:anthony_minessale at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
>> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
>> IRC: irc.freenode.net #freeswitch
>>
>> FreeSWITCH Developer Conference
>> sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
>> googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
>> pstn:+19193869900
>>
>> _______________________________________________
>> 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/20100528/2e6d17de/attachment-0001.html
More information about the FreeSWITCH-users
mailing list