Skip to main content

Server Dialplan modification howto?

Posted by dbenders on Tue, 11/16/2010

Hi, I was wondering is there any way to add some lines to a tenant dialplan, I want to append some channel information to the cdr, but I need/want to add this to the "h" extension. Because this info is only set when the call has hangup... how can I achieve this?

The idea here is to keep in the CDR information more specific for each call, for example, the IP from where the call was originated, the quality of the call, and some other information that can be easily obtained from asterisk.


Submitted by eeman on Tue, 11/16/2010 Permalink

thats a tall order as that extension would have to be created in every context, as it gets executed in whichever context the caller is currently in (maybe from-outside-redir, maybe some specific ivr or huntlist etc)

Submitted by dbenders on Tue, 11/23/2010 Permalink

I agree that this will require a lot of work, but think if this feature is on the PBX Manager?

Will be one of the key diferences from other astrisks implementation because we will have all the information that we want to understand each call, from the point of view of quality, security, statistics, etc...

Alex, what do you think?

Submitted by eeman on Tue, 11/23/2010 Permalink

its not possible or practical. There is just no way to stick options for 'h' in ever context, macro, and subcontext in the dialplan structure.

Submitted by thirdlane on Sun, 11/28/2010 Permalink

This would be complicated even it is restricted to only few cases (contexts) of hangup and generalized.

What statistics are you looking to gather?

Submitted by dbenders on Mon, 11/29/2010 Permalink

Hi, one of the info we want to know is the IP of the calling number, so we can detect very fast if some one is trying to make fraud. The way to implement in asterisk is not complicated, the problem is how to do it in Thirdlane. The same solution will give us information for ecah call as jitter, delay and much others very usefull in order to diagnose issues.

Submitted by eeman on Mon, 11/29/2010 Permalink

do you have an example of dialplan? If its adding to CDR fields it may be possible to assign values to fields at the beginning of the calls which is limited to only 4 contexts (from-outside, from-inside, from-inside-restricted, from-inside-emerg)