Dermot Bradley
2007-Aug-11 16:09 UTC
[asterisk-users] indications.c: Can't generate that much data!
Linux 2.6.20, asterisk 1.2.23, mISDN 1_1_5, Digium B410P BRI card. When calls come in via ISDN the destination phone does ring but the caller hears no ringing tone, once the SIP phone is answered everything works as expected. Calls from SIP phone to SIP phone internally do let the caller hear a ringing tone. With full asterisk logging enables the logs show: Aug 10 17:43:44 VERBOSE[1810] logger.c: -- Executing Dial("mISDN/1-1", "SIP/1000|15|tr") in new stack Aug 10 17:43:44 DEBUG[1810] chan_sip.c: Setting NAT on RTP to 524288 Aug 10 17:43:44 DEBUG[1810] chan_sip.c: Outgoing Call for 1000 Aug 10 17:43:44 VERBOSE[1810] logger.c: -- Called 1000 Aug 10 17:43:44 DEBUG[1810] channel.c: Driver for channel 'mISDN/1-1' does not support indication 3, emulating it Aug 10 17:43:44 DEBUG[1810] channel.c: Scheduling timer at 160 sample intervals Aug 10 17:43:44 DEBUG[1810] channel.c: Building translator from alaw to SLINEAR for spies on channel mISDN/1-1 Aug 10 17:43:44 DEBUG[1810] channel.c: Generator got voice, switching to phase locked mode Aug 10 17:43:44 DEBUG[1810] channel.c: Scheduling timer at 0 sample intervals Aug 10 17:43:44 WARNING[1810] indications.c: Can't generate that much data! Aug 10 17:43:44 DEBUG[1810] channel.c: Auto-deactivating generator Aug 10 17:43:44 DEBUG[1810] channel.c: Scheduling timer at 0 sample intervals Aug 10 17:43:44 VERBOSE[1810] logger.c: -- SIP/1000-082184d0 is ringing The /etc/asterisk/indications.conf file has country set to UK and has correct entries in there for UK tones.
Steve Totaro
2007-Aug-11 16:47 UTC
[asterisk-users] indications.c: Can't generate that much data!
Dermot Bradley wrote:> Linux 2.6.20, asterisk 1.2.23, mISDN 1_1_5, Digium B410P BRI card. > > When calls come in via ISDN the destination phone does ring but the > caller hears no ringing tone, once the SIP phone is answered everything > works as expected. Calls from SIP phone to SIP phone internally do let > the caller hear a ringing tone. > >Do you have the r option in the line that dials the extension coming from the PSTN? Thanks, Steve Totaro
Dermot Bradley
2007-Aug-11 17:18 UTC
[asterisk-users] indications.c: Can't generate that much data!
Steve Totaro wrote:> Do you have the r option in the line that dials the extension coming > from the PSTN?The dial command is visible in the 1st log line I sent and includes a "r" option: Aug 10 17:43:44 VERBOSE[1810] logger.c: -- Executing Dial("mISDN/1-1", "SIP/1000|15|tr") in new stack Stirk, Lamont & Associates Ltd. Registered Address: Thomas Andrews House, Queens Road, Belfast, BT3 9DU Registered in Northern Ireland, Number: NI 47983. VAT Number: 832 2778 22
Dermot Bradley
2007-Aug-11 17:44 UTC
[asterisk-users] indications.c: Can't generate that much data!
Steve Totaro wrote:> OK... > > Have you tried removing the r switch?Ok, removing it now gives a ring tone. The logs show: Aug 11 18:30:30 VERBOSE[13406] logger.c: -- Executing Dial("mISDN/1-1","SIP/1000|15|t") in new stack Aug 11 18:30:30 DEBUG[13406] chan_sip.c: Setting NAT on RTP to 524288 Aug 11 18:30:30 DEBUG[13406] chan_sip.c: Outgoing Call for 1000 Aug 11 18:30:30 VERBOSE[13406] logger.c: -- Called 1000 Aug 11 18:30:30 DEBUG[13406] channel.c: Building translator from alaw to SLINEAR for spies on channel mISDN/1-1 Aug 11 18:30:30 VERBOSE[13406] logger.c: -- SIP/1000-081cbd98 is ringing Aug 11 18:30:30 DEBUG[13406] channel.c: Driver for channel 'mISDN/1-1' does not support indication 3, emulating it Aug 11 18:30:30 DEBUG[13406] channel.c: Scheduling timer at 160 sample intervals Aug 11 18:30:30 DEBUG[13406] channel.c: Generator got voice, switching to phase locked mode Aug 11 18:30:30 DEBUG[13406] channel.c: Scheduling timer at 0 sample intervals Aug 11 18:30:30 DEBUG[13406] channel.c: Building translator from alaw to SLINEAR for spies on channel mISDN/1-1 So it still logs the "Driver for channel 'mISDN/1-1' does not support indication 3, emulating it" but not the "Can't generate that much data" bit. I don't see what difference removing the "r" option has made from an Asterisk perspective - in both cases Asterisk tries to emulate a ringtone but fails for some reason when "r" is present. According to the the "show application dial" help having no "r" present for Dial should NOT generate a ringing tone yet here it does. Something just doesn't seem right..... Stirk, Lamont & Associates Ltd. Registered Address: Thomas Andrews House, Queens Road, Belfast, BT3 9DU Registered in Northern Ireland, Number: NI 47983. VAT Number: 832 2778 22
Steve Totaro
2007-Aug-11 17:56 UTC
[asterisk-users] indications.c: Can't generate that much data!
Dermot Bradley wrote:> Steve Totaro wrote: > >> OK... >> >> Have you tried removing the r switch? >> > > Ok, removing it now gives a ring tone. The logs show: > > Aug 11 18:30:30 VERBOSE[13406] logger.c: -- Executing > Dial("mISDN/1-1","SIP/1000|15|t") in new stack > Aug 11 18:30:30 DEBUG[13406] chan_sip.c: Setting NAT on RTP to 524288 > Aug 11 18:30:30 DEBUG[13406] chan_sip.c: Outgoing Call for 1000 > Aug 11 18:30:30 VERBOSE[13406] logger.c: -- Called 1000 > Aug 11 18:30:30 DEBUG[13406] channel.c: Building translator from alaw to > SLINEAR for spies on channel mISDN/1-1 > Aug 11 18:30:30 VERBOSE[13406] logger.c: -- SIP/1000-081cbd98 is > ringing > Aug 11 18:30:30 DEBUG[13406] channel.c: Driver for channel 'mISDN/1-1' > does not support indication 3, emulating it > Aug 11 18:30:30 DEBUG[13406] channel.c: Scheduling timer at 160 sample > intervals > Aug 11 18:30:30 DEBUG[13406] channel.c: Generator got voice, switching > to phase locked mode > Aug 11 18:30:30 DEBUG[13406] channel.c: Scheduling timer at 0 sample > intervals > Aug 11 18:30:30 DEBUG[13406] channel.c: Building translator from alaw to > SLINEAR for spies on channel mISDN/1-1 > > So it still logs the "Driver for channel 'mISDN/1-1' does not support > indication 3, emulating it" but not the "Can't generate that much data" > bit. > > I don't see what difference removing the "r" option has made from an > Asterisk perspective - in both cases Asterisk tries to emulate a > ringtone but fails for some reason when "r" is present. According to the > the "show application dial" help having no "r" present for Dial should > NOT generate a ringing tone yet here it does. > > Something just doesn't seem right..... > > > > > Stirk, Lamont & Associates Ltd. > Registered Address: Thomas Andrews House, Queens Road, Belfast, BT3 9DU > Registered in Northern Ireland, Number: NI 47983. VAT Number: 832 2778 22 > > > >Welcome to the world of Asterisk and Open Source troubleshooting or just plain old troubleshooting. I usually try all variables associated with a symptom and usually one of them leads to a solution. Whether it makes sense or not does not really matter to me. The end result is the only thing that matters. I will take your success as a "Thank You For Helping Me Steve!!!" ;-) And my response is of course, "Glad I Could Help!!!" :-D If it works, it works, but you may want to open something on bugtracker or whoever handles bristuff. Thanks, Steve
Dermot Bradley
2007-Aug-12 20:04 UTC
[asterisk-users] indications.c: Can't generate that much data!
Luki wrote:> Simple. When using "r", asterisk needs to generate the ringing tones. > For some reason your indicactions.conf describe a tone which is longer > in duration than what can be generated by asterisk, so the error is > shown and no tone is generated. Probably the max buffer length is > somewhere preset in the code.I'm using stock indications.conf as shipped with Asterisk - if there was a fundamental mistake in that file then I'd expect the problem to occur with both mISDN and SIP channels, not just with mISDN.> If you do NOT use the "r" flag, asterisk simply passes call progress > indications from the source, without the need to generate any. Hence > no error, and you hear ringing.But when "r" is present and when "r" is NOT present Asterisk still logs: DEBUG[13406] channel.c: Driver for channel 'mISDN/1-1' does not support indication 3, emulating it Which implies it generates the ringing tone in both situations, that's why I'm confused. Stirk, Lamont & Associates Ltd. Registered Address: Thomas Andrews House, Queens Road, Belfast, BT3 9DU Registered in Northern Ireland, Number: NI 47983. VAT Number: 832 2778 22