[Freeswitch-dev] mod_event_socket or mod_xml_rpc?

João Mesquita jmesquita at freeswitch.org
Thu Jan 16 17:18:07 MSK 2014


"A common neologism <http://en.wikipedia.org/wiki/Neologism> in the Python
community is *pythonic*, which can have a wide range of meanings related to
program style. To say that code is pythonic is to say that it uses Python
idioms well, that it is natural or shows fluency in the language, that it
conforms with Python's minimalist philosophy and emphasis on readability."

Source: http://en.wikipedia.org/wiki/Python_(programming_language)


João Mesquita
FreeSWITCH™ Solutions


On Wed, Jan 15, 2014 at 11:38 PM, Anthony Minessale <
anthony.minessale at gmail.com> wrote:

>
>
>
> On Wed, Jan 15, 2014 at 6:37 PM, João Mesquita <jmesquita at gmail.com>wrote:
>
>> Tony, the swigged version of ESL python module is not at all pythonic. As
>> an example the use of get header for events that could use a more pythonic
>> syntax like dicts do. I didn't mean to say that I wanted to no use the ESL
>> C implementation as base at all, I just meant that the wrapper could be
>> done using a tool that would make the python module more pythonic but still
>> keeping the underlying implementation in C intact. Maybe that is doable
>> using swig an if that's the case please ignore my own stupidity.
>>
>> Sent from my iPhone
>>
>>
>
> "pythonic" ? I'll pretend you didn't say that lol....
>
>
>> On Jan 15, 2014, at 9:30 PM, Anthony Minessale <
>> anthony.minessale at gmail.com> wrote:
>>
>> Why would you want to make a non-swig version of the ESL lib?  The whole
>> point is to make sure you get a reliable client.
>> Everyone who tries to make their own runs into one of many challenges
>> that are hard to overcome in a script lang.  This is why you have the
>> benefit of the wrapped C lib.
>>
>> xml_rpc has a bit less capability and is for sure less stable and
>> scalable when put head to head with ESL.
>> I wrote both of them myself so I'm not driven by affinity to one or the
>> other.  AFAIK xml_rpc is stable but the lib used is not so hot and I always
>> wanted to use something better.
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> On Wed, Jan 15, 2014 at 6:10 PM, canuck15 <canuck15 at hotmail.com> wrote:
>>
>>> I sort of figured someone would say that.  Actually mod_xml_rpc seems to
>>> be similar to mod_xml_curl. Since I already have that mod_xml_curl fetches
>>> from my app  working well I don’t think I will switch that.  Also just read
>>> that fs_cli uses ESL so that has sold me on sticking with it.  I just want
>>> to make sure I am not using features that are a bit on the fringe where
>>> it’s not very active, well tested, and fixes don’t come along very often.
>>>
>>>
>>>
>>> *From:* freeswitch-dev-bounces at lists.freeswitch.org [mailto:
>>> freeswitch-dev-bounces at lists.freeswitch.org] *On Behalf Of *Michael
>>> Jerris
>>> *Sent:* Wednesday, January 15, 2014 11:17 AM
>>> *To:* freeswitch-dev at lists.freeswitch.org
>>> *Subject:* Re: [Freeswitch-dev] mod_event_socket or mod_xml_rpc?
>>>
>>>
>>>
>>> They are completely different tools for different jobs, not a one or the
>>> other situation.
>>>
>>>
>>>
>>> On Jan 15, 2014, at 1:32 PM, canuck15 <canuck15 at hotmail.com> wrote:
>>>
>>>
>>>
>>> I am trying to update an old abandoned app (WikiPBX) which is written
>>> using Django Python and uses mod_event_socket and mod_xml_curl to talk with
>>> Freeswitch.
>>>
>>>
>>>
>>> I’ve got most things working except the most important part which is
>>> mod_event_socket.  Now I found mod_xml_rpc which seems like a better way to
>>> go.
>>>
>>>
>>>
>>> Just wanted to get some opinions which is the better api interface
>>> before I get too far into trying to get mod_even_socket working properly.
>>> So far it’s been quite the headache.  I am currently looking at fusionpbx
>>> and bluebox code to see what they are doing.
>>>
>>>
>>>
>>> _________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org
>>> http://www.freeswitchsolutions.com
>>>
>>> 
>>> 
>>>
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://wiki.freeswitch.org
>>> http://www.cluecon.com
>>>
>>> FreeSWITCH-dev mailing list
>>> FreeSWITCH-dev at lists.freeswitch.org
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
>>> http://www.freeswitch.org
>>>
>>>
>>
>>
>> --
>> Anthony Minessale II       ♬ @anthmfs  ♬ @FreeSWITCH  ♬
>>
>>http://freeswitch.org/http://cluecon.com/>> http://twitter.com/FreeSWITCH
>> ☞ irc.freenode.net #freeswitch ☞ *http://freeswitch.org/g+
>> <http://freeswitch.org/g+>*
>>
>> ClueCon Weekly Development Call
>> ☎ sip:888 at conference.freeswitch.org  ☎ +19193869900
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> 
>> 
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-dev mailing list
>> FreeSWITCH-dev at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
>> http://www.freeswitch.org
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> 
>> 
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-dev mailing list
>> FreeSWITCH-dev at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
>> http://www.freeswitch.org
>>
>>
>
>
> --
> Anthony Minessale II       ♬ @anthmfs  ♬ @FreeSWITCH  ♬
>
>http://freeswitch.org/http://cluecon.com/> http://twitter.com/FreeSWITCH
> ☞ irc.freenode.net #freeswitch ☞ *http://freeswitch.org/g+
> <http://freeswitch.org/g+>*
>
> ClueCon Weekly Development Call
> ☎ sip:888 at conference.freeswitch.org  ☎ +19193869900
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-dev mailing list
> FreeSWITCH-dev at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20140116/866524d4/attachment-0001.html 


Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-dev mailing list