Re: [Astlinux-users] logging ip_addresses of calls

2012-12-07 Thread Graham S. Jarvis
Thanks Michael! Since the call is coming in over IAX2 it's: Set(CDR(userfield)=${CHANNEL(peerip)}) I am using Asterisk 1.8.13.0 Works a treat! -Graham- Lonnie Abelbeck wrote on 05/12/12 16:39: > > On Dec 5, 2012, at 8:44 AM, Michael Keuter wrote: > >> >> Am 05.12.2012 um 14:49 schrie

Re: [Astlinux-users] logging ip_addresses of calls

2012-12-05 Thread Lonnie Abelbeck
On Dec 5, 2012, at 8:44 AM, Michael Keuter wrote: > > Am 05.12.2012 um 14:49 schrieb Graham S. Jarvis: > >> Hello again, >> >> I must be missing or not understanding something - I get: >> >> pbx*CLI> >>-- Accepting AUTHENTICATED call from XXX.XXX.XXX.XXX: >>> requested format = gsm, >>> r

Re: [Astlinux-users] logging ip_addresses of calls

2012-12-05 Thread Michael Keuter
Am 05.12.2012 um 14:49 schrieb Graham S. Jarvis: > Hello again, > > I must be missing or not understanding something - I get: > > pbx*CLI> > -- Accepting AUTHENTICATED call from XXX.XXX.XXX.XXX: >> requested format = gsm, >> requested prefs = (), >> actual format = gsm, >> host prefs = (),

Re: [Astlinux-users] logging ip_addresses of calls

2012-12-05 Thread Graham S. Jarvis
Hello again, I must be missing or not understanding something - I get: pbx*CLI> -- Accepting AUTHENTICATED call from XXX.XXX.XXX.XXX: > requested format = gsm, > requested prefs = (), > actual format = gsm, > host prefs = (), > priority = mine [Dec 5

Re: [Astlinux-users] logging ip_addresses of calls

2012-11-29 Thread Lonnie Abelbeck
Yes, David and James and Michael, that should solve Graham's problem nicely. I saw the "not using custom_cdr" requirement and skipped the better, more obvious solution. Thanks, Lonnie On Nov 29, 2012, at 9:44 AM, James Babiak wrote: > Lonnie, > > Regarding #1, wouldn't this work: > Set(CDR(

Re: [Astlinux-users] logging ip_addresses of calls

2012-11-29 Thread Michael Keuter
Am 29.11.2012 um 16:34 schrieb Lonnie Abelbeck: > Hi Graham, > > I'm not aware of logging IP's via #1 or #2. > > My only idea would be to send an email for each incoming SIP call, add these > two lines in you incoming SIP call dialplan: (assuming Asterisk 1.8 or later) > > -- extensions.conf

Re: [Astlinux-users] logging ip_addresses of calls

2012-11-29 Thread James Babiak
Lonnie, Regarding #1, wouldn't this work: Set(CDR(userfield)=${CHANNEL(recvip)}) to show the IP address in the userfield of the CDR report? I currently use this method, albeit with a different variable, to log what DID a call came in under. -James On 11/29/2012 10:34 AM, Lonnie Abelbeck wrote

Re: [Astlinux-users] logging ip_addresses of calls

2012-11-29 Thread David Kerr
Could you not add it to the userfield of the CDR ? exten => s,n,Set(CDR(userfield)=${CHANNEL(recvip)}) David On Thu, Nov 29, 2012 at 10:34 AM, Lonnie Abelbeck wrote: > Hi Graham, > > I'm not aware of logging IP's via #1 or #2. > > My only idea would be to send an email for each incoming SIP c

Re: [Astlinux-users] logging ip_addresses of calls

2012-11-29 Thread Lonnie Abelbeck
Hi Graham, I'm not aware of logging IP's via #1 or #2. My only idea would be to send an email for each incoming SIP call, add these two lines in you incoming SIP call dialplan: (assuming Asterisk 1.8 or later) -- extensions.conf snippet -- exten => s,n,Set(LOGIP=${CHANNEL(recvip)}) exten => s,n

[Astlinux-users] logging ip_addresses of calls

2012-11-29 Thread Graham S. Jarvis
Hello All, it's not really an Astlinux issue but does anyone know a way of including the ip_addr off incoming calls 1. in the cdr file (not using custom_cdr) 2. in the message sent with the e-mail and voicemail file Any ideas? -Graham- --

[Astlinux-users] logging ip_addresses of calls

2012-11-29 Thread Graham S. Jarvis
Hello All, it's not really an Astlinux issue but does anyone know a way of including the ip_addr off incoming calls 1. in the cdr file (not using custom_cdr) 2. in the message sent with the e-mail and voicemail file Any ideas? -Graham- --