SearchSearch  Log in to check your private messagesLog in to check your private messages  recent posts Recent Posts
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
deathsfriendOffline



Joined: Apr 25, 2009
Posts: 6

Status: Offline
Posted: Apr 25, 2009 - 04:23 PM Reply with quote Back to top
My servers lost power in a storm and now /dev/zap is missing. It also seems that none of my modules load. I'm using redfone. My init.d script output looks like:
FATAL: Module zaptelmodprobe not found.
FATAL: Module ztd_ethmf not found.
Waiting for zap to come online...Error: missing /dev/zap!

I tried:
/usr/src/zaptel/
make clean
make install

but it still doesn't show up.
The kernel may have been upgraded, but I don't see any other kernels in the grub. The system has been working fine for months. My kernel is: Centos5 2.6.18-92.1.18.el5PAE

I tried creating the /dev/zap/ and /dev/zap/ctl but then I get an error:
Zaptel dynamic span creation failed: Inappropriate ioctl for device

My zaptel.conf looks like:
##Automatically Generated zaptel configuration file
##Generator Version 0.2.5

dynamic=eth,eth0/00:50:c2:65:d3:34/0,24,1

bchan=1-23
dchan=24

loadzone=us
defaultzone=us

Thanks
View user's profile Send private message
ianplainOffline
Site Admin


Joined: Jul 05, 2004
Posts: 3347
Location: Bath UK
Status: Offline
Posted: Apr 25, 2009 - 04:42 PM Reply with quote Back to top
Hi you need to load fonulator and also make sure that you comiled the patche version of zaptel

and its, make clean, make, make install

Try

service fonulator restart
service zaptel restart
service asterisk restart

Ian
View user's profile Send private message
deathsfriendOffline



Joined: Apr 25, 2009
Posts: 6

Status: Offline
Posted: Apr 25, 2009 - 08:09 PM Reply with quote Back to top
I'm using zaptel 1.4.12.1. Is there another version I should be using? I'm not sure what you mean by patched version.

Loading fonulator gives:
Connection to device timed out! Check network or device power.
statusInitalize: Internal foneBRIDGE library error

I guess I'm not sure if this is a module issue, a hardware issue, or both. It looks like the module doesn't load, but that is no reason for fonulator to not work. And I don't know what to make of:

Zaptel dynamic span creation failed: Inappropriate ioctl for device

Thanks again for the help
View user's profile Send private message
ianplainOffline
Site Admin


Joined: Jul 05, 2004
Posts: 3347
Location: Bath UK
Status: Offline
Posted: Apr 25, 2009 - 08:36 PM Reply with quote Back to top
Hi what does lsmod show?

I assume you havent downloaded another version of zaptel and the source directory is the original one ?

It does sound like a comms problem. I assume as you are not sure what you have you didnt install it, I would get in touch with the installers.

In theory restarting the server should load all the modules. if not or you downloaded zaptel and compiled that, Then you need to get the patched version of zaptel compile it, Redfone have good docs on their site.

Ian
View user's profile Send private message
deathsfriendOffline



Joined: Apr 25, 2009
Posts: 6

Status: Offline
Posted: Apr 25, 2009 - 11:18 PM Reply with quote Back to top
Right, I didn't install it. It was installed long before I got here, but the people who did are long gone. I'm just trying to salvage it at this point.
View user's profile Send private message
ianplainOffline
Site Admin


Joined: Jul 05, 2004
Posts: 3347
Location: Bath UK
Status: Offline
Posted: Apr 26, 2009 - 01:05 AM Reply with quote Back to top
Ok.

I need to know everything you have done to date since it crashed.

Unless you hard harddrive corruption you shouldnt have had to do anything except start the services.

Ian
View user's profile Send private message
deathsfriendOffline



Joined: Apr 25, 2009
Posts: 6

Status: Offline
Posted: Apr 27, 2009 - 01:09 AM Reply with quote Back to top
Ok, I had a spare machine, so I have tried reloading everything on it. The modules all installed. Asterisk, FreePBX, and the redfone software seem to install fine. zaptel-redfone script starts. I cannot get fonulator to work though! It's driving me nuts!

#fonulator
Connection to device timed out! Check network or device power.
statusInitalize: Internal foneBRIDGE library error

redfone.conf:
## Automatically Generated REDFONE Config
## Generator Version 0.2.5

[globals]
fb=192.168.1.254
port=1
server=00:01:02:6C:D2:EA


