You will have to generate your own channel uuid and then set origination_uuid when you do the originate call in FS. Also, you will need to subscribe to this uuid before trying to originate the actual call. /Peter Från: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] För Adam Raszynski Skickat: den 14 juni 2012 15:43 Till: FreeSWITCH Users Help Ämne: [Freeswitch-users] ESL originate - call events are sent too fast Hi all I have some little problem with events generated by ESL originated calls. Maybe someone had similar problem and could post how to solve it. I would like to originate call and receive events related only to that call. At the same time my originate script is executed multiple times i.e. 100 times. Current version of my script works like this: - send api originate [params]target via ESL - wait for originate response to get uuid - add filter: filter Unique-ID <uuid of my call> - subscribe for events: event plain CHANNEL_ANSWER CHANNEL_HANGUP CUSTOM spandsp::txfaxresult Unfortunately execution of all above statements sometimes take a while and in meanwhile FreeSWITCH generates event and send it back to my script BEFORE it has subscribed to receive events. It happens for example for very fast call answer or hangup. In that case I lost important answer or hangup event and all processing logic is broken. I've tried to change sequence of commands, but when I put event subscription before adding filter then I get events from other channels. I also can't add filter earlier because need to wait for originate response. Any hints on this? !DSPAM:4fd9f54532761072142040!