pbx_test_pattern Struct Reference

Collaboration diagram for pbx_test_pattern:

Collaboration graph
[legend]

Data Fields

const char * context
 Test context.
struct exten_infoexten
 Expected extension match.
const int priority
 The priority to find.
const char * test_cid
 Test CID match.
const char * test_exten
 Test extension number.

Detailed Description

Definition at line 111 of file test_pbx.c.


Field Documentation

const char* context

Test context.

This is the context to look in for a specific extension.

Definition at line 118 of file test_pbx.c.

Referenced by test_exten().

struct exten_info* exten [read]

Expected extension match.

This struct corresponds to an extension that was previously added to our test context. Once we have used all the above data to find an extension in the dialplan. We compare the data from that extension to the data that we have stored in this structure to be sure that what was matched was what we expected to match.

Definition at line 153 of file test_pbx.c.

Referenced by test_exten().

const int priority

The priority to find.

Definition at line 142 of file test_pbx.c.

Referenced by AST_TEST_DEFINE(), and test_exten().

const char* test_cid

Test CID match.

If a specific CID match is required for pattern matching, then specify it in this parameter. Remember that a NULL CID and an empty CID are interpreted differently. For no CID match, leave this NULL. If you wish to explicitly match an empty CID, then use an empty string here.

Definition at line 138 of file test_pbx.c.

Referenced by test_exten().

const char* test_exten

Test extension number.

This should be in the form of a specific number or string. For instance, if you were trying to match an extension defined with the pattern "_2." you might have as the test_exten one of "2000" , "2legit2quit" or some other specific match for the pattern.

Definition at line 128 of file test_pbx.c.

Referenced by test_exten().


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

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