[Freeswitch-users] mod_erlang_event

Mark Sobkow m.sobkow at marketelsystems.com
Tue Feb 23 13:00:46 PST 2010


It's become clear that I need to use Erlang event processing to do what 
I need to do with Freeswitch, but I can't even get the most basic of 
tasks working yet.  (i.e. Answer the call and collect the PIN code from 
the operator.)

The dialplan version of what I'm trying to do is:


<extension name=\"OpCallsIn\">
    <condition field=\"destination_number\" expression=\"^6100$\">
        <action application=\"answer\" />
        <action application=\"play_and_get_digits\" data=\"4 4 1 5000 # 
/opt/freeswitch/sounds/en/us/callie/conference/8000/conf-pin.wav 
/opt/freeswitch/sounds/en/us/callie/conference/8000/conf-bad-pin.wav 
operator_pin \\d+\" />
        <action application=\"log\" data=\"INFO operator_pin is 
${operator_pin}\" />
        <action application=\"log\" data=\"INFO Queueing operator to 
fifo\" />
        <action application=\"fifo\" data=\"6100@${domain_name} in\" />
    </condition>
</extension>

Attached is the Erlang that's attempting to do the same thing.  The 
Erlang is invoked by the following dialplan fragment:

<extension name=\"ErlangCallback\">
    <condition field=\"destination_number\" expression=\"^6200$\">
        <action application=\"erlang\" data=\"pbx_callback 
pursuit at testsrv\" />
    </condition>
</extension>

Any suggestions?

-- 
Mark Sobkow
Senior Developer
MarkeTel Multi-Line Dialing Systems LTD.
428 Victoria Ave
Regina, SK S4N-0P6
Toll-Free: 800-289-8616-X533
Local: 306-359-6893-X533
Fax: 306-359-6879
Email: m.sobkow at marketelsystems.com
Web: http://www.marketelsystems.com 

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pbx_callback.erl
Url: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100223/55402511/attachment-0002.pl 


More information about the FreeSWITCH-users mailing list