Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] Channel is answered by FXO card before callee answered the phone(pick up phone)


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
mespio at gmail.com
Guest





PostPosted: Wed Jun 04, 2014 10:15 am    Post subject: [asterisk-users] Channel is answered by FXO card before call Reply with quote

Hello Experts.
Im working with Asterisk PBXand freeswitch PBX.
I have a challenge with FXO card in Asterisk and i could not solve it yet.
I hope you could guide me in this regards.
When i want route the call to FXO channels, Before the callee answer
the phone (pick up phone), The channel is answered with FXO card. How
can change this treat so that the callee dont answer the phone, the
channel dont answered with FXO card. I have this challenge with FXO
gateway too.
This challenge is more important when using callfile to generate call
using DAHDI/g0/
When using it,All attempts to generate call are answered in CDR
field(disposision=answered).

Im waiting for your replying and Thanks.
With Regards.Mojtaba

--
_____________________________________________________________________
-- 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
Back to top
jnovack at stromberg-c...
Guest





PostPosted: Wed Jun 04, 2014 10:28 am    Post subject: [asterisk-users] Channel is answered by FXO card before call Reply with quote

Mojtaba wrote:
Quote:
Hello Experts.
Im working with Asterisk PBXand freeswitch PBX.
I have a challenge with FXO card in Asterisk and i could not solve it yet.
I hope you could guide me in this regards.
When i want route the call to FXO channels, Before the callee answer
the phone (pick up phone), The channel is answered with FXO card. How
can change this treat so that the callee dont answer the phone, the
channel dont answered with FXO card. I have this challenge with FXO
gateway too.
This challenge is more important when using callfile to generate call
using DAHDI/g0/
When using it,All attempts to generate call are answered in CDR
field(disposision=answered).

Im waiting for your replying and Thanks.
With Regards.Mojtaba

I believe that is a well known behavior of Zaptel/DAHDI, given that many analog lines that would be attached to an FXO card supply little or no indication of an answered call, calls are considered answered once dialing is complete.

You will need to use an alternate technology if you want to know if or when the caller has answered.

John Novack

--

Dog is my Co-pilot


--
_____________________________________________________________________
-- 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
Back to top
rmudgett at digium.com
Guest





PostPosted: Wed Jun 04, 2014 10:29 am    Post subject: [asterisk-users] Channel is answered by FXO card before call Reply with quote

On Wed, Jun 4, 2014 at 10:14 AM, Mojtaba <mespio@gmail.com (mespio@gmail.com)> wrote:
Quote:
Hello Experts.
Im working with Asterisk PBXand freeswitch PBX.
I have a challenge with FXO card in Asterisk and i could not solve it yet.
I hope you could guide me in this regards.
When i want route the call to FXO channels, Before the callee answer
the phone (pick up phone), The channel is answered with FXO card. How
can change this treat so that the callee dont answer the phone, the
channel dont answered with FXO card. I have this challenge with FXO
gateway too.
This challenge is more important when using callfile to generate call
using DAHDI/g0/
When using it,All attempts to generate call are answered in CDR
field(disposision=answered).


This is how analog works because it cannot detect when the far end
answers with any kind of reliability.  The FXO port considers the call
answered as soon as it finishes dialing the last digit.  There is some
attempt to do this using line supervision by polarity reversal.  However,
this is not normally supported by the telco.



Richard
Back to top
asterisk_list at earth...
Guest





PostPosted: Wed Jun 04, 2014 10:45 am    Post subject: [asterisk-users] Channel is answered by FXO card before call Reply with quote

On Wednesday 04 Jun 2014, Mojtaba wrote:
Quote:
Hello Experts.
Im working with Asterisk PBXand freeswitch PBX.
I have a challenge with FXO card in Asterisk and i could not solve it yet.
I hope you could guide me in this regards.
When i want route the call to FXO channels, Before the callee answer
the phone (pick up phone), The channel is answered with FXO card. How
can change this treat so that the callee dont answer the phone, the
channel dont answered with FXO card. I have this challenge with FXO
gateway too.
This challenge is more important when using callfile to generate call
using DAHDI/g0/
When using it,All attempts to generate call are answered in CDR
field(disposision=answered).

Im waiting for your replying and Thanks.
With Regards.Mojtaba

If you mean that Dial(DAHDI/g0/${EXTEN}) gets answered straight away, I think
that behaviour is normal. There isn't much in the way of supervisory
information coming along an analogue line, for want of a D-channel.

