Signal HOLD status to phones that subscribe for status.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@53067 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
ae086c682c
commit
644a534ca0
|
@ -6965,6 +6965,10 @@ static int transmit_state_notify(struct sip_pvt *p, int state, int full, int tim
|
||||||
pidfnote = "Unavailable";
|
pidfnote = "Unavailable";
|
||||||
break;
|
break;
|
||||||
case AST_EXTENSION_ONHOLD:
|
case AST_EXTENSION_ONHOLD:
|
||||||
|
statestring = "confirmed";
|
||||||
|
local_state = NOTIFY_INUSE;
|
||||||
|
pidfstate = "busy";
|
||||||
|
pidfnote = "On hold";
|
||||||
break;
|
break;
|
||||||
case AST_EXTENSION_NOT_INUSE:
|
case AST_EXTENSION_NOT_INUSE:
|
||||||
default:
|
default:
|
||||||
|
@ -7060,6 +7064,11 @@ static int transmit_state_notify(struct sip_pvt *p, int state, int full, int tim
|
||||||
else
|
else
|
||||||
ast_build_string(&t, &maxbytes, "<dialog id=\"%s\">\n", p->exten);
|
ast_build_string(&t, &maxbytes, "<dialog id=\"%s\">\n", p->exten);
|
||||||
ast_build_string(&t, &maxbytes, "<state>%s</state>\n", statestring);
|
ast_build_string(&t, &maxbytes, "<state>%s</state>\n", statestring);
|
||||||
|
if (state == AST_EXTENSION_ONHOLD) {
|
||||||
|
ast_build_string(&t, &maxbytes, "<local>\n<target uri=\"%s\">\n"
|
||||||
|
"<param pname=\"+sip.rendering\" pvalue=\"no\">\n"
|
||||||
|
"</target>\n</local>\n", mto);
|
||||||
|
}
|
||||||
ast_build_string(&t, &maxbytes, "</dialog>\n</dialog-info>\n");
|
ast_build_string(&t, &maxbytes, "</dialog>\n</dialog-info>\n");
|
||||||
break;
|
break;
|
||||||
case NONE:
|
case NONE:
|
||||||
|
|
Reference in New Issue