Переглянути джерело

tm: support mode=start for rpc tm.t_uac_attrs

- complete the variants of t_uac commands
Daniel-Constantin Mierla 2 місяців тому
батько
коміт
9af589867e
1 змінених файлів з 3 додано та 0 видалено
  1. 3 0
      src/modules/tm/rpc_uac.c

+ 3 - 0
src/modules/tm/rpc_uac.c

@@ -1038,6 +1038,9 @@ void rpc_t_uac_attrs(rpc_t *rpc, void *c)
 				if(pit->body.len == 4
 				if(pit->body.len == 4
 						&& strncasecmp(pit->name.s, "wait", 4) == 0) {
 						&& strncasecmp(pit->name.s, "wait", 4) == 0) {
 					tattrs.reply_wait = 1;
 					tattrs.reply_wait = 1;
+				} else if(pit->body.len == 5
+						  && strncasecmp(pit->name.s, "start", 5) == 0) {
+					tattrs.reply_wait = 0;
 				} else if(pit->body.len == 5
 				} else if(pit->body.len == 5
 						  && strncasecmp(pit->name.s, "block", 5) == 0) {
 						  && strncasecmp(pit->name.s, "block", 5) == 0) {
 					tattrs.reply_wait = 2;
 					tattrs.reply_wait = 2;