allocate IvrSipReply objects while PYLOCKed . Patch by Peter Loeppky ploeppky at fibernetics ca

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1161 8eb893ce-cfd4-0310-b710-fb5ebe64c474
sayer/1.4-spce2.6
Stefan Sayer 18 years ago
parent a6b29b9a45
commit 37673396fe

@ -747,15 +747,29 @@ bool IvrDialog::onOtherReply(const AmSipReply& r)
return false;
}
void IvrDialog::onSipReply(const AmSipReply& r) {
PyObject * getPySipReply(const AmSipReply& r)
{
PYLOCK;
AmSipReply* rep_cpy = new AmSipReply(r);
callPyEventHandler("onSipReply","O",IvrSipReply_FromPtr(rep_cpy));
return IvrSipReply_FromPtr(rep_cpy);
}
PyObject * getPySipRequest(const AmSipRequest& r)
{
PYLOCK;
AmSipRequest* req_cpy = new AmSipRequest(r);
return IvrSipRequest_FromPtr(req_cpy);
}
void IvrDialog::onSipReply(const AmSipReply& r) {
callPyEventHandler("onSipReply","O",getPySipReply(r));
AmB2BSession::onSipReply(r);
}
void IvrDialog::onSipRequest(const AmSipRequest& r){
AmSipRequest* req_cpy = new AmSipRequest(r);
callPyEventHandler("onSipRequest","O", IvrSipRequest_FromPtr(req_cpy));
callPyEventHandler("onSipRequest","O", getPySipRequest(r));
AmB2BSession::onSipRequest(r);
}

Loading…
Cancel
Save