[span1]
framing=esf
encoding=b8zs
slave

zaptel.conf:
##Automatically Generated zaptel configuration file
##Generator Version 0.2.5

dynamic=ethmf,eth0/00:50:c2:65:d3:34/0,24,1

bchan=1-23
dchan=24

loadzone=us
defaultzone=us


ifconfig:
eth0 Link encap:Ethernet HWaddr 00:01:02:6C:D2:EA
inet addr:192.168.1.254 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::201:2ff:fe6c:d2ea/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:986 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:64581 (63.0 KiB)
Interrupt:193

eth1 Link encap:Ethernet HWaddr 00:01:02:65:9A:FE
inet addr:192.168.1.129 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::201:2ff:fe65:9afe/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:30051 errors:0 dropped:0 overruns:1 frame:0
TX packets:135 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3190392 (3.0 MiB) TX bytes:31961 (31.2 KiB)
Interrupt:201 Base address:0xe000

eth2 Link encap:Ethernet HWaddr 00:01:02:60:E4:99
inet addr:172.16.1.1 Bcast:172.16.255.255 Mask:255.255.0.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:1 errors:0 dropped:0 overruns:0 carrier:1
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:60 (60.0 b)
Interrupt:209

eth3 Link encap:Ethernet HWaddr 00:06:5B:0E:E1:78
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::206:5bff:fe0e:e178/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1255 errors:0 dropped:0 overruns:0 frame:0
TX packets:55 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:161626 (157.8 KiB) TX bytes:10088 (9.8 KiB)
Interrupt:217

eth4 Link encap:Ethernet HWaddr 00:06:5B:0E:E1:79
inet addr:**.**.**.* Bcast:75.77.41.255 Mask:255.255.255.0 (Hidden because it's external)
inet6 addr: fe80::206:5bff:fe0e:e179/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9295 errors:0 dropped:0 overruns:0 frame:0
TX packets:6064 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5459589 (5.2 MiB) TX bytes:1322589 (1.2 MiB)
Interrupt:225

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:6647 errors:0 dropped:0 overruns:0 frame:0
TX packets:6647 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4593624 (4.3 MiB) TX bytes:4593624 (4.3 MiB)
View user's profile Send private message
ianplainOffline
Site Admin


Joined: Jul 05, 2004
Posts: 3347
Location: Bath UK
Status: Offline
Posted: Apr 27, 2009 - 09:07 AM Reply with quote Back to top
Hi

Most obvious error I can see is that you have the servers IP address as the fb address in the redfone.conf

it should be the ip address of the redfone bridge

Quote:
[globals]
fb=192.168.1.254 <<<<should be the redfones address
port=1 <<<<<<<<< porton the redfone thats being user for ethernet traffic
server=00:01:02:6C:D2:EA <<<<<<<<<<mac address of the redfone


Ian
View user's profile Send private message
deathsfriendOffline



Joined: Apr 25, 2009
Posts: 6

Status: Offline
Posted: Apr 27, 2009 - 02:48 PM Reply with quote Back to top
Ah yes, I noticed that after I sent the message. One thing to note, the documentation on redfone's website is wrong for the default IP. The default IP for the fonebridge should be 192.168.254.1 NOT 192.168.1.254.

Now I can make calls! Thank you so much! I just have a few minor problems. I can't receive calls. I assume this is is just setup in freepbx. I transfered over the config files and the mysql db from the old machine, but it still doesn't work. There also seems to be a problem with no password on the freepbx interface, even though I have set it in the amportal.conf. I'll continue to poke around google for an answer.

Thanks again
View user's profile Send private message
ianplainOffline
Site Admin


Joined: Jul 05, 2004
Posts: 3347
Location: Bath UK
Status: Offline
Posted: Apr 27, 2009 - 03:05 PM Reply with quote Back to top
Hi

DOes soundlike a freepbx issue with incoming.

feel free to contact me

Ian
View user's profile Send private message


View previous topic Printable version Log in to check your private messages View next topic

Post new topic   Reply to topic
Forum Rules and Guidelines | About VoIP User | Privacy Policy


All logos and trademarks in this site are property of their respective owner.
Comments and posts are property of the poster, all the rest (c) 2003-2008 VoIP User Limited.

VoIP User Limited is incorporated in England and Wales under Company Number 6694577.

No part of this site may be reproduced without our prior consent.