[reSIProcate] Dialog Creation
Hi All,
I am trying to build a UserAgent, I am not using DUM, I have succeeded in
building the useragent except some minor functionality.
The problem is when i receive 200 OK i am able to create the Dialog like
this,
/**/
Dialog *dialog = new DeprecatedDialog(contact);
dialog->createDialogAsUAC(*response_received);
SipMessage *ack = dialog->makeAck(*response_received);
sipStack.send(*ack);
/**/
This happens when i send an INVITE and when i receive 200 OK and this
dialog i can use to create BYE Request for terminating the session.
Now the problem is when i receive an INVITE and send 200 OK, i will
receive ACK. For sending BYE i need dialog.
Now my question is where will be the dialog created. Whether i should
create a dialog like above or i should access the dialog if it is
existing, if so how.
Please help me regarding this. I am stuck up at this point
Thanks in advance
Regards
Santosh