Hi,

i just added a few lines to the SDP-Filter of the SBC in order to
clear "s=" and "o=" lines.
The "o=" lines is replaced with "-" as a user (per RFC2327: "or it is
"-" if the originating host does not support the concept of user
ids."), the sessionId and Version is replaced with new values.
The "s="-lines is replaced with an empty string.

Some CPE's place the originating number in those lines of the SDP
(e.g. Zyxel-Devices), some Gateways add information here about the
gateway (e.g. Cisco or the Sipgate-Gateways).... regulations in
germany require that we anonymize messages; if the number stays in the
SDP all the anonymizing of the SIP-signalling is useless....

Thanks for a great SEMS!

So long,
Carsten

-- 
Carsten Bock
CEO (Geschäftsführer)

ng-voice GmbH i. Gr.
Schomburgstr. 80
D-22767 Hamburg / Germany

http://www.ng-voice.com
mailto:[email protected]

Mobile +49 179 2021244
Office +49 40 34927219
Fax +49 40 34927220

Hier finden Sie unsere handelsrechtlichen Pflichtangaben:
http://www.ng-voice.com/imprint/
diff --git a/apps/sbc/SDPFilter.cpp b/apps/sbc/SDPFilter.cpp
index 7370b66..d4359a6 100644
--- a/apps/sbc/SDPFilter.cpp
+++ b/apps/sbc/SDPFilter.cpp
@@ -114,5 +114,12 @@ int normalizeSDP(AmSdp& sdp) {
     // (only media level - RFC3108 4.)
     fix_incomplete_silencesupp(*m_it);
   }
+  // Clear s-Line in SDP:
+  sdp.sessionName.clear();
+  // New o-Line in SDP:
+  sdp.origin.sessId = get_random();
+  sdp.origin.sessV = get_random();
+  sdp.origin.user = "-";
+
   return 0;
 }
_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to