Call drop out after 20-40 seconds

i am using the current version of AsteriskNow.

I have two trunks and five extensions.

If i make a call it will always drop out within 20-40 seconds but if someone call me it doesn’t drop out .

If anyone has any ideas on how to fix this problem i would really appreciate it

You are probably “Failing to Bridge” on outgoing calls. Your dialplan probably has something like:

exten => s,1,Dial(SIP/12345,20,Kt)

which says call SIP/12345 and hang up if I don’t do my stuff in 20 seconds; allow transfer if I do.

doing this

exten => s,1,Answer
exten => s,2,Dial(SIP/12345,20,Kt)

Will keep the line open forever (until you hang up) but will mess with your call accounting and won’t properly record the length of an actual call.