Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] mod_python3 - python_fetch


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
adrian at a2es.co.uk
Guest





PostPosted: Fri Dec 23, 2022 4:58 pm    Post subject: [Freeswitch-users] mod_python3 - python_fetch Reply with quote

Hello,
I notice that in mod_python3.c there are some parameters passed to the python_fetch function that do not appear to be used:
static switch_xml_t python_fetch(const char *section, const char *tag_name, const char *key_name, const char *key_value, switch_event_t *params, void *user_data)

section, tag_name, key_name and key_vlaue do not appear to be passed into the python interpreter  Where as in the lua language equivalent they are passed through.
Can anyone help me work out how to get these variables made visible within the python environment?  I believe there are key to making a python based xml handler.
Any help greatly appreciated.


--

Kind regards,

Adrian Fretwell
Back to top
adrian at a2es.co.uk
Guest





PostPosted: Wed Dec 28, 2022 8:32 am    Post subject: [Freeswitch-users] mod_python3 - python_fetch Reply with quote

Hello One & All,
Just an update.  I believe I have solved this.  I have created the following pull request:
https://github.com/signalwire/freeswitch/pull/1908
If anyone can see a better or more efficient way of doing this, please let me know.



Kind regards,

Adrian Fretwell

On 23/12/2022 21:51, Adrian Fretwell wrote:

Quote:

Hello,
I notice that in mod_python3.c there are some parameters passed to the python_fetch function that do not appear to be used:
static switch_xml_t python_fetch(const char *section, const char *tag_name, const char *key_name, const char *key_value, switch_event_t *params, void *user_data)

section, tag_name, key_name and key_vlaue do not appear to be passed into the python interpreter  Where as in the lua language equivalent they are passed through.
Can anyone help me work out how to get these variables made visible within the python environment?  I believe there are key to making a python based xml handler.
Any help greatly appreciated.


--

Kind regards,

Adrian Fretwell


Quote:
_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services