MCPcopy Create free account
hub / github.com/SIPp/sipp / getActionForThisMessage

Method getActionForThisMessage

src/scenario.cpp:1808–1828  ·  view source on GitHub ↗

Action list for the message indexed by message_index in the scenario

Source from the content-addressed store, hash-verified

1806// Action list for the message indexed by message_index in
1807// the scenario
1808void scenario::getActionForThisMessage(message *message)
1809{
1810 char * actionElem;
1811
1812 if (!(actionElem = xp_open_element(0))) {
1813 return;
1814 }
1815 if (strcmp(actionElem, "action")) {
1816 xp_close_element();
1817 return;
1818 }
1819
1820 /* We actually have an action element. */
1821 if (message->M_actions != nullptr) {
1822 ERROR("Duplicate action for %s index %d", message->desc, message->index);
1823 }
1824 message->M_actions = new CActions();
1825
1826 parseAction(message->M_actions);
1827 xp_close_element();
1828}
1829
1830void scenario::getBookKeeping(message *message)
1831{

Callers

nothing calls this directly

Calls 3

xp_open_elementFunction · 0.85
xp_close_elementFunction · 0.85
ERRORFunction · 0.85

Tested by

no test coverage detected