Re: [asterisk-users] How to remove the call waiting tone without disabling callwaiting?

2012-10-02 Thread James Cloos
> "NB" == Niccolò Belli  writes:

NB> If someone knows how to COMPLETELY REMOVE the fucking beep please
NB> let me know: there are already tons of phones ringing everywhere so
NB> there is no need for an annoying beep.

Edit chan_dahdi.c.

The my_callwait() and/or dahdi_callwait() functions may be enough.

You want to skip the silence and tone creation steps.

Or perhaps #defining CALLWAITING_REPEAT_SAMPLES to 0 might work.

-JimC
-- 
James Cloos  OpenPGP: 1024D/ED7DAEA6

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] How to remove the call waiting tone without disabling callwaiting?

2012-10-02 Thread Niccolò Belli
Thank you, I already considered such an approach but the customer wanted 
to receive the new call *immediately* after the hangup (basically 
because "it was possible with the old pbx").


This is how I solved: http://www.spinics.net/lists/asterisk/msg153399.html

Such a way I hear the annoying beep every 40 seconds. If someone knows 
how to COMPLETELY REMOVE the fucking beep please let me know: there are 
already tons of phones ringing everywhere so there is no need for an 
annoying beep.


P.S.
By the way, I had a nice time with SNOM phones crashing and freezing 
everywhere thanks to a bug while handling SIP ANSWERED ELSEWHERE. I 
suggest everyone to upgrade to 8.7.3.15 beta.


Cheers,
Niccolò

Il 02/10/2012 21:16, Warren Selby ha scritto:

Niccolo,

This is what I did for one of my clients.  They had a very busy queue,
and were getting annoyed with the Call Waiting beeps.  To resolve this,
we changed the method for contacting the agents to Local Channels.  The
local channel would then do a check (using the GROUP() function) and see
if it was already in a call or not, and if it was, it would delay
sending the call to that agent.  It would then try again after a certain
amount of time had passed.

The agents are added to the queue dynamically using
AddQueueMember(${queue-name},Local/${agent-exten}@agent-callsSIP/${state-exten}).
  We would load the appropriate variables in the preceding dialplan.

Here's the snippets from extensions.conf:

[agent-calls]
;Context to dial agents when calls come into their queues

exten => _,1,Wait(1)
exten => _,n,Set(GROUP()=${EXTEN}-calls)
exten => _,n,GotoIf($[${GROUP_COUNT(${EXTEN}-calls)} > 1]?wait_longer)
exten => _,n,Dial(SIP/${EXTEN})
exten => _,n,GotoIf(${DIALSTATUS}=UNAVAILABLE?wait_longer)
exten => _,n,Goto(1)
exten => _,n(wait_longer),Wait(15)
exten => _,n,Goto(1)

--
http://www.linuxsystems.it

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] How to remove the call waiting tone without disabling

2012-10-02 Thread Niccolò Belli

Hi,

Il 02/10/2012 21:04, Mc GRATH Ricardo ha scritto:

How about to change  tone list on indications.conf  file?


As I already said indications.conf doesn't work for dahdi channels, 
unfortunately the callwaiting tone is hardcoded in asterisk itself (not 
even in dahdi/libtonezone!). I solved patching and recompiling asterisk:

http://www.spinics.net/lists/asterisk/msg153399.html

Another good solution is to disable call waiting and using local channel 
instead, as suggested by Warren Selby:

http://www.spinics.net/lists/asterisk/msg153424.html

Niccolò
--
http://www.linuxsystems.it

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] How to remove the call waiting tone without disabling callwaiting?

2012-10-02 Thread Warren Selby
On Mon, Oct 1, 2012 at 10:03 AM, Niccolò Belli wrote:

> Hi,
> The call waiting tone is very annoying (you hear nothing while it plays
> the beep). I need callwaiting because of the queues (the phone has to ring
> as soon as you hangup) but I want to remove the beep on my dahdi channels,
> how can I do?
>
> Thanks,
> Niccolò
> --
> http://www.linuxsystems.it



Niccolo,

