Why hack the code for this? Just implement a wait() in your dialplan. That way you can switch back and forth between outbound-only and in/out by just changing the wait(120) to wait(1).
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Cook Sent: Wednesday, August 11, 2004 10:39 AM To: [EMAIL PROTECTED] Subject: [Asterisk-Users] X100P outbound only (Don't answer) I tried implementing my * and it didn't pass the spouse factor at this time. I wanted to hook it up for outbound only at this point to get a better handle on the dial plans and the echo problem. I thought this might have been done before as a natural part of testing - but maybe not. In wcfxo.c I found this: if (!wc->offhook && !wc->ringdebounce) { if (!wc->ring && (wc->pegcount > PEGCOUNT)) { /* It's ringing */ if (debug) printk("RING!\n"); zt_hooksig(&wc->chan, ZT_RXSIG_RING); wc->ring = 1; } if (wc->ring && !wc->pegcount) { /* No more ring */ if (debug) printk("NO RING!\n"); zt_hooksig(&wc->chan, ZT_RXSIG_OFFHOOK); wc->ring = 0; } } Is changing the wc->ring = 1 to 0 an appropriate place to "fix" this for outbound-only operation? dbc. -- David Cook _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
