summaryrefslogtreecommitdiff
path: root/main/bridge_basic.c
diff options
context:
space:
mode:
authorGeorge Joseph <george.joseph@fairview5.com>2016-03-27 22:33:29 -0600
committerRichard Mudgett <rmudgett@digium.com>2016-04-05 11:26:31 -0500
commit984d6fd95c4001cc9b333ac29a9e2a50ba2de238 (patch)
tree4764c4f0822bc9a6b908f3d00152bbf60b10f81e /main/bridge_basic.c
parent051da5c3af90c8557577ae98cf0e32feefb3c927 (diff)
config: Allow filters when appending to a category
In sorcery based config files where there are multiple categories with the same name, you can't use the (+) operator to reliably append to a category because config.c stops looking when it finds the first one with the same name. Example: [1000] type = endpoint [1000] type = aor [1000](+) authenticate_qualify = yes This config will fail because config.c appends authenticate_qualify to the first category it finds, the endpoint, and that's not valid for endpoint. Solution: The capability to find a category that contains a certain variable already exists so the only real change was to parse anything after the '+' that's not a comma, as a filter string. [1000] type = endpoint [1000] type = aor [1000](+type=aor) authenticate_qualify = yes This now works as expected. Although the following example doesn't make any sense for pjsip, you can even specify multiple filters: [1000](+type=aor&qualify_frequency=10) ASTERISK-25868 #close Reported-by: Nick Repin Change-Id: I10773da4c79db36fbf1993961992af63d3441580
Diffstat (limited to 'main/bridge_basic.c')
0 files changed, 0 insertions, 0 deletions