If you mean that the FXO card shares a line with a normal phone and you want
to be able to answer an -incoming- call on that phone, then you need a Wait()
in your dialplan before any Answer(). That will give time for someone to
answer the phone before Asterisk does; the ringing will stop, and the
extension will stop being processed.

--
AJS

Note: Originating address only accepts e-mail from list! If replying off-
list, change address to asterisk1list at earthshod dot co dot uk .

--
_____________________________________________________________________
-- 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
Back to top
mespio at gmail.com
Guest





PostPosted: Wed Jun 04, 2014 3:41 pm    Post subject: [asterisk-users] Channel is answered by FXO card before call Reply with quote

Thank you for your replying.
Is there any way so that i could found the far end user pick up phone? I
could use Wait() function in dialplan but i dont how long (secend)
should be wait!
Thanks with Regards.Mojtaba

--
_____________________________________________________________________
-- 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
Back to top
mespio at gmail.com
Guest





PostPosted: Wed Jun 04, 2014 3:43 pm    Post subject: [asterisk-users] Channel is answered by FXO card before call Reply with quote

Thank you for your replying.
Is there any way so that i could found the far end user pick up phone? I
could use Wait() function in dialplan but i dont how long (secend)
should be wait!
Thanks with Regards.Mojtaba

--
_____________________________________________________________________
-- 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
Back to top
sruffell at digium.com
Guest





PostPosted: Wed Jun 04, 2014 3:52 pm    Post subject: [asterisk-users] Channel is answered by FXO card before call Reply with quote

On Thu, Jun 05, 2014 at 01:13:11AM +0430, Mojtaba wrote:
Quote:
Thank you for your replying.
Is there any way so that i could found the far end user pick up
phone? I could use Wait() function in dialplan but i dont how long
(secend) should be wait!
Thanks with Regards.Mojtaba

Mojtaba,

It's not an exact science, but I believe what you want is
the "callprogress" setting in chan_dahdi. Keep in mind that it can
detect false positives, etc.

Look in chan_dahdi.conf.sample for more information [1]. Give it a
try. It may work for you..but it may not...

[1] https://github.com/sruffell/asterisk-working/blob/svn_trunk/configs/chan_dahdi.conf.sample#L1038-L1059

--
Shaun Ruffell
Digium, Inc. | Linux Kernel Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: www.digium.com & www.asterisk.org

--
_____________________________________________________________________
-- 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
Back to top
asterisk_list at earth...
Guest





PostPosted: Thu Jun 05, 2014 3:38 am    Post subject: [asterisk-users] Channel is answered by FXO card before call Reply with quote

On Wednesday 04 Jun 2014, Mojtaba wrote:
Quote:
Thank you for your replying.
Is there any way so that i could found the far end user pick up phone? I
could use Wait() function in dialplan but i dont how long (secend)
should be wait!
Thanks with Regards.Mojtaba

I'm confused now. Please describe which scenario applies to you:

(1) Your Asterisk box shares an analogue line with an ordinary telephone.
You want the person sitting at that telephone to be able to answer it and
prevent the Asterisk box friom answering it. This is where you need a Wait()
in your dialplan.

(2) Outgoing calls from your Asterisk box are showing up as "answered" even
whether or not the person at the far end picked up their telephone.

--
AJS

Note: Originating address only accepts e-mail from list! If replying off-
list, change address to asterisk1list at earthshod dot co dot uk .

--
_____________________________________________________________________
-- 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
Back to top
mespio at gmail.com
Guest





PostPosted: Thu Jun 05, 2014 1:01 pm    Post subject: [asterisk-users] Channel is answered by FXO card before call Reply with quote

My scenario is (2)

--
_____________________________________________________________________
-- 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
Back to top
asterisk_list at earth...
Guest





PostPosted: Fri Jun 06, 2014 3:15 am    Post subject: [asterisk-users] Channel is answered by FXO card before call Reply with quote

On Thursday 05 Jun 2014, Mojtaba wrote:
Quote:
My scenario is (2)

After doing some tests with my own hardware, I'm now convinced that this is
actually normal behaviour: As far as Asterisk is concerned, a call is deemed
"answered" as soon as the hardware seizes the line. It is only "not answered"
if the line is not available.

Which makes sense, because an analogue line has no D-channel. Once the trunk
is acquired successfully, there is no way for a machine to know the state of
the call beyond then. Such supervisory information as there is -- a regular
cadence during ringing, possibly a burst of white noise and then a human voice
-- is geared towards interpretation by human beings.