This is what I did for one of my clients.  They had a very busy queue, and
were getting annoyed with the Call Waiting beeps.  To resolve this, we
changed the method for contacting the agents to Local Channels.  The local
channel would then do a check (using the GROUP() function) and see if it
was already in a call or not, and if it was, it would delay sending the
call to that agent.  It would then try again after a certain amount of time
had passed.

The agents are added to the queue dynamically using
AddQueueMember(${queue-name},Local/${agent-exten}@agent-callsSIP/${state-exten}).
 We would load the appropriate variables in the preceding dialplan.

Here's the snippets from extensions.conf:

[agent-calls]
;Context to dial agents when calls come into their queues

exten => _,1,Wait(1)
exten => _,n,Set(GROUP()=${EXTEN}-calls)
exten => _,n,GotoIf($[${GROUP_COUNT(${EXTEN}-calls)} > 1]?wait_longer)
exten => _,n,Dial(SIP/${EXTEN})
exten => _,n,GotoIf(${DIALSTATUS}=UNAVAILABLE?wait_longer)
exten => _,n,Goto(1)
exten => _,n(wait_longer),Wait(15)
exten => _,n,Goto(1)


-- 
Thanks,
--Warren Selby, dCAP
http://www.SelbyTech.com 
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

[asterisk-users] How to remove the call waiting tone without disabling

2012-10-02 Thread Mc GRATH Ricardo
Niccol

How about to change  tone list on indications.conf  file?
Please comment call waiting line ";" according to country zone or default 
settings.
Good luck 
 
Mc GRATH Ricardo
E-Mail mcgra...@mail2web.com
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] How to remove the call waiting tone without disabling callwaiting?

2012-10-01 Thread Alec Davis
A long shot but how about 'campon' a queue, available on most old phones
systems but not asterisk.

Well maybe will still apply
https://issues.asterisk.org/jira/browse/ASTERISK-460
 

> -Original Message-
> From: asterisk-users-boun...@lists.digium.com 
> [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of 
> Niccolò Belli
> Sent: Tuesday, 2 October 2012 4:04 a.m.
> To: asterisk-users@lists.digium.com
> Subject: [asterisk-users] How to remove the call waiting tone 
> without disabling callwaiting?
> 
> Hi,
> The call waiting tone is very annoying (you hear nothing 
> while it plays the beep). I need callwaiting because of the 
> queues (the phone has to ring as soon as you hangup) but I 
> want to remove the beep on my dahdi channels, how can I do?
> 
> Thanks,
> Niccolò
> --
> http://www.linuxsystems.it
> 
> --
> _
> -- Bandwidth and Colocation Provided by 
> http://www.api-digital.com -- New to Asterisk? Join us for a 
> live introductory webinar every Thurs:
>http://www.asterisk.org/hello
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailman/listinfo/asterisk-users


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] How to remove the call waiting tone without disabling callwaiting?

2012-10-01 Thread Niccolò Belli

Il 01/10/2012 20:08, Danny Nicholas ha scritto:

This is probably a dumb question, but your country/zone is set to "it"
(installs as "us" by default)?

Obviously :)

Anyway I think I found where the fucking bastard is hardcoded: 
chan_dahdi.c in asterisk :)


I will change

#define CALLWAITING_REPEAT_SAMPLES  ((1 * 8) / 
READ_SIZE) /*!< 10,000 ms */

to
#define CALLWAITING_REPEAT_SAMPLES  ((4 * 8) / 
READ_SIZE) /*!< 40,000 ms */


Niccolò
--
http://www.linuxsystems.it

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] How to remove the call waiting tone without disabling callwaiting?

2012-10-01 Thread Danny Nicholas
This is probably a dumb question, but your country/zone is set to "it"
(installs as "us" by default)?

-Original Message-
From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Niccolò Belli
Sent: Monday, October 01, 2012 12:46 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] How to remove the call waiting tone without
disabling callwaiting?

I modified the Italian zone in zonedata.c from

{ DAHDI_TONE_CALLWAIT, "425/400,0/100,425/250,0/100,425/150,0/14000" }, to {
DAHDI_TONE_CALLWAIT, "0/14" },

