2011/10/3 Jon Bonilla manwe@aholab.ehu.es:
Due to a couple of bugs in the dialog module I'd suggest you to run this code after the user auth has been successfull. You'll need to call dlg_manage() function first.
The other bug makes the dialog not being freed if you send a sl reply generated by the proxy. You should call t_newtran + t_reply to send a statefull reply to the user.
Mixing two points above into a single one:
- Just call dlg_manage() after the authentication and authorization has been made.
As a recommendation, call dlg_manage() just before t_relay() and you are done (and you will avoid both bugs explained by Jon).