adds sending REFER in dialog

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@140 8eb893ce-cfd4-0310-b710-fb5ebe64c474
sayer/1.4-spce2.6
Stefan Sayer 20 years ago
parent f776df7eb8
commit a5dbceef55

@ -398,6 +398,25 @@ int AmSipDialog::update(const string& hdrs)
}
}
int AmSipDialog::refer(const string& refer_to)
{
switch(status){
case Connected:
return sendRequest("REFER", "", "", "Refer-To: "+refer_to);
case Disconnecting:
case Pending:
DBG("refer(): we are not yet connected."
"(status=%i). do nothing!\n",status);
return 0;
default:
DBG("refer(): we are not connected "
"(status=%i). do nothing!\n",status);
return 0;
}
}
int AmSipDialog::cancel()
{
int cancel_cseq = -1;

@ -141,6 +141,7 @@ public:
int invite(const string& hdrs,
const string& content_type,
const string& body);
int refer(const string& refer_to);
/**
* @return true if a transaction could be found that
* matches the CANCEL's one.

Loading…
Cancel
Save