but I can still hear the damn beep :(

I even rebooted the pc, suggestions?

Niccolò
--
http://www.linuxsystems.it

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to
Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] How to remove the call waiting tone without disabling callwaiting?

2012-10-01 Thread Niccolò Belli

I modified the Italian zone in zonedata.c from

{ DAHDI_TONE_CALLWAIT, "425/400,0/100,425/250,0/100,425/150,0/14000" },
to
{ DAHDI_TONE_CALLWAIT, "0/14" },

but I can still hear the damn beep :(

I even rebooted the pc, suggestions?

Niccolò
--
http://www.linuxsystems.it

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] How to remove the call waiting tone without disabling callwaiting?

2012-10-01 Thread Danny Nicholas
That would be correct. You could always modify a country you aren't in for
testing purposes, keeping in mind that for each change you would do a make
install on dahdi to recompile the module, then do a service asterisk stop;
service dahdi restart then service asterisk start to test properly.

-Original Message-
From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Niccolò Belli
Sent: Monday, October 01, 2012 11:18 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] How to remove the call waiting tone without
disabling callwaiting?

Is it hardcoded in zonedata.c, am I right?
--
http://www.linuxsystems.it

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to
Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] How to remove the call waiting tone without disabling callwaiting?

2012-10-01 Thread Niccolò Belli

Is it hardcoded in zonedata.c, am I right?
--
http://www.linuxsystems.it

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] How to remove the call waiting tone without disabling callwaiting?

2012-10-01 Thread Niccolò Belli

Il 01/10/2012 17:47, Danny Nicholas ha scritto:

Maybe /etc/asterisk/chan_dahdi.conf

No, the only option here is to enable/disable callwaiting.

Cheers,
Niccolò
--
http://www.linuxsystems.it

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] How to remove the call waiting tone without disabling callwaiting?

2012-10-01 Thread Danny Nicholas
Maybe /etc/asterisk/chan_dahdi.conf 

-Original Message-
From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Niccolò Belli
Sent: Monday, October 01, 2012 10:40 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] How to remove the call waiting tone without
disabling callwaiting?

Il 01/10/2012 17:12, Danny Nicholas ha scritto:
>
> I would start here
> http://www.voip-info.org/wiki/view/Asterisk+indications+default
>
> You could change the tone to something less annoying or just inaudible.

Does it affect dahdi channels? If I recall correctly the dahdi tones are
hardcoded/placed elsewhere.

Thanks,
Niccolò
--
http://www.linuxsystems.it

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to
Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] How to remove the call waiting tone without disabling callwaiting?

2012-10-01 Thread Niccolò Belli

Il 01/10/2012 17:12, Danny Nicholas ha scritto:


I would start here
http://www.voip-info.org/wiki/view/Asterisk+indications+default

You could change the tone to something less annoying or just inaudible.


Does it affect dahdi channels? If I recall correctly the dahdi tones are 
hardcoded/placed elsewhere.


Thanks,
Niccolò
--
http://www.linuxsystems.it

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] How to remove the call waiting tone without disabling callwaiting?

2012-10-01 Thread Danny Nicholas
-Original Message-
From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Niccolò Belli
Sent: Monday, October 01, 2012 10:04 AM
To: asterisk-users@lists.digium.com
Subject: [asterisk-users] How to remove the call waiting tone without
disabling callwaiting?

Hi,
The call waiting tone is very annoying (you hear nothing while it plays the
beep). I need callwaiting because of the queues (the phone has to ring as
soon as you hangup) but I want to remove the beep on my dahdi channels, how
can I do?

Thanks,
Niccolò

I would start here
http://www.voip-info.org/wiki/view/Asterisk+indications+default

You could change the tone to something less annoying or just inaudible. 


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] How to remove the call waiting tone without disabling callwaiting?

2012-10-01 Thread Niccolò Belli

Hi,
The call waiting tone is very annoying (you hear nothing while it plays 
the beep). I need callwaiting because of the queues (the phone has to 
ring as soon as you hangup) but I want to remove the beep on my dahdi 
channels, how can I do?


Thanks,
Niccolò
--
http://www.linuxsystems.it

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users