exten_info Struct Reference

an extension to add to our context More...


Data Fields

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


Detailed Description

an extension to add to our context

Definition at line 53 of file test_pbx.c.


Field Documentation

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().

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.

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().

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.

Referenced by AST_TEST_DEFINE().

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:

Generated on Thu Apr 16 06:36:24 2015 for Asterisk - The Open Source Telephony Project by  doxygen 1.5.6