Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Fri Mar 29, 2024 2:06 am
VoIP Billing solution


All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: IP for the originated call
PostPosted: Mon Jul 04, 2011 2:18 pm 
Offline

Joined: Wed Mar 31, 2010 3:45 am
Posts: 132
Location: São Paulo
Hi everyone.

I recently had a problem where it appeared a call that seems not belong to a specific Card.

This happened few days ago and I wanted to track the IP address of this originated call but for my surprise I could not find any register on the IP address used on that ocasion, the only thing I can see is the IP address for that peer at the moment.

Does any one has any idea on how to check that information?

it would be wise to register the ip address on the database in the call log table, it would help a lot in cases like that.

Can it be done Joe?

Thanks in advance.


Top
 Profile  
 
 Post subject: Re: IP for the originated call
PostPosted: Tue Jul 05, 2011 7:05 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Hi

I understand that it can be written to the asterisk CDR, in the userfield field. You would put dialplan in the appropriate place to extract the IP address of the calling party, then write it to the userfield in the CDR, before launching A2billing.php

Some googling will tell you how to do this.

Joe


Top
 Profile  
 
 Post subject: Re: IP for the originated call
PostPosted: Tue Jul 05, 2011 1:34 pm 
Offline

Joined: Wed Mar 31, 2010 3:45 am
Posts: 132
Location: São Paulo
Thanks for the hint Joe
I'll do that


Top
 Profile  
 
 Post subject: Re: IP for the originated call
PostPosted: Tue Jul 05, 2011 1:52 pm 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Hi

Let us know when you have a dial plan for this.

Joe


Top
 Profile  
 
 Post subject: Re: IP for the originated call
PostPosted: Thu Mar 29, 2012 1:21 am 
Offline

Joined: Wed Mar 31, 2010 3:45 am
Posts: 132
Location: São Paulo
It was pretty simple.

Here is how I managed to register the ipaddresss together with each call


Code:
[a2billing]
exten => _X.,1,NoOp(A2Billing Start)
exten => _X.,2,Set(CDR(userfield)=${CHANNEL(recvip)})
exten => _X.,n,AGI(a2billing.php,1)
exten => h,1,Hangup()


Thank you Joe


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 
Predictive Dialer


All times are UTC


Who is online

Users browsing this forum: No registered users and 15 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group