<div dir="ltr"><div><div><div><div>Hi List, I want, but is unable to subscribe to 2 events CHANNEL_CREATE and CHANNEL_DESTROY using ESL.<br></div><br>In a normal call caller <--> FS <--> callee, 2 CHANNEL_CREATE and 2 CHANNEL_DESTROY events fired and captured is my expectation.<br><br>I achieved it easily via writing a new FS module in C. But I have some portion of python codes needed to be executed, so I tried alternative (my thought) way:<br></div>- ESL inbound mode, but inbound connection is not bound to any particular channel<br></div>- ESL outbound mode, but outbound connection is created from dialplan, so I guess CHANNEL_CREATE event could not be captured.<br></div>- set up hangup_hook with mod_python, but python application is also called from dialplan.<br><div><div><br><div><div><div><div>Please correct me if I'm wrong somehow, and give me some advices for what I'm trying to accomplish, since I don't want to rewrite my python code in C.<br><br></div><div>Any help would be appreciated.<br></div><div>rgds,<br></div><div><br clear="all"><div><div><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div>Loi Dang Thanh<br></div>Phone : +84.1224.735.448<br></div>Email : <a href="mailto:loi.dangthanh@gmail.com" target="_blank">loi.dangthanh@gmail.com</a><br></div></div></div></div></div>
</div></div></div></div></div></div></div></div></div>