[asterisk-commits] igorg: branch 11 r389661 - /branches/11/channels/chan_unistim.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri May 24 05:12:06 CDT 2013
Author: igorg
Date: Fri May 24 05:12:01 2013
New Revision: 389661
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=389661
Log:
Fix several problems caused by multiple line usage with i2004 phones.
Reported by: Daniel Bohling, MihaiMircea
(closes issue ASTERISK-21061)
(closes issue ASTERISK-21120)
Modified:
branches/11/channels/chan_unistim.c
Modified: branches/11/channels/chan_unistim.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/channels/chan_unistim.c?view=diff&rev=389661&r1=389660&r2=389661
==============================================================================
--- branches/11/channels/chan_unistim.c (original)
+++ branches/11/channels/chan_unistim.c Fri May 24 05:12:01 2013
@@ -4850,7 +4850,7 @@
break;
}
}
- refresh_all_favorite(s); /* Update favicons in case of DND keys */
+ /*refresh_all_favorite(s); */ /* TODO: Update favicons in case of DND keys */
if (s->state == STATE_RINGING && sub->subtype == SUB_RING) {
send_no_ring(s);
if (ast_channel_hangupcause(ast) != AST_CAUSE_ANSWERED_ELSEWHERE) {
@@ -4859,6 +4859,13 @@
}
if (!sub_real) {
show_main_page(s);
+ } else { /* hangup on a ringing line: reset status to reflect that we're still on an active call */
+ s->state = STATE_CALL;
+ send_callerid_screen(s, sub_real);
+ send_text(TEXT_LINE2, TEXT_NORMAL, s, ustmtext("is on-line", s));
+ send_text_status(s, ustmtext(" Transf Hangup", s));
+ send_favorite_short(sub->softkey, FAV_ICON_OFFHOOK_BLACK, s);
+
}
}
if (s->state == STATE_CALL && sub->subtype == SUB_REAL) {
@@ -5798,6 +5805,15 @@
*cause = AST_CAUSE_BUSY;
return NULL;
}
+ if (d->session->state == STATE_DIALPAGE) {
+ if (unistimdebug) {
+ ast_verb(0, "Can't create channel, user on dialpage: Busy!\n");
+ }
+ unistim_unalloc_sub(d, sub);
+ *cause = AST_CAUSE_BUSY;
+ return NULL;
+ }
+
if (get_avail_softkey(d->session, sub->parent->name) == -1) {
if (unistimdebug) {
ast_verb(0, "Can't create channel for line %s, all lines busy\n", sub->parent->name);
More information about the asterisk-commits
mailing list