[asterisk-commits] rmudgett: branch rmudgett/dahdi_ccss r242429 - /team/rmudgett/dahdi_ccss/chan...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Jan 22 16:15:50 CST 2010
Author: rmudgett
Date: Fri Jan 22 16:15:46 2010
New Revision: 242429
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=242429
Log:
Add another check to do generic CC on ISDN. Now ISDN phones can be generically monitored.
Modified:
team/rmudgett/dahdi_ccss/channels/sig_pri.c
Modified: team/rmudgett/dahdi_ccss/channels/sig_pri.c
URL: http://svnview.digium.com/svn/asterisk/team/rmudgett/dahdi_ccss/channels/sig_pri.c?view=diff&rev=242429&r1=242428&r2=242429
==============================================================================
--- team/rmudgett/dahdi_ccss/channels/sig_pri.c (original)
+++ team/rmudgett/dahdi_ccss/channels/sig_pri.c Fri Jan 22 16:15:46 2010
@@ -1864,7 +1864,12 @@
break;
case AST_CC_MONITOR_ALWAYS:
if (pri->sig == SIG_BRI_PTMP && pri->nodetype != PRI_NETWORK) {
- /* Cannot monitor PTMP TE side since this is not defined. */
+ /*
+ * Cannot monitor PTMP TE side since this is not defined.
+ * We are playing the roll of a phone in this case and
+ * a phone cannot monitor a party over the network without
+ * protocol help.
+ */
break;
}
/*
@@ -3633,6 +3638,16 @@
if (!pri->pvts[chanpos]->alreadyhungup) {
/* we're calling here dahdi_hangup so once we get there we need to clear p->call after calling pri_hangup */
pri->pvts[chanpos]->alreadyhungup = 1;
+#if defined(HAVE_PRI_CCSS)
+ switch (e->hangup.cause) {
+ case PRI_CAUSE_USER_BUSY:
+ case PRI_CAUSE_NORMAL_CIRCUIT_CONGESTION:
+ sig_pri_cc_generic_check(pri, chanpos, AST_CC_CCBS);
+ break;
+ default:
+ break;
+ }
+#endif /* defined(HAVE_PRI_CCSS) */
if (pri->pvts[chanpos]->owner) {
/* Queue a BUSY instead of a hangup if our cause is appropriate */
pri->pvts[chanpos]->owner->hangupcause = e->hangup.cause;
More information about the asterisk-commits
mailing list