user2191560
user2191560

Reputation: 21

ejabberd add iq handler

I have created an iq handler. When calling it, it prints me this error

{function_clause,[{jlib,iq_to_xml,[ok]},
                     {gen_iq_handler,process_iq,6},
                     {gen_iq_handler,handle_info,2},
                     {gen_server,handle_msg,5},
                     {proc_lib,init_p_do_apply,3}]}

Upvotes: 1

Views: 515

Answers (1)

Dmitry Belyaev
Dmitry Belyaev

Reputation: 2593

You should return #iq{} record instead of ok atom from your iq handler. Let us see your code to be more specific.

Upvotes: 1

Related Questions