Playing with ESL and need some advice. How can I schedule this dialplan command for example: <action application="event" data="Event-Subclass=myevent::notify,Event-Name=CUSTOM,key1=value1,key2=value2"/> I want to shedule from ESL to raise CUSTOM event in x seconds, so I can catch this event in ESL. Should I send Api or Command from my code (ESL)? I tried to send like: sched_api +5 cc event Event-Name=CUSTOM, Event-Subclass=mysub::sub But I get error Invalid Command! Any hint?
Or maybe if I explain what I want to achive. I want to triger CUSTOM event in 10 seconds for example. I know that sched_api is right tool to do this job, but do not know how to set command event ... in sched_api. Maybe another way for this scenario? Best regards, Gregor 2016-03-21 0:43 GMT+01:00 Gregor Nanger <gregor@infomedia.si>:
Playing with ESL and need some advice.
How can I schedule this dialplan command for example:
<action application="event" data="Event-Subclass=myevent::notify,Event-Name=CUSTOM,key1=value1,key2=value2"/>
I want to shedule from ESL to raise CUSTOM event in x seconds, so I can catch this event in ESL.
Should I send Api or Command from my code (ESL)?
I tried to send like:
sched_api +5 cc event Event-Name=CUSTOM, Event-Subclass=mysub::sub
But I get error Invalid Command!
Any hint?
-- Gregor Nanger *CTO* t./f.: 00386 (0) 7 6000 308/309 • m:. 00386 (0)41 756485 • Infomedia d.o.o. • Jerebova 3, Novo mesto, Slovenia • www.infomedia.si
participants (1)
-
Gregor Nanger