Klaus Darilion wrote:
> FYI: I checked the sources and Asterisk does write CDRs only if the call 
> in answered locally or forwarded to an outgoing channel.
>
> Thus, as workaround I wrapped the extensions behind Dial(Local/...)
>
> regards
> klaus
>
> Klaus Darilion schrieb:
>   
>> Hi!
>>
>> I just found out that Asterisk (1.4) does not write CDRs if the incoming 
>> call was not forwarded but handled internally without answering the call.
>>
>> E.g.:
>>
>> [from_pstn]
>> exten => 997,1,Answer()
>> exten => 997,2,Playback(tt-weasels)
>> exten => 997,3,Hangup()
>>
>> exten => 999,1,Playback(tt-weasels|noanswer)
>> exten => 999,4,Hangup()
>>
>>
>> For incoming calls to 997 a CDR will be written, but not for 999.
>>
>> How can I change this behavior?
>>
>> Thanks
>> Klaus
>>
>>     

This is the intended behavior, you should always use answer if you will 
handle the call with an IVR, otherwhise you also can cause problems on 
the remote end, for instance, if they are calling you from a CIsco 79xx 
phone and the phone never gets an answered state message the soft keys 
never switch to allow placing the call on hold or transferring the call, 
or selecting join if they where trying to do a three-way call to you.

    Please, instead of looking for Asterisk to change it's behavior, in 
this case I would implore you to change yours, as it may get you into 
trouble.


_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to