Moerover, since the tones are different in every country (and sometimes,
between different telephone exchanges in the same country; at one time, the UK
was using three sets of supervisory tones depending whether you were on an
old-fashioned "clicky-clicky" exchange, an intermediate-generation analogue
electronic exchange or System X) it would not be a trivial task to make sense
of them.


I think if you want full supervisory information, you are going to need to use
some sort of digital telephony technology (ISDN or GSM).

--
AJS

Note: Originating address only accepts e-mail from list! If replying off-
list, change address to asterisk1list at earthshod dot co dot uk .

--
_____________________________________________________________________
-- 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
Back to top
mespio at gmail.com
Guest





PostPosted: Fri Jun 06, 2014 4:19 am    Post subject: [asterisk-users] Channel is answered by FXO card before call Reply with quote

Thank you very mush for your good replying.
M.Esfandiari.S

--
_____________________________________________________________________
-- 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
Back to top
jnovack at stromberg-c...
Guest





PostPosted: Fri Jun 06, 2014 7:28 am    Post subject: [asterisk-users] Channel is answered by FXO card before call Reply with quote

A J Stiles wrote:
Quote:
On Thursday 05 Jun 2014, Mojtaba wrote:
Quote:
My scenario is (2)
After doing some tests with my own hardware, I'm now convinced that this is
actually normal behaviour: As far as Asterisk is concerned, a call is deemed
"answered" as soon as the hardware seizes the line. It is only "not answered"
if the line is not available.

Which makes sense, because an analogue line has no D-channel. Once the trunk
is acquired successfully, there is no way for a machine to know the state of
the call beyond then. Such supervisory information as there is -- a regular
cadence during ringing, possibly a burst of white noise and then a human voice
-- is geared towards interpretation by human beings.

Moerover, since the tones are different in every country (and sometimes,
between different telephone exchanges in the same country; at one time, the UK
was using three sets of supervisory tones depending whether you were on an
old-fashioned "clicky-clicky" exchange, an intermediate-generation analogue
electronic exchange or System X) it would not be a trivial task to make sense
of them.


I think if you want full supervisory information, you are going to need to use
some sort of digital telephony technology (ISDN or GSM).

This is well known behavior for many years, since the inception of Asterisk/Zaptel
I wonder why tests had to be run!
The OP issue was answered several days ago
His issue was obvious and well stated until another poster confused the issue!

John Novack

--
_____________________________________________________________________
-- 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
Back to top
sruffell at digium.com
Guest





PostPosted: Fri Jun 06, 2014 7:54 am    Post subject: [asterisk-users] Channel is answered by FXO card before call Reply with quote

On Fri, Jun 06, 2014 at 08:28:07AM -0400, John Novack SCII wrote:
Quote:
A J Stiles wrote:
Quote:
On Thursday 05 Jun 2014, Mojtaba wrote:
Quote:
My scenario is (2)
After doing some tests with my own hardware, I'm now convinced that this is
actually normal behaviour: As far as Asterisk is concerned, a call is deemed
"answered" as soon as the hardware seizes the line. It is only "not answered"
if the line is not available.

Which makes sense, because an analogue line has no D-channel. Once the trunk
is acquired successfully, there is no way for a machine to know the state of
the call beyond then. Such supervisory information as there is -- a regular
cadence during ringing, possibly a burst of white noise and then a human voice
-- is geared towards interpretation by human beings.

Moerover, since the tones are different in every country (and sometimes,
between different telephone exchanges in the same country; at one time, the UK
was using three sets of supervisory tones depending whether you were on an
old-fashioned "clicky-clicky" exchange, an intermediate-generation analogue
electronic exchange or System X) it would not be a trivial task to make sense
of them.


I think if you want full supervisory information, you are going to need to use
some sort of digital telephony technology (ISDN or GSM).

This is well known behavior for many years, since the inception of Asterisk/Zaptel
I wonder why tests had to be run!
The OP issue was answered several days ago
His issue was obvious and well stated until another poster confused the issue!

Just to keep it clear for anyone who stumbles on this thread in the
future, this can sometimes work if you set the callprogress=yes
option in chan_dahdi.conf if your country/provider/exchange is
supported.

--
Shaun Ruffell
Digium, Inc. | Linux Kernel Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: www.digium.com & www.asterisk.org

--
_____________________________________________________________________
-- 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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services