Forráskód Böngészése

no 100 for non-INVITE

Bogdan-Andrei Iancu 23 éve
szülő
commit
c491d8c1a7
1 módosított fájl, 6 hozzáadás és 3 törlés
  1. 6 3
      modules/tm/tm.c

+ 6 - 3
modules/tm/tm.c

@@ -325,11 +325,14 @@ static int t_relay_to( struct sip_msg  *p_msg , char *str_ip , char *str_port)
 					DBG( "SER: new CANCEL\n");
 					if ( !t_send_reply( p_msg , 200, "glad to cancel") )
 						DBG( "SER:ERROR: t_send_reply\n");
-				} else {
-					DBG( "SER: new transaction\n");
-					if (!t_send_reply( p_msg , 100 , 
+				} else if (p_msg->REQ_METHOD==METHOD_INVITE)
+				{
+					DBG( "SER: new INVITE\n");
+					if (!t_send_reply( p_msg , 100 ,
 					"trying -- your call is important to us"))
 						DBG( "SER: ERROR: t_send_reply (100)\n");
+				} else {
+					DBG( "SER: new transaction\n");
 				}
 				ret = 1;
 			}