|
|
|
|
@ -142,7 +142,7 @@ bool AmSipSubscription::doSubscribe()
|
|
|
|
|
dlg.outbound_proxy = AmConfig::OutboundProxy;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (dlg.sendRequest(req.method, DLG_SENDREQ_EMPTY_BODY, getSubscribeHdrs()) < 0) {
|
|
|
|
|
if (dlg.sendRequest(SIP_METH_SUBSCRIBE, DLG_SENDREQ_EMPTY_BODY, getSubscribeHdrs()) < 0) {
|
|
|
|
|
WARN("failed to send subscription to '%s' (proxy '%s').\n",
|
|
|
|
|
dlg.remote_uri.c_str(), dlg.outbound_proxy.c_str());
|
|
|
|
|
return false;
|
|
|
|
|
@ -162,7 +162,7 @@ bool AmSipSubscription::doSubscribe()
|
|
|
|
|
|
|
|
|
|
bool AmSipSubscription::reSubscribe()
|
|
|
|
|
{
|
|
|
|
|
if (dlg.sendRequest(req.method, DLG_SENDREQ_EMPTY_BODY, getSubscribeHdrs()) < 0) {
|
|
|
|
|
if (dlg.sendRequest(SIP_METH_SUBSCRIBE, DLG_SENDREQ_EMPTY_BODY, getSubscribeHdrs()) < 0) {
|
|
|
|
|
WARN("failed to send subscription to '%s' (proxy '%s').\n",
|
|
|
|
|
dlg.remote_uri.c_str(), dlg.outbound_proxy.c_str());
|
|
|
|
|
return false;
|
|
|
|
|
@ -190,7 +190,7 @@ bool AmSipSubscription::doUnsubscribe()
|
|
|
|
|
}
|
|
|
|
|
hdrs += SIP_HDR_COLSP(SIP_HDR_EXPIRES) "0" CRLF;
|
|
|
|
|
|
|
|
|
|
if (dlg.sendRequest(req.method, DLG_SENDREQ_EMPTY_BODY, hdrs) < 0) {
|
|
|
|
|
if (dlg.sendRequest(SIP_METH_SUBSCRIBE, DLG_SENDREQ_EMPTY_BODY, hdrs) < 0) {
|
|
|
|
|
WARN("failed to send unsubscription to '%s' (proxy '%s').\n",
|
|
|
|
|
dlg.remote_uri.c_str(), dlg.outbound_proxy.c_str());
|
|
|
|
|
return false;
|
|
|
|
|
|