[ejabberd] Flash jabber client : Howto serve cross-domain policy

cplusou-s at yahoo.fr cplusou-s at yahoo.fr
Mon Jun 9 16:54:47 MSD 2008


Hi,

How is it possible to modify this script to make it works with the latest version of ejabberd_c2s.erl file ?

%%***CODE START ***
wait_for_stream({xmlstreamstart, "policy-file-request", _Attrs}, 
StateData) ->
        ejabberd_receiver:reset_stream(StateData#state.receiver),
        send_text(StateData,
                "<?xml version=\"1.0\"?>\n"
                "<!DOCTYPE cross-domain-policy SYSTEM 
\"http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd\">\n"
                "<cross-domain-policy>\n"
                "       <allow-access-from domain=\"*\" to-ports=\"*\"/>\n"
                "</cross-domain-policy>\n\0"
        ),
        {stop, normal, StateData};
%%***CODE STOP ***
Thanks for your help


      _____________________________________________________________________________ 
Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jabber.ru/pipermail/ejabberd/attachments/20080609/f6635350/attachment.htm 


More information about the ejabberd mailing list