[Freeswitch-users] Erlang Receive from FreeSWITCH mod_erlang_event

Andrew Thompson andrew at hijacked.us
Mon Jul 12 18:56:53 PDT 2010


On Mon, Jul 12, 2010 at 04:53:03PM -0500, David Swardstrom wrote:
> I see by the Wiki, that if the Erlang application wants to receive any events
> from FreeSWITCH, it must provide a single receiver for all events. 
> It would then have to distribute the events.
> 
> However, the situation does not seem to be obvious for receiving responses to
> API requests.
> 
> If Erlang Process A makes API call C1 and Process B also makes API call C2. 
> Will the response to C1 be sent to the receive entry for Process A and the 
> response to C2 be sent to the receive entry for process B?
>
Yes, the module sends the API or bgAPI response to the pid which
executed the request. This is unrelated to how events are handled
(although I've considered allowing multiple event receivers).

Andrew



More information about the FreeSWITCH-users mailing list