# Wait before asterisk get the call from second fxo line

**URL:** <https://community.asterisk.org/t/wait-before-asterisk-get-the-call-from-second-fxo-line/65926>\
**Category:** Uncategorized\
**Created:** [March 9, 2016, 12:05pm UTC](https://community.asterisk.org/t/wait-before-asterisk-get-the-call-from-second-fxo-line/65926 "2016-03-09T12:05:13Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![roseman1986](https://avatars.discourse-cdn.com/v4/letter/r/a9a28c/32.png) [@roseman1986](https://community.asterisk.org/u/roseman1986)\
**Post date:** [March 9, 2016, 12:05pm UTC](https://community.asterisk.org/t/wait-before-asterisk-get-the-call-from-second-fxo-line/65926/1 "2016-03-09T12:05:13Z")

</div>

Hello,  
I have pci with 2 fxo lines, i want asterisk answer the first line immediately like know, but the second line from fxo wait for 5 rings before doing anything. That way if someone picks the line before the 5 rings, asterisk won’t do anything because when someone picks the line with a regular phone it stops ringing so asterisk should think the caller hung.

---

<div class="post-metadata">

**Author:** ![malcolmd](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/malcolmd/32/5_2.png) [@malcolmd](https://community.asterisk.org/u/malcolmd)\
**Post date:** [March 9, 2016, 2:21pm UTC](https://community.asterisk.org/t/wait-before-asterisk-get-the-call-from-second-fxo-line/65926/2 "2016-03-09T14:21:27Z")

</div>

Howdy,

Asterisk isn’t the thing providing ring-back to the far-end. You can use the [Wait()](https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Application_Wait) application, but it deals in time, not in rings.

Cheers

---

<div class="post-metadata">

**Author:** ![roseman1986](https://avatars.discourse-cdn.com/v4/letter/r/a9a28c/32.png) [@roseman1986](https://community.asterisk.org/u/roseman1986)\
**Post date:** [March 9, 2016, 6:11pm UTC](https://community.asterisk.org/t/wait-before-asterisk-get-the-call-from-second-fxo-line/65926/3 "2016-03-09T18:11:45Z")

</div>

Thank you for your response.  
But how can do the setting? Where to add the confing to wait in fille extensions.conf or in dahdi\_channels.conf?  
And how to add in olny secont line of fxo?  
Thanks

---

<div class="post-metadata">

**Author:** ![david551](https://avatars.discourse-cdn.com/v4/letter/d/3bc359/32.png) [@david551](https://community.asterisk.org/u/david551)\
**Post date:** [March 9, 2016, 9:56pm UTC](https://community.asterisk.org/t/wait-before-asterisk-get-the-call-from-second-fxo-line/65926/4 "2016-03-09T21:56:21Z")

</div>

extensions.conf

Type “core show application wait” at the CLI for details.

---

<div class="post-metadata">

**Author:** ![roseman1986](https://avatars.discourse-cdn.com/v4/letter/r/a9a28c/32.png) [@roseman1986](https://community.asterisk.org/u/roseman1986)\
**Post date:** [March 9, 2016, 10:21pm UTC](https://community.asterisk.org/t/wait-before-asterisk-get-the-call-from-second-fxo-line/65926/5 "2016-03-09T22:21:28Z")

</div>

> [@david551](#):
>
> core show application wait"

thank you , i will try it

---

<div class="post-metadata">

**Author:** ![roseman1986](https://avatars.discourse-cdn.com/v4/letter/r/a9a28c/32.png) [@roseman1986](https://community.asterisk.org/u/roseman1986)\
**Post date:** [March 10, 2016, 9:21am UTC](https://community.asterisk.org/t/wait-before-asterisk-get-the-call-from-second-fxo-line/65926/6 "2016-03-10T09:21:08Z")

</div>

With this confing working for dahdi 1 and dahdi 2 together.  
Not only for dahdi 2 that i wont.

from-pstn  
exten =\> s,1,Wait(15)  
exten =\> s,2,Answer()

---

<div class="post-metadata">

**Author:** ![david551](https://avatars.discourse-cdn.com/v4/letter/d/3bc359/32.png) [@david551](https://community.asterisk.org/u/david551)\
**Post date:** [March 10, 2016, 11:28pm UTC](https://community.asterisk.org/t/wait-before-asterisk-get-the-call-from-second-fxo-line/65926/7 "2016-03-10T23:28:38Z")

</div>

You need to use different contexts for the two lines.
