I have a TDM400 card with 3x FXO and 1x FXS ports on it. At the moment I'd prefer (till I can get it working more reliable with iaxmodem), for a faxmodem to answer one of the lines instead of the linecard. I've tried changing the context of that line so that the exten => s does nothing, but that stops the line from being able to receive calls (get a recorded This number is not accepting calls at the moment). So my 2 questions are... How do I set one of the channels in zaptel.conf (or elsewhere) so that it is only available for making calls (and not receiving them). Does Zaptel automatically switch echo cancellation off if it detects a fax call? TIA for any help with these.
Thomas Kenyon wrote:> I have a TDM400 card with 3x FXO and 1x FXS ports on it. > > At the moment I'd prefer (till I can get it working more reliable with > iaxmodem), for a faxmodem to answer one of the lines instead of the > linecard. > > I've tried changing the context of that line so that the exten => s does > nothing, but that stops the line from being able to receive calls (get a > recorded This number is not accepting calls at the moment). > > So my 2 questions are... > > How do I set one of the channels in zaptel.conf (or elsewhere) so that > it is only available for making calls (and not receiving them). > > Does Zaptel automatically switch echo cancellation off if it detects a > fax call? > > TIA for any help with these. > >1. Use the group= option to decide how you want to use your channels. 2. No, I don't think so, I think echocancelwhenbridged=no might be the solution there. Thanks, Steve
On Sun, Jun 25, 2006 at 08:28:35PM +0100, Thomas Kenyon wrote:> I have a TDM400 card with 3x FXO and 1x FXS ports on it. > > At the moment I'd prefer (till I can get it working more reliable with > iaxmodem), for a faxmodem to answer one of the lines instead of the > linecard. > > I've tried changing the context of that line so that the exten => s does > nothing, but that stops the line from being able to receive calls (get a > recorded This number is not accepting calls at the moment). > > So my 2 questions are... > > How do I set one of the channels in zaptel.conf (or elsewhere) so that > it is only available for making calls (and not receiving them).What do you want to happen to incoming calls? send that specific channel (using context= ) to a context that does not even Answer() the line. in /etc/asterisk/zapata.conf: signalling=fxs_ks context=noanswer channel => 3 ; make sure you write another 'context=' after than before the next ; channel in extensions.conf: I'm not totally sure it is necessary to make this explicit, but this will reduce the warnings you'll get in the console: [noanswer] exten => s,1,Hangup() -- Tzafrir Cohen sip:tzafrir@local.xorcom.com icq#16849755 iax:tzafrir@local.xorcom.com +972-50-7952406 tzafrir.cohen@xorcom.com http://www.xorcom.com
Thomas Kenyon wrote:> I have a TDM400 card with 3x FXO and 1x FXS ports on it. > > At the moment I'd prefer (till I can get it working more reliable with > iaxmodem), for a faxmodem to answer one of the lines instead of the > linecard. > > I've tried changing the context of that line so that the exten => s does > nothing, but that stops the line from being able to receive calls (get a > recorded This number is not accepting calls at the moment). > > So my 2 questions are... > > How do I set one of the channels in zaptel.conf (or elsewhere) so that > it is only available for making calls (and not receiving them). > > Does Zaptel automatically switch echo cancellation off if it detects a > fax call?I'm assuming you have a fax machine bridged on the pstn line that also connects to asterisk via an fxo port. If that's the case, you have two ways to accomplish the goal. One, as others have mentioned, is to specify a context in the appropriate channel portion of zapata.conf that goes no where. E.g., it doesn't exist in extensions.conf. Second, specify a context in the appropriate channel portion of zapata.conf that goes to "inbound-fax" or something like that, and then in extensions.conf, do something like this: [inbound-fax] exten => s,1,Dial(SIP/3034) Notice there is no "answer" function and there is no timeout value associated with this. The example will ring x3034, however if no one picks up that sip phone, the call remains unanswered from an incoming pstn call perspective. (I've used the same for both a bridged fax machine and for a bridged older answering machine.) You may need to add faxdetect=no in the appropriate channel section of zapata.conf as well.