[sr-dev] git:master: modules/msrp: Updated MSRP example
Peter Dunkley
peter.dunkley at crocodile-rcs.com
Wed Dec 5 16:14:13 CET 2012
Module: sip-router
Branch: master
Commit: 8b731296ce80a8fcee582066ce3aad4a2bf95ed3
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=8b731296ce80a8fcee582066ce3aad4a2bf95ed3
Author: Peter Dunkley <peter.dunkley at crocodile-rcs.com>
Committer: Peter Dunkley <peter.dunkley at crocodile-rcs.com>
Date: Fri Nov 9 20:54:14 2012 +0000
modules/msrp: Updated MSRP example
---
modules/msrp/README | 5 ++++-
modules/msrp/doc/msrp_admin.xml | 5 ++++-
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/modules/msrp/README b/modules/msrp/README
index 5ab57f6..7df482d 100644
--- a/modules/msrp/README
+++ b/modules/msrp/README
@@ -499,7 +499,10 @@ event_route[msrp:frame-in] {
if($sht(msrp=>$var(sessid)::srcaddr) == $null)
{
# one more hop, but we don't have address in htable
- msrp_reply("481", "Session-does-not-exist");
+ if ($msrp(method)!="REPORT")
+ {
+ msrp_reply("481", "Session-does-not-exist");
+ }
exit;
}
else if($msrp(method)!="REPORT")
diff --git a/modules/msrp/doc/msrp_admin.xml b/modules/msrp/doc/msrp_admin.xml
index 76813d2..5a785bd 100644
--- a/modules/msrp/doc/msrp_admin.xml
+++ b/modules/msrp/doc/msrp_admin.xml
@@ -544,7 +544,10 @@ event_route[msrp:frame-in] {
if($sht(msrp=>$var(sessid)::srcaddr) == $null)
{
# one more hop, but we don't have address in htable
- msrp_reply("481", "Session-does-not-exist");
+ if ($msrp(method)!="REPORT")
+ {
+ msrp_reply("481", "Session-does-not-exist");
+ }
exit;
}
else if($msrp(method)!="REPORT")
More information about the sr-dev
mailing list