Re: [asterisk-users] ZAP inbound/outbound connection taking too long

2007-06-03 Thread Stephen Bosch
Gordon Henderson wrote:
> On Fri, 1 Jun 2007, Gavin Henry wrote:
> 
>> Dear all,
>>
>> I think this is common, or at least how it is supposed to be, but
>> whening dialing over a ZAP channel, it's taking around 5~ seconds to
>> ring on the over end, likewise inbound.
>>
>> This is just with a normal Dial command.
> 
> It's "normal" for an analogue Zap channel.

Not exactly. Explanation follows.

> Asterisk has to "sieze" the line (after a basic check to make sure the
> channel is free), that may entail a delay of a second or so while it
> makes sure there there is a dial-tone (actually, I'm not sure it waits
> for a dial-tone)

Zap does not do dial tone detection.

>, then it sends the digits out via DTMF - that might
> take a second or 2 for a long number - then it's up to the PSTN switch
> at the other end to connect the call - depending on the technology, this
> might take several seconds.

This depends on multiple factors -- you can tweak your DTMF output to
speed up dialing. You'll have to use some trial and error to confirm
that the PSTN is receiving the DTMF properly.

I have another theory, though -- are you dialing from a SIP extension?

The biggest delay, in my experience, is the time it takes for the SIP
extension to recognize that a full number has been dialed. It doesn't
pass the number to Asterisk until it has interpreted it as a complete
number.

Many SIP devices let you configure this behaviour.

You should also compare how long it takes to complete a call from an
analog extension that is directly on the line, so that you have a
baseline for reference.

You will also find that many key systems introduce delay like this. In
any case, this is all tweakable to make it faster.

-Stephen
___
--Bandwidth and Colocation provided by Easynews.com --

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


Re: [asterisk-users] ZAP inbound/outbound connection taking too long

2007-06-01 Thread Drew Gibson

Gavin Henry wrote:


On 01/06/07, Gordon Henderson <[EMAIL PROTECTED]> wrote:


On Fri, 1 Jun 2007, Gavin Henry wrote:

> Dear all,
>
> I think this is common, or at least how it is supposed to be, but
> whening dialing over a ZAP channel, it's taking around 5~ seconds to
> ring on the over end, likewise inbound.
>
> This is just with a normal Dial command.

It's "normal" for an analogue Zap channel.

Asterisk has to "sieze" the line (after a basic check to make sure the
channel is free), that may entail a delay of a second or so while it 
makes

sure there there is a dial-tone (actually, I'm not sure it waits for a
dial-tone), then it sends the digits out via DTMF - that might take a
second or 2 for a long number - then it's up to the PSTN switch at the
other end to connect the call - depending on the technology, this might
take several seconds.

What you can do is connect to asterisk (asterisk -r), set verbose ,
then initiate a dial and you'll see the dialplan progress and you can 
work

out yourself where the longest part of the delay is...

Inbound ought to be answered as soon as asterisk "hears" the ringing
signal - but this might be one whole ring time from the ring starting,
depending on how caller-id is being handled in your country, again,
monitor it by looking at the output on the console, and by connecting an
existing analogue phone in paralel with the incoming Zap line.

Gordon
___


Thanks for this explaination!

Gavin.

You may also have to wait for a dial timeout at the handset while it 
decides whether you have finished entering digits. Some handsets have a 
'dialplan' you can program to recognize common combinations and bypass 
this delay.


regards,

Drew

--
Drew Gibson

Systems Administrator
OANDA Corporation
www.oanda.com

___
--Bandwidth and Colocation provided by Easynews.com --

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


Re: [asterisk-users] ZAP inbound/outbound connection taking too long

2007-06-01 Thread Gavin Henry

On 01/06/07, Gordon Henderson <[EMAIL PROTECTED]> wrote:

On Fri, 1 Jun 2007, Gavin Henry wrote:

> Dear all,
>
> I think this is common, or at least how it is supposed to be, but
> whening dialing over a ZAP channel, it's taking around 5~ seconds to
> ring on the over end, likewise inbound.
>
> This is just with a normal Dial command.

It's "normal" for an analogue Zap channel.

