Asterisk - The Open Source Telephony Project GIT-master-f36a736
Data Fields
exten_info Struct Reference

an extension to add to our context More...

Data Fields

const char * cid
 CID match. More...
 
const char * context
 Context. More...
 
const char * exten
 Extension pattern. More...
 
const int num_priorities
 Number of priorities. More...
 
const int priorities [MAX_PRIORITIES]
 The priorities to register. More...
 

Detailed Description

an extension to add to our context

Definition at line 53 of file test_pbx.c.

Field Documentation

◆ cid

const char* cid

CID match.

If your extension requires a specific caller ID in order to match, place that in this field. Note that a NULL and an empty CID match are two very different things. If you want no CID match, leave this NULL. If you want to explicitly match a blank CID, then put an empty string here.

Definition at line 85 of file test_pbx.c.

Referenced by test_exten().

◆ context

const char* context

Context.

The extension specified will be added to this context when it is created.

Definition at line 61 of file test_pbx.c.

◆ exten

const char* exten

Extension pattern.

The extension pattern to use. This can be anything you would normally find in a dialplan, such as "1000" or "NXXNXXX" or whatever you wish it to be. If, however, you want a CID match to be part of the extension, do not include that here.

Definition at line 73 of file test_pbx.c.

Referenced by test_exten().

◆ num_priorities

const int num_priorities

Number of priorities.

Tell the number of priorities to register for this extension. All priorities registered will just have a Noop application with the extension pattern as its data.

Definition at line 95 of file test_pbx.c.

◆ priorities

const int priorities[MAX_PRIORITIES]

The priorities to register.

In most cases, when registering multiple priorities for an extension, we'll be starting at priority 1 and going sequentially until we've read num_priorities. However, for some tests, it may be beneficial to start at a higher priority or skip certain priorities. This is why you have the freedom here to specify which priorities to register for the extension.

Definition at line 108 of file test_pbx.c.


The documentation for this struct was generated from the following file: