[sr-dev] git:master: tm: reason phrase of 100 is corrected in t_suspend()

Miklos Tirpak miklos at iptel.org
Fri Jul 10 16:05:55 CEST 2009


Module: sip-router
Branch: master
Commit: 5775f9b86b14ef5887112a12d098d38e283b47c0
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=5775f9b86b14ef5887112a12d098d38e283b47c0

Author: Miklos Tirpak <miklos at iptel.org>
Committer: Miklos Tirpak <miklos at iptel.org>
Date:   Fri Jul 10 16:02:14 2009 +0200

tm: reason phrase of 100 is corrected in t_suspend()

- t_suspend() now uses the tm_auto_inv_100_r config option to
form the 100 reply message.

---

 modules/tm/t_suspend.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/tm/t_suspend.c b/modules/tm/t_suspend.c
index c8527a5..f6a57d0 100644
--- a/modules/tm/t_suspend.c
+++ b/modules/tm/t_suspend.c
@@ -34,6 +34,7 @@
 #include "../../action.h"
 #include "../../script_cb.h"
 
+#include "config.h"
 #include "sip_msg.h"
 #include "t_reply.h"
 #include "h_table.h"
@@ -69,7 +70,7 @@ int t_suspend(struct sip_msg *msg,
 		&& (t->uas.status < 100)
 	) {
 		if (!t_reply( t, msg , 100 ,
-			"trying -- your call is important to us"))
+			cfg_get(tm, tm_cfg, tm_auto_inv_100_r)))
 				DBG("SER: ERROR: t_suspend (100)\n");
 	}
 




More information about the sr-dev mailing list