Call status

Hello,

    i have observed that, it starts playing the file before actually phone is picked up.. It receives the trixbox channel answered, don't how can it be happened as i have not pickedup the phone..? 

Is it consider the ringing as a answered state, if so then how can i get the actually phone pick up event? (this is not the issue in case of softphone, it gets the answered event only when we accept the call, so why is it so in case of PSTN lines?) How can i solve this problem?

I want that the file should be played only when the phone is picked up.

Regards
Ether

If you use Exten XXXXX,n,Answer then the call is in an answerd state.
Please post your extensions.conf so we can get a better look at what you have. Also you may want to post your question on the trixbox forums @ trixbox.org

Hello Dovid,
I am sending the status of extension.conf according to your suggestion.
[ul]
[outboundmsg21]
exten => s,1,DigitTimeout,5 ; Set Digit Timeout to 5 seconds
exten => s,2,ResponseTimeout,10 ; Set Response Timeout to 10 seconds
exten => s,3,Answer
exten => s,4,Set(DUR1=${EPOCH})
exten => s,5,WaitForSilence(1500,1)
exten => s,6,Background(msg1/greet) ; "play greeting msg"
exten => s,7,Background(msg1/test) ; "play outbound msg"
exten => s,8,Background(to-hear-msg-again)
exten => s,9,Background(press-1)
exten => s,10,Background(to-confirm-wakeup)
exten => s,11,Background(press-2) ; "Press 1 to replay or 2 to acknowledge receiving this message"
exten => 1,1,Goto(s,6 ) ; replay message
exten => 2,1,Goto(t,1) ; acknowledge message
exten => t,1,Playback(vm-goodbye)
exten => t,2,Hangup
exten => i,1,Playback(pbx-invalid)
exten => i,2,Goto(s,8 )
exten => h,1,Set(DUR1=$[${EPOCH}-${DUR1}])
exten => h,2,Hangup
[/ul]
please see the dial plan for extension.conf and also give me the ideas to solve this issue ASAP.

Ether

search the forum for “answer supervision” … it’s what you’re missing by the sounds of things.