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

2004-01-25 Thread Iain Stevenson
That was interesting.  Asterisk creates the first cdr entry when the call 
file is copied to /var/spool/asterisk/outgoing:

"","","271536","callout","","Local/[EMAIL PROTECTED],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/[EMAIL PROTECTED],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 <[EMAIL PROTECTED]> 
wrote:

Try this: make your outbound call via a Local channel, and see if that
gets logged.
Channel: Local/[EMAIL PROTECTED]
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
<[EMAIL PROTECTED]> 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" <[EMAIL PROTECTED]>
 To: <[EMAIL PROTECTED]>
 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
[EMAIL PROTECTED]
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
[EMAIL PROTECTED]
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
[EMAIL PROTECTED]
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
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


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

2004-01-24 Thread John Todd
Try this: make your outbound call via a Local channel, and see if 
that gets logged.

Channel: Local/[EMAIL PROTECTED]
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 
<[EMAIL PROTECTED]> 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" <[EMAIL PROTECTED]>
 To: <[EMAIL PROTECTED]>
 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
[EMAIL PROTECTED]
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
[EMAIL PROTECTED]
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
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


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

2004-01-24 Thread Iain Stevenson
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 <[EMAIL PROTECTED]> 
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" <[EMAIL PROTECTED]>
 To: <[EMAIL PROTECTED]>
 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
[EMAIL PROTECTED]
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
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


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

2004-01-23 Thread John Todd
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" <[EMAIL PROTECTED]>
 To: <[EMAIL PROTECTED]>
 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
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


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

2004-01-23 Thread Brian West
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" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> 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
> > [EMAIL PROTECTED]
> > 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
> [EMAIL PROTECTED]
> 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
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


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

2004-01-23 Thread Kannaiyan Natesan
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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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
> [EMAIL PROTECTED]
> 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
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users