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

Author: Richard Fuchs <[email protected]>
Committer: Richard Fuchs <[email protected]>
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;


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to