Source context in CDR

Hi,

Can Asterisk print the source context in CDR?

I have seen that dcontext can be configured to print the destination context.
What if I need to get the source context.

My objective is to separate out extensions in to different tenants but share same SIP/PRI port across tenants and from CDR, need to filter out the calls made from each tenant.

Thanks

  • Mohit

You may either use the CDR(userfield) variable (available in all CDR backends) or You use a adaptive database backend (like cdr_adaptive_odbc.so) and define Your own attribute in the backend which can then be set as CDR(YourAttribute)=.