From: Olle Johansson Date: Thu, 1 Feb 2007 19:04:47 +0000 (+0000) Subject: Signal HOLD status to phones that subscribe for status. X-Git-Tag: 1.6.0-beta1~3^2~3309 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=38b87ec4b719210e3b79fb59755b44b9b939acda;p=thirdparty%2Fasterisk.git Signal HOLD status to phones that subscribe for status. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@53067 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 412ff6783e..983c484827 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -6965,6 +6965,10 @@ static int transmit_state_notify(struct sip_pvt *p, int state, int full, int tim pidfnote = "Unavailable"; break; case AST_EXTENSION_ONHOLD: + statestring = "confirmed"; + local_state = NOTIFY_INUSE; + pidfstate = "busy"; + pidfnote = "On hold"; break; case AST_EXTENSION_NOT_INUSE: default: @@ -7060,6 +7064,11 @@ static int transmit_state_notify(struct sip_pvt *p, int state, int full, int tim else ast_build_string(&t, &maxbytes, "\n", p->exten); ast_build_string(&t, &maxbytes, "%s\n", statestring); + if (state == AST_EXTENSION_ONHOLD) { + ast_build_string(&t, &maxbytes, "\n\n" + "\n" + "\n\n", mto); + } ast_build_string(&t, &maxbytes, "\n\n"); break; case NONE: