mirror of https://github.com/sipwise/sems.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
510 B
26 lines
510 B
#include "AmSipEvent.h"
|
|
#include "AmSipDialog.h"
|
|
|
|
void AmSipTimeoutEvent::operator() (AmBasicSipDialog* dlg)
|
|
{
|
|
assert(dlg);
|
|
AmSipDialog* sip_dlg = dynamic_cast<AmSipDialog*>(dlg);
|
|
if(!sip_dlg){
|
|
ERROR("Wrong dialog class\n");
|
|
return;
|
|
}
|
|
sip_dlg->uasTimeout(this);
|
|
}
|
|
|
|
void AmSipRequestEvent::operator() (AmBasicSipDialog* dlg)
|
|
{
|
|
assert(dlg);
|
|
dlg->onRxRequest(req);
|
|
}
|
|
|
|
void AmSipReplyEvent::operator() (AmBasicSipDialog* dlg)
|
|
{
|
|
assert(dlg);
|
|
dlg->onRxReply(reply);
|
|
}
|