Page 1 of 1

Event push

PostPosted: Tue Jan 04, 2022 8:32 am
by Zaraab
I want some further clarity regarding how to use this http://vicidial.org/docs/AGENT_EVENTS_PUSH.txt

For using the event push function if I should use this get2post.php?uniqueid=--A--epoch--B--.--A--agent_log_id--B--&type=event&HTTPURLTOPOST=192.168.1.3/agc/vdc_call_url_test.php?user=--A--user--B--&lead_id=--A--lead_id--B--&event=--A--event--B--&message=--A--message--B--&counter=--A--counter--B--

where should I put the external URL which acts like my webhook URL so that the retrieved data from the event push vicidial Function can be sent to my custom webhook external URL. Where should I put my URL ?

Thanks!

Re: Event push

PostPosted: Tue Jan 04, 2022 9:34 am
by mflorell
Yes, the external URL should start at the "192.168.1.3..." part above, you do NOT put the "http://" part because that is implied already.

Re: Event push

PostPosted: Tue Jan 04, 2022 9:42 am
by Zaraab
mflorell wrote:Yes, the external URL should start at the "192.168.1.3..." part above, you do NOT put the "http://" part because that is implied already.



so you mean to say the url should be like this ->>>

get2post.php?uniqueid=--A--epoch--B--.--A--agent_log_id--B--&type=event&HTTPURLTOPOST=mywebhookurl/page.php?user=--A--user--B--&lead_id=--A--lead_id--B--&event=--A--event--B--&message=--A--message--B--&counter=--A--counter--B--

Re: Event push

PostPosted: Wed Jan 05, 2022 7:15 am
by mflorell
That looks correct.

Re: Event push

PostPosted: Wed Jan 05, 2022 9:32 am
by Zaraab
mflorell wrote:That looks correct.


My bad!!! not working even with this format :(

Re: Event push

PostPosted: Thu Mar 24, 2022 10:37 am
by Zaraab
Zaraab wrote:
mflorell wrote:That looks correct.


My bad!!! not working even with this format :(


anyone working on it?

Re: Event push

PostPosted: Fri Jun 03, 2022 2:53 pm
by williamconley
perhaps check your apache log during an event to see what's happening. I've not tested this feature yet so I can't say, but something bothers me about having a second ? in the URL even if it should be inside a value. Perhaps needs to be converted to %3F, in fact I'd say everything after HTTPURLTOPOST= would require conversion or would break up into separate key/value pairs after the next &

Re: Event push

PostPosted: Tue Jun 14, 2022 1:49 pm
by Zaraab
williamconley wrote:perhaps check your apache log during an event to see what's happening. I've not tested this feature yet so I can't say, but something bothers me about having a second ? in the URL even if it should be inside a value. Perhaps needs to be converted to %3F, in fact I'd say everything after HTTPURLTOPOST= would require conversion or would break up into separate key/value pairs after the next &

Got it. Gonna give it a try the way you suggested