瀏覽代碼

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.
Miklos Tirpak 16 年之前
父節點
當前提交
5775f9b86b
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      modules/tm/t_suspend.c

+ 2 - 1
modules/tm/t_suspend.c

@@ -34,6 +34,7 @@
 #include "../../action.h"
 #include "../../action.h"
 #include "../../script_cb.h"
 #include "../../script_cb.h"
 
 
+#include "config.h"
 #include "sip_msg.h"
 #include "sip_msg.h"
 #include "t_reply.h"
 #include "t_reply.h"
 #include "h_table.h"
 #include "h_table.h"
@@ -69,7 +70,7 @@ int t_suspend(struct sip_msg *msg,
 		&& (t->uas.status < 100)
 		&& (t->uas.status < 100)
 	) {
 	) {
 		if (!t_reply( t, msg , 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");
 				DBG("SER: ERROR: t_suspend (100)\n");
 	}
 	}