[asterisk-users] FXS ports on TDM410P card...
James Sharp
james at fivecats.org
Sat Oct 15 20:26:31 CDT 2011
On 10/15/2011 05:31 AM, Michael C. Robinson wrote:
> [Oct 15 01:48:02] NOTICE[3747] channel.c: Dropping incompatible voice
> frame on SIP/2006-00000000 of format ulaw since our native format has
> changed to 0x8 (alaw)
> [Oct 15 01:48:49] WARNING[3750] pbx.c: Channel 'DAHDI/1-1' sent into
> invalid extension 's' in context 'default', but no invalid handler
> ----------------------------------------------------------------------
> I have the code to set up an extension for toggling Telco pass through
> working I think. What isn't working is the pass through. I get the
> above error messages when I try to call the POTS line connected to
> DAHDI/1 from my Comcast line.
>
> I'm noticing other warning messages cropping up about this file or that
> file not existing and modules not loading, but mostly the system seems
> to be working so I'm wondering if these warnings are relevant. I'm
> using Asterisk 1.8.
>
> I think that [from-pstn] isn't working...
You're not landing in [from-pstn]. Incoming calls are landing in
[default]. That's not a problem in extensions.conf, that's a problem in
dahdi.conf for those channels. They're not in the right context.
> For those who don't know what I'm after, I'm trying when a phone company
> call comes in to ring SIP phones and local FXS lines on my TDM410P. The
> purpose of the toggle is to be able to disable this feature. Sometimes,
> I really want to use this system as a private intercom system where at
> other times, ringing remote SIP phones for an incoming telephone company
> call might be needed. Say you are at extension 2000 or 2002, SIP phones
> in other buildings, and you want or need to be able to receive calls
> from the PSTN.
>
> I'm in the U.S., under the [external] section am I blocking long
> distance outgoing phone calls? In the U.S., you dial 1 and then
> the number for long distance. Essentially, what I need to do is
> block dialing 1 and then a number with the exception of 1-800 or
> 1-866.
[external]
exten => _91800NXXXXXX,1,Dial(${CENTURYLINK}/${EXTEN:1})
exten => _91888NXXXXXX,1,Dial(${CENTURYLINK}/${EXTEN:1})
exten => _91877NXXXXXX,1,Dial(${CENTURYLINK}/${EXTEN:1})
exten => _91866NXXXXXX,1,Dial(${CENTURYLINK}/${EXTEN:1})
exten => _91NXXNXXXXXX,1,Playback(im-sorry-Dave-you-cant-call-that)
exten => _91NXXNXXXXXX,n,Congestion
exten => _81800NXXXXXX,1,Dial(${COMCAST}/${EXTEN:1})
exten => _81888NXXXXXX,1,Dial(${COMCAST}/${EXTEN:1})
exten => _81877NXXXXXX,1,Dial(${COMCAST}/${EXTEN:1})
exten => _81866NXXXXXX,1,Dial(${COMCAST}/${EXTEN:1})
exten => _81NXXNXXXXXX,1,Playback(im-sorry-Dave-you-cant-call-that)
exten => _81NXXNXXXXXX,n,Congestion
That'll let you dial US toll free numbers out the channel specified by
dialing 9 or 8. It will playback a message and then generate a
congestion tone if some other number is dialed.
More information about the asterisk-users
mailing list