[asterisk-commits] file: branch 1.4 r64044 - /branches/1.4/channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sat May 12 09:32:16 MST 2007


Author: file
Date: Sat May 12 11:32:15 2007
New Revision: 64044

URL: http://svn.digium.com/view/asterisk?view=rev&rev=64044
Log:
Ensure the onhold flag is set no matter what when being put on hold.

Modified:
    branches/1.4/channels/chan_sip.c

Modified: branches/1.4/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_sip.c?view=diff&rev=64044&r1=64043&r2=64044
==============================================================================
--- branches/1.4/channels/chan_sip.c (original)
+++ branches/1.4/channels/chan_sip.c Sat May 12 11:32:15 2007
@@ -5276,6 +5276,8 @@
 			ast_set_flag(&p->flags[1], SIP_PAGE2_CALL_ONHOLD_ONEDIR);
 		else if (sendonly == 2)	/* Inactive stream */
 			ast_set_flag(&p->flags[1], SIP_PAGE2_CALL_ONHOLD_INACTIVE);
+		else
+			ast_set_flag(&p->flags[1], SIP_PAGE2_CALL_ONHOLD);
 		if (global_notifyhold)
 			sip_peer_hold(p, 1);
 	}



More information about the asterisk-commits mailing list