pass simple GET to jam.py and get answer

32 views
Skip to first unread message

Andreas Schneider

unread,
Jan 27, 2025, 2:14:34 AM1/27/25
to Jam.py Users Mailing List
Yealink IP Phone have a feature called "Action URL"

a action url is like this: https://SERVER/somepath/?action=get_caller_id&callerid=12345&other=otherdata

on_ext_request .. need a POST of JSON .. i think this is the wrong way

Some ideas?


Dean D. Babic

unread,
Jan 27, 2025, 5:03:30 AM1/27/25
to Jam.py Users Mailing List

Drazen Babic

unread,
Jan 27, 2025, 7:53:36 AM1/27/25
to Jam.py Users Mailing List
Sorry,
maybe I missed it, do you need to get the data from something like this u posted?

If you do, this is not on_ext tho but any Python way of doing it. Even curl comnand can GET the data.

on_ext is used to provide the data, unless you are building a server code to get data from somewhere, use it and spit the results out :)
Like in here:

D.


--
You received this message because you are subscribed to a topic in the Google Groups "Jam.py Users Mailing List" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jam-py/JDMEd2kkgoU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jam-py+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/jam-py/09eaad9e-c398-4825-8c7f-367da14514bbn%40googlegroups.com.

Andreas Schneider

unread,
Jan 27, 2025, 12:23:03 PM1/27/25
to Jam.py Users Mailing List
Please excuse me, I think I was too imprecise... The IP phone calls the URL (via GET).. where SERVER is the jam.py application. Jam.py then returns an XML response to the IP phone. That would be the goal.

i can only change the "action url" .. i can't use POST and can't "json"izing the request
Reply all
Reply to author
Forward
0 new messages