How can I configure asterisk to notify dialog-info?

My asterisk’s version is 1.4

Now I want to configure asterisk to support sending notify message to get dialog info.

I have made hint in extensions.conf, so I could subscribe the dialog-info when I want it.

Does asterisk still support when I invite another UA,asterisk could proxy it, and notify me that UA’s dialog state at the same time. For example, A and B both registered to asterisk. A invite B, then asterisk will invite B,and notify A with message body which discribed B’s state info wih xml in different stage,100 trying,180 ringing,200 ok,bye, etc.