[Spce-user] Capturing additional fields into CDRs

Andreas Granig agranig at sipwise.com
Thu Jan 29 14:41:30 EST 2015


Hello,

Create a custom proxy config template and populate the caller/callee-gpp
variables by extracting values from SIP headers.

Look specifically in routes ROUTE_ACC_CALLER and ROUTE_ACC_CALLEE, where
the gpp-string for accounting is constructed. Instead of using for
example $xavp(caller_real_prefs[0]=>gpp0) there, use $hdr(Your-Header)
to extract the value from the SIP message.

Andreas

On 01/29/2015 05:19 PM, Matthew Ogden wrote:
> Hi All
> 
> Any suggestions here?
> 
> Regards
> 
> On Fri, Jan 23, 2015 at 2:58 PM, Matthew Ogden <matthew at tenacit.net
> <mailto:matthew at tenacit.net>> wrote:
> 
>     Hi Andreas
> 
>     In my case, this is a single asterisk endpoint, that has multiple
>     endpoints behind it. I can make the asterisk instance send extra
>     headers for the additional info captured, but I need to write this
>     into my CDR somehow. (It cant be in the FROM or TO fields because
>     thats used for CallerID and destination, so I'm thinking the best
>     way is to pass the field in an additional header, and change the
>     template to store this somewhere I can access it?
> 
>     (Whereas in the gpp on 3.6 its going to always store the same field
>     from the subscriber options - this is more dynamic per call)
> 
>     Regards
> 
>     On Tue, Nov 4, 2014 at 12:00 AM, Andreas Granig <agranig at sipwise.com
>     <mailto:agranig at sipwise.com>> wrote:
> 
>         Hi,
> 
>         Upcoming v3.6 provides new subscriber preferences gpp0-gpp9 (general
>         purpose parameter), which are written to source_gpp0-9 and
>         destination_gpp0-9 in the cdrs.
> 
>         Andreas
> 
>         On 11/03/2014 03:57 PM, Matthew Ogden wrote:
>         > There was talk of a userfield being availble to CDRs in this thread
>         > http://lists.sipwise.com/pipermail/spce-user/2013-February/003001.html
>         ,
>         > is this available in 2.8, is there some otherfield I could use if its not?
>         >
>         >
>         >
>         > --
>         >
>         >
>         >
>         >
>         >
>         > *Matthew Ogden*
>         >
>         > Management
>         >
>         > TenacIT
>         >
>         >
>         >
>         >
>         >
>         > *Strategic IT Consulting *•*Advanced Networking *•
>         *Virtualisation***
>         >
>         > *Custom Development *•***Hosting *•***Syspro Support  *• *MS
>         Licensing***
>         >
>         > National Tel: 041 10 10 100 | Cell: 084 205 4445 | Email:
>         > matthew at tenacit.net <mailto:matthew at tenacit.net>
>         <mailto:matthew at tenacit.net <mailto:matthew at tenacit.net>>
>         >
>         > CT Tel: 021 201 0333 | Skype Name: matthew.ogden | Web:
>         > http://www.tenacit.net <http://www.tenacit.net/>
>         >
>         >
>         >
>         >
>         >
>         > _______________________________________________
>         > Spce-user mailing list
>         > Spce-user at lists.sipwise.com <mailto:Spce-user at lists.sipwise.com>
>         > https://lists.sipwise.com/listinfo/spce-user
>         >
>         _______________________________________________
>         Spce-user mailing list
>         Spce-user at lists.sipwise.com <mailto:Spce-user at lists.sipwise.com>
>         https://lists.sipwise.com/listinfo/spce-user
> 
> 
> 
> 
>     -- 
> 
>      
> 
>      
> 
>     *Matthew Ogden*
> 
>     Management
> 
>     TenacIT
> 
>      
> 
>      
> 
>     *Strategic IT Consulting *•*Advanced Networking *• *Virtualisation***
> 
>     *Custom Development *•***Hosting *•***Syspro Support  *• *MS
>     Licensing***
> 
>     National Tel: 041 10 10 100 | Cell: 084 205 4445 | Email:
>     matthew at tenacit.net <mailto:matthew at tenacit.net> 
> 
>     CT Tel: 021 201 0333 | Skype Name: matthew.ogden | Web:
>     http://www.tenacit.net <http://www.tenacit.net/>
> 
>         
> 
> 
> 
> 
> -- 
> 
>  
> 
>  
> 
> *Matthew Ogden*
> 
> Management
> 
> TenacIT
> 
>  
> 
>  
> 
> *Strategic IT Consulting *•*Advanced Networking *• *Virtualisation***
> 
> *Custom Development *•***Hosting *•***Syspro Support  *• *MS Licensing***
> 
> National Tel: 041 10 10 100 | Cell: 084 205 4445 | Email:
> matthew at tenacit.net <mailto:matthew at tenacit.net> 
> 
> CT Tel: 021 201 0333 | Skype Name: matthew.ogden | Web:
> http://www.tenacit.net <http://www.tenacit.net/>
> 
>     
> 



More information about the Spce-user mailing list