Line 4: |
Line 4: |
| mailto:daniel@firewall-services.com | | mailto:daniel@firewall-services.com |
| | | |
− | ===Description=== | + | ===Goal=== |
| The goal of this how-to is to explain how to configure an hardware card supported by the [http://www.misdn.org/index.php/Main_Page mISDN] driver, in order to use it with [[FreePBX]] | | The goal of this how-to is to explain how to configure an hardware card supported by the [http://www.misdn.org/index.php/Main_Page mISDN] driver, in order to use it with [[FreePBX]] |
| | | |
− | ===Installation===
| |
| {{Note box|This has only be tested with a b410P card from Digium. It should be the same for other compatible hardware}} | | {{Note box|This has only be tested with a b410P card from Digium. It should be the same for other compatible hardware}} |
− | ====Plug your card====
| + | ===Plug your card=== |
| Of course, the first step here is to plug your card in a free PCI slot | | Of course, the first step here is to plug your card in a free PCI slot |
− | ====Install mISDN driver====
| + | ===Install mISDN driver=== |
| Now you need to install the mISDN driver. You can use the following command: | | Now you need to install the mISDN driver. You can use the following command: |
| yum --enablerepo=smecontribs install misdn misdnuser misdn-kmdl-$(uname -r) | | yum --enablerepo=smecontribs install misdn misdnuser misdn-kmdl-$(uname -r) |
| For this to work you may need to update your server (at least, you should have the latest kernel available) | | For this to work you may need to update your server (at least, you should have the latest kernel available) |
− | ====Configure the driver====
| + | ===Configure the driver=== |
| You can check the card is recognized and supported with this command: | | You can check the card is recognized and supported with this command: |
| /etc/init.d/mISDN scan | | /etc/init.d/mISDN scan |
Line 29: |
Line 28: |
| ln -s /etc/rc.d/init.d/e-smith-service /etc/rc6.d/K16mISDN | | ln -s /etc/rc.d/init.d/e-smith-service /etc/rc6.d/K16mISDN |
| | | |
− | ====Install the channel for asterisk====
| + | ===Install the channel for asterisk=== |
| For asterisk to work with mISDN, it needs a channel (chan_misdn). For now, you need to take this package from [[ATrpms]] repository (in the future, this package should be imported in smecontribs) | | For asterisk to work with mISDN, it needs a channel (chan_misdn). For now, you need to take this package from [[ATrpms]] repository (in the future, this package should be imported in smecontribs) |
| yum --enablerepo=atrpms install asterisk-misdn | | yum --enablerepo=atrpms install asterisk-misdn |
Line 35: |
Line 34: |
| This may also update asterisk, it shouldn't be a problem. | | This may also update asterisk, it shouldn't be a problem. |
| | | |
− | ====Configure the channel====
| + | ===Configure the channel=== |
| Now, you can configure the channel. The config file is /etc/asterisk/misdn.conf | | Now, you can configure the channel. The config file is /etc/asterisk/misdn.conf |
| Most of the config should be OK (at least, it was for me, in France). | | Most of the config should be OK (at least, it was for me, in France). |
Line 51: |
Line 50: |
| This will configure a group of ports (from 1 to 4). The name of this group is "trunks". Any calls comming from one of these ports will be processed from the from-trunk context (the default context for trunks in [[FreePBX]] | | This will configure a group of ports (from 1 to 4). The name of this group is "trunks". Any calls comming from one of these ports will be processed from the from-trunk context (the default context for trunks in [[FreePBX]] |
| | | |
− | ====Create a trunk in FreePBX====
| + | ===Create a trunk in FreePBX=== |
| Now log into FreePBX admin interface in the server-manager, a create a new trunk, type "custom". | | Now log into FreePBX admin interface in the server-manager, a create a new trunk, type "custom". |
| Enter the common information, like any other trunk (caller ID, max call etc...) | | Enter the common information, like any other trunk (caller ID, max call etc...) |