Call timer begins to count before the call is answered

I’ve installed asterisk successful but I’ve this problem of “call timing” it starting to count before even the call is connected or answered on the other end. is it normal or I’ve messed up somewhere, I was requesting your advice on how i can over come this. thank you…

Call timer on what? How is it connected to Asterisk? How is the remote party connected to Asterisk? What is the dialplan that is executed to handle the call? What appears in the log at at least verbosity 5?

Hello david!
when i make a call from Zoiper(as my softphone), it’s timer starts to count before even the call is connected or answered on the other end.
that’s what i mean david!

PJSIP or chan_sip?

Please answer the remaining questions.

Also please provide sip set debug on output for the dialogue from the Zoiper to Asterisk, starting at the first INVITE and ending when Asterisk responds with 200 OK. Use the log files, not a screen scrape. Indicate at what time the duration starts incrementing on the Zoiper.

https://wiki.asterisk.org/wiki/display/AST/Collecting+Debug+Information

thanks David!
am using chan_sip, below is the log info you requested I don’t know if it’s exactly what you requested but that’s the log immediately i dialed and hangedup from zopia softphone;

[2016-07-16 19:25:06] VERBOSE[21149][C-00000000] app_macro.c: Spawn extension (macro-dialout-trunk, s, 23) exited non-zero on ‘SIP/078960-00000000’ in macro ‘dialout-trunk’
[2016-07-16 19:25:06] VERBOSE[21149][C-00000000] pbx.c: Spawn extension (from-internal, 789960188, 5) exited non-zero on ‘SIP/078960-00000000’
[2016-07-16 19:25:06] VERBOSE[21149][C-00000000] pbx.c: Executing [h@from-internal:1] Macro(“SIP/078960-00000000”, “hangupcall”) in new stack
[2016-07-16 19:25:06] VERBOSE[21149][C-00000000] pbx.c: Executing [s@macro-hangupcall:1] GotoIf(“SIP/078960-00000000”, “1?theend”) in new stack
[2016-07-16 19:25:06] VERBOSE[21149][C-00000000] pbx.c: Goto (macro-hangupcall,s,3)
[2016-07-16 19:25:06] VERBOSE[21149][C-00000000] pbx.c: Executing [s@macro-hangupcall:3] ExecIf(“SIP/078960-00000000”, “0?Set(CDR(recordingfile)=)”) in new stack
[2016-07-16 19:25:06] VERBOSE[21149][C-00000000] pbx.c: Executing [s@macro-hangupcall:4] Hangup(“SIP/078960-00000000”, “”) in new stack
[2016-07-16 19:25:06] VERBOSE[21149][C-00000000] app_macro.c: Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘SIP/078960-00000000’ in macro ‘hangupcall’
[2016-07-16 19:25:06] VERBOSE[21149][C-00000000] pbx.c: Spawn extension (from-internal, h, 1) exited non-zero on ‘SIP/078960-00000000’
[2016-07-16 19:25:10] VERBOSE[21262] manager.c: Manager ‘admin’ logged on from 127.0.0.1
[2016-07-16 19:25:10] VERBOSE[21262] manager.c: Manager ‘admin’ logged off from 127.0.0.1
[2016-07-16 19:25:11] VERBOSE[21273] manager.c: Manager ‘admin’ logged on from 127.0.0.1
[2016-07-16 19:25:11] VERBOSE[21276] manager.c: Manager ‘admin’ logged on from 127.0.0.1

please does it make sense i provided wrong info…
thanks

Your trace starts after the end of the call. However it does tell me you are probably using FreePBX. FreePBX is not supported here. I believe that the dialplan supplied by FreePBX does answer the call prematurely.

You can either prove this by providing the correct part of the trace, or simply assume it and go to the correct place for FreePBX peer support: http://community.freepbx.org/

hello David, am sorry that i used freepbx, now below is my log file with sip set debug on hope it’s the right info, BUT I’ll request please to follow this link as the log info is too long,

http://pastebin.com/5wZkCpr0

thanks

Asterisk never answers the incoming call in that trace, so if Zoiper starts counting during that call, is is purely Zoiper’s decision to do so.

thanks David, but i also tried it with other softphone, like jitsi, its the same…
by the way the other end didn’t answer the call, maybe you want me to do so and send you the log file after the call has been ended.

I only need it up to the point where the phone starts counting seconds. Either there will be a SP message corresponding to that point, or the process is independent of Asterisk.

hello david!
thanks for your help, i realized that it’s only zoiper which starts counting as you stated earlier…other softphones don’t, unless the call is answered.
thank you, very much