Paul Vermette
2004-Mar-04 13:39 UTC
[Asterisk-Users] ioctl(ZT_LOADZONE) failed: Inappropriate ioctl for device
Well, I think I discovered even further why there is no ringback tone available. The following message, is displayed on the console in asterisk. ioctl(ZT_LOADZONE) failed: Inappropriate ioctl for device Failed to register zone 'United States / North America': No data available Looking more into it, I found that it was related to loading tones for a particular zone. The message is printed out when I run the Ringing Application or when I attempt to put the 'r' option on the Dial application in my extensions.conf. My guess is that it is trying to load the tones for the zone but since it fails to register them no sounds are available to be played back including ringback tone. This could explain my situation. I originally got the HEAD from CVS when I compiled and installed the drivers for zaptel/zapata/libpri. I then tried the versions that where available for download from ftp.digium.com. Neither worked. I am using asterisk 0.7.2 with no patches applied. I am using gcc 2.96 for compiling "Paul Vermette" <paul_vermette@hotmail.com> wrote in message news:c24m3l$80t$1@sea.gmane.org... I have had some success at getting ringback tone working with the X100P card. Unfortunately, it will not meet my requirements. The following provides ringback tone for an incoming caller. Please note that the Zap channels are configured to use the inbound context. [inbound] exten => s,1,Dial(SIP/spa01-2,20) This works because the X100P is not going into an offhook state. So ringback tone is being provided by the PSTN. So if you use Answer, Playback or Background application, it requires asterisk to put the state of the line in an off-hook state which makes sense. This is where my problem lies. Once asterisk puts the X100P line in an offhook state, I cannot get any ringback tone. The following simple scenarios where tried and did NOT work. [inbound] exten => s,1,Answer exten => s,2,Dial(SIP/spa01-2,20) [inbound] exten => s,1,Answer exten => s,2,Ringing exten => s,3,Dial(SIP/spa01-2,20) [inbound] exten => s,1,Answer exten => s,2,Ringing exten => s,3,Dial(SIP/spa01-2,20,r) [inbound] exten => s,1,Answer exten => s,2,Ringing exten => s,3,Dial(SIP/spa01-2,20,tr) [inbound] exten => s,1,Answer exten => s,2,Dial(SIP/spa01-2,20,r) [inbound] exten => s,1,Answer exten => s,2,Dial(SIP/spa01-2,20,tr) Again, any suggestions would be greatly appreciated. "Paul Vermette" <paul_vermette@hotmail.com> wrote in message news:000901c40060$680f9a90$1d0ba8c0@skyridge.com... I have been unsuccessful of yet to produce a ringback tone when trying as an outside caller to dial an internal extension from an auto-attendant. This is the scenario: 1. Outside caller dials main line that is going into an FXO card (X100P). 2. Auto-attendant answers 3. Outside caller dials an internal extension 4. Internal extensions are analog phones connected to SPA-2000 using SIP. In Step one, of course the caller gets a ringback tone until the auto-attendant calls (supplied by the PSTN). In Step 3, the extension rings but no ringback tone is supplied to the caller. Things I have tried thus far (_please read_). 1. Removing Answer application from auto-attendant 2. Adding "r" option to Dial application 3. Add Ringing application before dialing None of these options have worked. Please note that if I call from one internal extension to another, I get a ringback tone. As well if I call an outside line from an internal extension I get a ringback tone. I have searched the Asterisk Wiki, Asterisk Mailing List and google. Any help would be greatly appreciated.
Roman Bessyadovskii
2004-Sep-15 07:56 UTC
[Asterisk-Users] ioctl(ZT_LOADZONE) failed: Inappropriate ioctl for device
Hi, another problem. I configure TAPI driver for outlook. (https://sourceforge.net/projects/asttapi/) Yesterday all work fine. I configure that "Local Phone" is Zap/g1/772323 and external call is going to context default. When I call to sip - all work ok. When I call to city (via Zap) local phone ringing, and then I receive next message == Spawn extension (default, 3261090, 1) exited non-zero on 'SIP/1021-260b' -- Executing Dial("Zap/1-1", "Zap/g1/989217510935") in new stack -- Called g1/989217510935 -- Zap/2-1 is ringing ioctl(ZT_LOADZONE) failed: Inappropriate ioctl for device Failed to register zone 'United States / North America': No data available -- Channel 0/1, span 1 got hangup Sep 15 18:48:54 WARNING[1149062448]: app_dial.c:357 wait_for_answer: Unable to forward frame -- Hungup 'Zap/2-1' == Spawn extension (default, 89217510935, 1) exited non-zero on 'Zap/1-1' -- Hungup 'Zap/1-1' Here Zap/1-1 is call to LocalPhone, and Zap/2-1 is call to city. What does it mean?
Apparently Analagous Threads
- 'ioctl:: Inappropriate ioctl for device' when trying to shrink partition
- tcgetattr: Inappropriate ioctl for device
- hdparm: Inappropriate ioctl for device
- chan_dahdi.so fails to load : Inappropriate ioctl for device
- Ringinbacktone even without 'r', and inexistant codec