[Freeswitch-users] mod_erlang_event problem

Andrew Thompson andrew at hijacked.us
Thu Jun 24 07:57:50 PDT 2010


On Thu, Jun 24, 2010 at 05:58:44PM +0500, Timur Irmatov wrote:
> Hi!
> 
> I am trying to use mod_erlang_event with freeswitch 1.0.6 on Red Hat
> Enterprise Linux Server release 5.4, 64-bit server. Erlang version is
> R13B04. Calls are sent to my erlang application via:
> 
>   <extension name="phonebooth">
>     <condition field="destination_number" expression="^000([0-9]+)$">
>       <action application="erlang" data="phonebooth:launch test at test-server" />
>     </condition>
>   </extension>
> 
> My application is very simple: it just prints all events received from
> freeswitch. The problem is, that call is being terminated immidiately.
> As far as I can see, phonebooth:launch is called successfully, it
> returns a pid of a new process. This new process is still alive after
> the call is finished, and it does not receive any events from
> freeswitch (if it would, it would print them to screen). Freeswitch
> log tells me that erlang_outbound_function exits as soon as it gets
> new pid
> 

Yeah, I think this is a bug - Can you show me the code that's running?

I think the bug is in the RPC mechanism vs the ! variant, unfortunately
I don't have a box with *both* freeswitch and erlang on it handy at the
moment - can you write a simple daemon that waits for the get_pid
messages and spawns on demand, as described on the wiki, and see if it
works that way (that's the way I usually do it).

Thanks,

Andrew



More information about the FreeSWITCH-users mailing list