FXO seems to be installed but cannot make or receive calls

Hi all,

I have recently acquired an x100p SE FXO card, I know their not the best but I wanted to try out Asterisk with a landline with a cheap card before I bought an expensive card.

My trouble is, I believe I have got the card installed on my system. Ubuntu 12.04 LTS Server with Command Line and Asterisk 1.8.10.1 with Dahdi 2.4.1

I have set up 2 extensions (200 and 201) Both can make and receive calls to each other. However when I try and call an outside line I get the following error:

[Aug 19 22:11:31] NOTICE[1233]: chan_sip.c:22622 handle_request_invite: Call from '200' (192.168.0.10:12046) to extension '07402759842' rejected because extension not found in context 'house-phones'.

I understand you will probably need more code to try and find out what my issue is, I will happily paste it here. This is my first time with Asterisk so I don’t know much about how to set these configs up apart from following some tutorials. And if it helps with the config files, I like in the UK.

Also I performed the lspci command and received this:

00:00.0 Host bridge: Intel Corporation N10 Family DMI Bridge 00:02.0 VGA compatible controller: Intel Corporation N10 Family Integrated Graph ics Controller 00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio C ontroller (rev 01) 00:1c.0 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 1 (rev 0 1) 00:1c.1 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 2 (rev 0 1) 00:1c.2 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 3 (rev 0 1) 00:1c.3 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 4 (rev 0 1) 00:1d.0 USB controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller # 1 (rev 01) 00:1d.1 USB controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller # 2 (rev 01) 00:1d.2 USB controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller # 3 (rev 01) 00:1d.3 USB controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller # 4 (rev 01) 00:1d.7 USB controller: Intel Corporation N10/ICH 7 Family USB2 EHCI Controller (rev 01) 00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e1) 00:1f.0 ISA bridge: Intel Corporation NM10 Family LPC Controller (rev 01) 00:1f.2 IDE interface: Intel Corporation N10/ICH7 Family SATA Controller [IDE mo de] (rev 01) 00:1f.3 SMBus: Intel Corporation N10/ICH 7 Family SMBus Controller (rev 01) 01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E P CI Express Fast Ethernet controller (rev 02) 05:00.0 Communication controller: Motorola Wildcard X100P

Thanks,
Ryan

The error is pretty clear:

You don’t have any extension to match that number in the context house-phones, you need to show us your dialplan. Please use the guide www.asteriskdocs.org

Check your dial plan. here you have some general examples for incoming and outgoing calls:

[incoming]
exten => s,1,Answer()
exten => s,n,Dial(SIP/200,25)
exten => s,n,Hangup()

[outbound]
exten =>_X.,1,Dial(dahdi/1/${EXTEN})
exten =>_X.,2,Hangup()

and run theses 2 commands and post the output for check the status of the card and dahdi channel.
asterisk*CLI> dahdi show status

asterisk*CLI> dahdi show channels

[quote=“navaismo”]The error is pretty clear:

You don’t have any extension to match that number in the context house-phones, you need to show us your dialplan. Please use the guide asteriskdocs.org[/quote]

At the moment my extensions.conf file looks like this:

[code][globals]

[house-phones]
exten => 200,1,Dial(SIP/200)
exten => 201,1,Dial(SIP/201)
; Entries in [to-pstn] can be dialled from SIP extensions 200 and 201
include => to-pstn

[to-pstn]
; Emergency numbers 999 and 112 need to go to the PSTN, clearly
exten => 999,1,Dial(DAHDI/1/${EXTEN},60,rTK)
exten => 112,1,Dial(DAHDI/1/${EXTEN},60,rTK)
; Starts with a 0 and contains more than 5 digits - it’s a phone number, dial it
exten => _0XXXX.,1,Dial(DAHDI/1/${EXTEN},60,rTK)
; Six digits? It’s a local call, dial it
exten => _XXXXXX,1,Dial(DAHDI/1/${EXTEN},60,rTK)
; BT Test number, very useful, try it
exten => 17070,1,Dial(DAHDI/1/${EXTEN},60,rTK)

[from-pstn]
; All incoming calls (‘s’) cause phones 200 and 201 to ring
exten=> s,1,Dial(SIP/200&SIP/201)
[/code]

I was using the code of this website: stocksy.co.uk/articles/Netwo … telephone/

I will try ambiorixg12’s code though

you didn’t post the cli output of the commands that i mentioned earlier

asterisk*CLI> dahdi show status

asterisk*CLI> dahdi show channels
you can use the correct dial plan but if the card is not properly installed (module and signaling) it wont work.

I’ve used your code and when I run dahdi show status I get this error

No such command ‘dahdi show status’ (type ‘core show help dahdi show’ for other possible commands)

And when dahdi show channels I get

No such command ‘dahdi show channels’ (type ‘core show help dahdi show’ for other possible commands)

Although if try and make a call to an outside line, when running asterisk -r I get:

[Aug 20 22:10:16] WARNING[7244]: channel.c:5603 ast_request: No channel type registered for 'dahdi' [Aug 20 22:10:16] WARNING[7244]: app_dial.c:2218 dial_exec_full: Unable to create channel of type 'dahdi' (cause 66 - Channel not implemented)

Your asterisk doesn’t loaded the dahdi module try to load with: module load chan_dahdi.so

In linux shell run the command[quote] ls /usr/lib/asterisk/modules | grep -i dahdi [/quote] for investigate if the dahdi module exist.

Does any body know how you actually get the x100p drivers installed and Asterisk to detech the card? Mine just shows the dummy card…

I’m also using Ubuntu 12.04 and x100p se from x100p.com

Thanks for any help.

I may be wrong, but I think you need to load Asterisk 1.4 or earlier and the Zaptel kernel drivers, as I think support for that type of card was dropped in DAHDI.