Browse code

no 100 for non-INVITE

Bogdan-Andrei Iancu authored on 06/03/2002 21:01:57
Showing 1 changed files
... ...
@@ -325,11 +325,14 @@ static int t_relay_to( struct sip_msg  *p_msg , char *str_ip , char *str_port)
325 325
 					DBG( "SER: new CANCEL\n");
326 326
 					if ( !t_send_reply( p_msg , 200, "glad to cancel") )
327 327
 						DBG( "SER:ERROR: t_send_reply\n");
328
-				} else {
329
-					DBG( "SER: new transaction\n");
330
-					if (!t_send_reply( p_msg , 100 , 
328
+				} else if (p_msg->REQ_METHOD==METHOD_INVITE)
329
+				{
330
+					DBG( "SER: new INVITE\n");
331
+					if (!t_send_reply( p_msg , 100 ,
331 332
 					"trying -- your call is important to us"))
332 333
 						DBG( "SER: ERROR: t_send_reply (100)\n");
334
+				} else {
335
+					DBG( "SER: new transaction\n");
333 336
 				}
334 337
 				ret = 1;
335 338
 			}