[sr-dev] git:master:ca62f577: rtpengine: parse delete-delay option as integer, not string

Richard Fuchs rfuchs at sipwise.com
Thu May 28 16:24:56 CEST 2015


Module: kamailio
Branch: master
Commit: ca62f577232aa60c5679224965cde377b61b71ee
URL: https://github.com/kamailio/kamailio/commit/ca62f577232aa60c5679224965cde377b61b71ee

Author: Richard Fuchs <rfuchs at sipwise.com>
Committer: Richard Fuchs <rfuchs at sipwise.com>
Date: 2015-05-28T10:24:43-04:00

rtpengine: parse delete-delay option as integer, not string

---

Modified: modules/rtpengine/doc/rtpengine_admin.xml
Modified: modules/rtpengine/rtpengine.c

---

Diff:  https://github.com/kamailio/kamailio/commit/ca62f577232aa60c5679224965cde377b61b71ee.diff
Patch: https://github.com/kamailio/kamailio/commit/ca62f577232aa60c5679224965cde377b61b71ee.patch

---

diff --git a/modules/rtpengine/doc/rtpengine_admin.xml b/modules/rtpengine/doc/rtpengine_admin.xml
index 6be5386..140ad6b 100644
--- a/modules/rtpengine/doc/rtpengine_admin.xml
+++ b/modules/rtpengine/doc/rtpengine_admin.xml
@@ -584,6 +584,12 @@ rtpengine_offer();
 				value will revert to the default TOS (normally 184). A value of -1 may be used
 				to leave the currently used TOS unchanged.
 				</para></listitem>
+				<listitem><para>
+				<emphasis>delete-delay=...</emphasis> - override the default delay (in seconds)
+				before a call is actually deleted from memory. Can be set to zero to effectuate
+				immediate deletion. This option only makes sense for <emphasis>delete</emphasis>
+				operations.
+				</para></listitem>
 			</itemizedlist>
 		</listitem>
 		</itemizedlist>
diff --git a/modules/rtpengine/rtpengine.c b/modules/rtpengine/rtpengine.c
index 609ebc5..c48757f 100644
--- a/modules/rtpengine/rtpengine.c
+++ b/modules/rtpengine/rtpengine.c
@@ -1260,6 +1260,8 @@ static int parse_flags(struct ng_flags_parse *ng_flags, struct sip_msg *msg, enu
 				}
 				else if (str_eq(&key, "TOS") && val.s)
 					bencode_dictionary_add_integer(ng_flags->dict, "TOS", atoi(val.s));
+				else if (str_eq(&key, "delete-delay") && val.s)
+					bencode_dictionary_add_integer(ng_flags->dict, "delete delay", atoi(val.s));
 				else
 					goto generic;
 				goto next;




More information about the sr-dev mailing list