My analog card, uses a PCI slot and a 12V power connector, is configured with 2 FXO and 2 FXS modules. I can ring handsets connected to the FXS ports but I can't dial out from them. Is extensions.conf where I need to make changes? [root at robin asterisk]# cat chan_dahdi.conf [trunkgroups] [channels] [phone](!) usecallerid = yes hidecallerid = no callwaiting = yes usecallingpres = yes callwaitingcallerid = yes threewaycalling = yes transfer = yes canpark = yes cancallforward = yes callreturn = yes echocancel = yes echocancelwhenbridged = yes relaxdtmf = yes rxgain = 0.0 txgain = 0.0 group = 1 callgroup = 1 pickupgroup = 1 immediate = no context = myphones signalling = fxo_ks [phone1](phone) signalling = fxs_ks callerid = "Andrew F Robinson" <(503)543-2338> dahdichan = 1 [phone2](phone) signalling = fxs_ks callerid = "Michael C Robinson" <(503)987-1322> dahdichan = 2 [phone3](phone) callerid = "2010" <2010> dahdichan = 3 [phone4](phone) callerid = "2011" <2011> dahdichan = 4 [root at robin asterisk]# extensions.conf: [globals] CENTURYLINK=DAHDI/1 COMCAST=DAHDI/2 ANDREWROOM=DAHDI/3 SERVERROOM=DAHDI/4 [external] exten => _9NXXNXXXXXX,1,Dial(${CENTURYLINK}/${EXTEN:1}) exten => _8NXXNXXXXXX,1,Dial(${COMCAST}/${EXTEN:1}) [my-phones] exten => 2000,1,Dial(SIP/2000,40) same => n,VoiceMail(2000,u) exten => 2002,1,Dial(SIP/2002,40) same => n,VoiceMail(2002,u) exten => 2004,1,Dial(SIP/2004,40) same => n,VoiceMail(2004,u) exten => 2006,1,Dial(SIP/2006,40) same => n,VoiceMail(2006,u) exten => 2007,1,Dial(SIP/2007,40) same => n,VoiceMail(2007,u) exten => 2008,1,Dial(SIP/2008,40) same => n,VoiceMail(2008,u) exten => 2009,1,Dial(SIP/2009,40) same => n,VoiceMail(2009,u) exten => 2010,1,Dial(${SERVERROOM},40) same => n,VoiceMail(2010,u) exten => 2011,1,Dial(${ANDREWROOM},40) same => n,VoiceMail(2011,u) exten => 2999,1,VoiceMailMain(${CALLERID(num)},s) include => external
Quoting "Michael C. Robinson" <plug_1 at robinson-west.com>:> My analog card, uses a PCI slot and a 12V power connector, is configured > with 2 FXO and 2 FXS modules. I can ring handsets connected to the FXS > ports but I can't dial out from them. Is extensions.conf where I need > to make changes?You appear to have an inconsistency with context names...> [root at robin asterisk]# cat chan_dahdi.conf...> [phone](!)...> context = myphones> extensions.conf:...> [my-phones]Put that right and it should work, as you've designed it so far. -- Phil Reynolds mail: phil-asterisk at tinsleyviaduct.com ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.
On Wednesday 12 October 2011, Michael C. Robinson wrote:> My analog card, uses a PCI slot and a 12V power connector, is configured > with 2 FXO and 2 FXS modules. I can ring handsets connected to the FXS > ports but I can't dial out from them. Is extensions.conf where I need > to make changes?If you can't make calls *from* a phone, but you can make calls *to* it, that suggests a problem with its default context. Your configuration snippets shew "myphones" as the default context in chan_dahdi.conf, but the context in the dialplan was "my-phones". Make them match up, reload all configuration files and it should all Just Work. -- AJS Answers come *after* questions.
Changes so far: chan_dahdi.conf: [my-phones](!) . . . context = my-phones signalling = fxo_ks . . . [phone1](my-phones) . . . [phone2](my-phones) . . . [phone3](my-phones) . . . [phone4](my-phones) And extensions.conf is the same. Seems to be working now, good eyes. I have the O'Reilly book on Asterisk 1.8, though I'm wondering where to look in it to learn how to allow incoming calls from the phone company to ring SIP box and FXS connected handsets? This would be a neat feature, especially if there was a way from the handset to turn it off. Just to make sure I'm clear, imagine you are hooked to a Linksys PAP2 and not only want to call out via the phone company but you want to receive calls there from the phone company as well. Imagine there is an extension to call that toggles this behavior on/off. So say 2025 is the special extension which you call and a voice says relaying phone company on. You hang up then, the phone rings, and you pick up a call from somewhere remote via the phone company. You hang up when you're done and decide the behavior should be turned off, so you dial 2025 again and the voice says relaying phone company off. Now if a call is incoming from the phone company, your phone doesn't ring. You can call all local extensions and even remote numbers, but you can't receive remote calls. Another trick I want to pull is this. I have a few extensions, 2000 to 2011, where I'd like to have an extension someone can call to figure out what these extensions are. Say 1000 or even 0 if that will work. Something easy to remember anyways. Another neat trick would be to list what the extensions are when someone enters an invalid extension. Say someone dials 1011, not one of my extensions and not a remote phone number prefixed by 8 or 9. The last trick I want to pull, I want an extension that will ring inclusively 2000 to 2011, say 2012. How do I set this up by hand? Thank you again for helping me figure out the context problem.