[Asterisk-Users] Back to front logging for calls placed through /var/spool/asterisk/outgoing?

Iain Stevenson iain at iainstevenson.com
Sun Jan 25 05:30:26 MST 2004


That was interesting.  Asterisk creates the first cdr entry when the call 
file is copied to /var/spool/asterisk/outgoing:

"","","271536","callout","","Local/271536 at callout-fb25,2","Zap/1-1","Hangup
","","2004-01-25 12:22:54","2004-01-25 12:22:57","2004-01-25 
12:22:57",3,0,"ANSWERED","DOCUMENTATION"

On completion of the call, it generates a second cdr entry:

"","","10","home","","Local/271536 at callout-fb25,1","SIP/cisco-eca4","Dial",
"sip/cisco||tTr","2004-01-25 12:22:57","2004-01-25 12:22:59","2004-01-25 
12:23:14",17,15,"ANSWERED","DOCUMENTATION"

Neither of these entries went into the MySQL backend (via cdr_odbc) so this 
has unfortunately only been partially successful.

  Iain





--On Saturday, January 24, 2004 12:26:03 -0500 John Todd <jtodd at loligo.com> 
wrote:

>
> Try this: make your outbound call via a Local channel, and see if that
> gets logged.
>
> Channel: Local/271536 at callout
> MaxRetries: 0
> RetryTime: 60
> WaitTime: 60
> Context: home
> Extension: 10
> Priority: 1
>
>
> and then...
>
> [callout]
> exten => _X.,1,Dial(Zap/1/${EXTEN})
> exten => _X.,2,Congestion
> exten => _X.,102,Busy
> exten => h,1,Hangup
>
>
> JT
>
>
>> Here's an example - placing a call to 271536 from local extension
>> 10.  The call file is:
>>
>> Channel: Zap/1/271536
>> MaxRetries: 0
>> RetryTime: 60
>> WaitTime: 60
>> Context: home
>> Extension: 10
>> Priority: 1
>>
>> ... and the cdr record generated by * on completion of the call is:
>>
>> "","","10","home","","Zap/1-1","SIP/cisco-4edb","Dial","sip/cisco||tTr",
>> "20 04-01-24 16:02:10","2004-01-24 16:02:13","2004-01-24
>> 16:02:26",16,13,"ANSWERED","DOCUMENTATION"
>>
>> "cisco" is the name given in sip.conf for extension 10.  I was
>> expecting a cdr entry for the Zap/1 channel.
>>
>>  Iain
>>
>>
>>
>>
>>
>>
>>
>> --On Friday, January 23, 2004 21:55:40 -0500 John Todd
>> <jtodd at loligo.com> wrote:
>>
>>>
>>> Iain -
>>>    Brian I believe is correct, and Kannaiyan perhaps is not correct.
>>> Perhaps you can post the actual values in one of your call spool files
>>> so that we can comment on it more clearly.  Using the "Application:"
>>> statement in an outbound spool file will prevent a CDR from being
>>> created; use "Context:/Extension:/Priority:" methods.  If that fails,
>>> then we have a bug.
>>>
>>> JT
>>>
>>> At 5:59 PM -0600 1/23/04, Brian West wrote:
>>>>
>>>> NO it will log from a spool file if and only if you ref an extension
>>>> and not an application.
>>>>
>>>> bkw
>>>>
>>>> On Fri, 23 Jan 2004, Kannaiyan Natesan wrote:
>>>>
>>>>>  There is no CDR for the call from spool outgoing,
>>>>>
>>>>>  You need to write a patch to solve the same.
>>>>>
>>>>>  Kannaiyan
>>>>>
>>>>>  ----- Original Message -----
>>>>>  From: "Iain Stevenson" <iain at iainstevenson.com>
>>>>>  To: <asterisk-users at lists.digium.com>
>>>>>  Sent: Friday, January 23, 2004 8:27 PM
>>>>>  Subject: [Asterisk-Users] Back to front logging for calls placed
>>>>>  through /var/spool/asterisk/outgoing?
>>>>>
>>>>>
>>>>>  >
>>>>>  > I've just noticed that if you start a call by writing a file to
>>>>>  > /var/spool/asterisk/outgoing the cdr created on termination logs
>>>>>  > the call placed to the local extension - not to the destination in
>>>>>  > the PSTN.  Hence there is no record of the PSTN number dialled.  I
>>>>>  > guess most people want
>>>>>  to
>>>>>  > log the outgoing portion not the local call leg?  Anyone know of a
>>>>>  > setting that changes this?
>>>>>  >
>>>>  > >   Iain
>>> _______________________________________________
>>> Asterisk-Users mailing list
>>> Asterisk-Users at lists.digium.com
>>> http://lists.digium.com/mailman/listinfo/asterisk-users
>>> To UNSUBSCRIBE or update options visit:
>>>    http://lists.digium.com/mailman/listinfo/asterisk-users
>>>
>>
>>
>>
>>
>> _______________________________________________
>> Asterisk-Users mailing list
>> Asterisk-Users at lists.digium.com
>> http://lists.digium.com/mailman/listinfo/asterisk-users
>> To UNSUBSCRIBE or update options visit:
>>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>







More information about the asterisk-users mailing list