Asterisk has to "sieze" the line (after a basic check to make sure the
channel is free), that may entail a delay of a second or so while it makes
sure there there is a dial-tone (actually, I'm not sure it waits for a
dial-tone), then it sends the digits out via DTMF - that might take a
second or 2 for a long number - then it's up to the PSTN switch at the
other end to connect the call - depending on the technology, this might
take several seconds.

What you can do is connect to asterisk (asterisk -r), set verbose ,
then initiate a dial and you'll see the dialplan progress and you can work
out yourself where the longest part of the delay is...

Inbound ought to be answered as soon as asterisk "hears" the ringing
signal - but this might be one whole ring time from the ring starting,
depending on how caller-id is being handled in your country, again,
monitor it by looking at the output on the console, and by connecting an
existing analogue phone in paralel with the incoming Zap line.

Gordon
___



Thanks for this explaination!

Gavin.


--Bandwidth and Colocation provided by Easynews.com --

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


___
--Bandwidth and Colocation provided by Easynews.com --

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


Re: max verbose level [was: Re: [asterisk-users] ZAP inbound/outbound connection taking too long]

2007-06-01 Thread Gordon Henderson

On Fri, 1 Jun 2007, Tzafrir Cohen wrote:


Unrelated issue:

On Fri, Jun 01, 2007 at 12:03:27PM +0100, Gordon Henderson wrote:

On Fri, 1 Jun 2007, Gavin Henry wrote:



What you can do is connect to asterisk (asterisk -r), set verbose ,


Any point in verbose level over 4 ?


Probably not - I just seem to have gotten into the habit of typing that :)

Gordon
___
--Bandwidth and Colocation provided by Easynews.com --

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


max verbose level [was: Re: [asterisk-users] ZAP inbound/outbound connection taking too long]

2007-06-01 Thread Tzafrir Cohen
Unrelated issue:

On Fri, Jun 01, 2007 at 12:03:27PM +0100, Gordon Henderson wrote:
> On Fri, 1 Jun 2007, Gavin Henry wrote:

> What you can do is connect to asterisk (asterisk -r), set verbose , 

Any point in verbose level over 4 ?

-- 
   Tzafrir Cohen   
icq#16849755jabber:[EMAIL PROTECTED]
+972-50-7952406   mailto:[EMAIL PROTECTED]   
http://www.xorcom.com  iax:[EMAIL PROTECTED]/tzafrir
___
--Bandwidth and Colocation provided by Easynews.com --

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


Re: [asterisk-users] ZAP inbound/outbound connection taking too long

2007-06-01 Thread Gordon Henderson

On Fri, 1 Jun 2007, Gavin Henry wrote:


Dear all,

I think this is common, or at least how it is supposed to be, but
whening dialing over a ZAP channel, it's taking around 5~ seconds to
ring on the over end, likewise inbound.

This is just with a normal Dial command.


It's "normal" for an analogue Zap channel.

Asterisk has to "sieze" the line (after a basic check to make sure the 
channel is free), that may entail a delay of a second or so while it makes 
sure there there is a dial-tone (actually, I'm not sure it waits for a 
dial-tone), then it sends the digits out via DTMF - that might take a 
second or 2 for a long number - then it's up to the PSTN switch at the 
other end to connect the call - depending on the technology, this might 
take several seconds.


What you can do is connect to asterisk (asterisk -r), set verbose , 
then initiate a dial and you'll see the dialplan progress and you can work 
out yourself where the longest part of the delay is...


Inbound ought to be answered as soon as asterisk "hears" the ringing 
signal - but this might be one whole ring time from the ring starting, 
depending on how caller-id is being handled in your country, again, 
monitor it by looking at the output on the console, and by connecting an 
existing analogue phone in paralel with the incoming Zap line.


Gordon
___
--Bandwidth and Colocation provided by Easynews.com --

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


[asterisk-users] ZAP inbound/outbound connection taking too long

2007-06-01 Thread Gavin Henry

Dear all,

I think this is common, or at least how it is supposed to be, but
whening dialing over a ZAP channel, it's taking around 5~ seconds to
ring on the over end, likewise inbound.

This is just with a normal Dial command.

Are there any ways to tweak this?

Thanks,

Gavin.
___
--Bandwidth and Colocation provided by Easynews.com --

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