Mojtaba
2014-Jun-04 15:14 UTC
[asterisk-users] Channel is answered by FXO card before callee answered the phone(pick up phone)
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
John Novack
2014-Jun-04 15:28 UTC
[asterisk-users] Channel is answered by FXO card before callee answered the phone(pick up phone)
Mojtaba wrote:> 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
Richard Mudgett
2014-Jun-04 15:28 UTC
[asterisk-users] Channel is answered by FXO card before callee answered the phone(pick up phone)
On Wed, Jun 4, 2014 at 10:14 AM, Mojtaba <mespio at gmail.com> wrote:> 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20140604/24d5761a/attachment.html>
A J Stiles
2014-Jun-04 15:45 UTC
[asterisk-users] Channel is answered by FXO card before callee answered the phone(pick up phone)
On Wednesday 04 Jun 2014, Mojtaba wrote:> 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.MojtabaIf 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 .
Mojtaba
2014-Jun-04 20:41 UTC
[asterisk-users] Channel is answered by FXO card before callee answered the phone(pick up phone)
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