Author: sayer
Date: 2008-05-06 11:25:34 +0200 (Tue, 06 May 2008)
New Revision: 934
Modified:
trunk/core/AmSession.cpp
trunk/core/plug-in/sipctrl/SipCtrlInterface.cpp
Log:
fixed setting content type in SipRequest; reply error in case of unknown INFO
content type. Thanks to Alex Gradinar
Modified: trunk/core/AmSession.cpp
===================================================================
--- trunk/core/AmSession.cpp 2008-05-06 09:13:30 UTC (rev 933)
+++ trunk/core/AmSession.cpp 2008-05-06 09:25:34 UTC (rev 934)
@@ -589,6 +589,8 @@
=="application/dtmf-relay")){
postDtmfEvent(new AmSipDtmfEvent(req.body));
dlg.reply(req, 200, "OK");
+ } else {
+ dlg.reply(req, 415, "Unsupported Media Type");
}
}
}
Modified: trunk/core/plug-in/sipctrl/SipCtrlInterface.cpp
===================================================================
--- trunk/core/plug-in/sipctrl/SipCtrlInterface.cpp 2008-05-06 09:13:30 UTC
(rev 933)
+++ trunk/core/plug-in/sipctrl/SipCtrlInterface.cpp 2008-05-06 09:25:34 UTC
(rev 934)
@@ -501,6 +501,9 @@
req.body = c2stlstr(msg->body);
req.serKey = tid;
+ if (msg->content_type)
+ req.content_type = c2stlstr(msg->content_type->value);
+
prepare_routes_uas(msg->record_route, req.route);
for (list<sip_header*>::iterator it = msg->hdrs.begin();
_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev