[Bug 235236] net/asterisk15 improvement: force setvar to override previous value in chan_sip, chan_iax2
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Jan 27 11:07:39 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=235236
Bug ID: 235236
Summary: net/asterisk15 improvement: force setvar to override
previous value in chan_sip, chan_iax2
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: madpilot at FreeBSD.org
Reporter: pfduch at yandex.ru
Flags: maintainer-feedback?(madpilot at FreeBSD.org)
Assignee: madpilot at FreeBSD.org
Created attachment 201436
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=201436&action=edit
patch for chan_sip and chan_iax2
In chan_sip and chan_iax2, variable set by setvar option cannot be overriden
later. E.g.:
[tmpl](!)
setvar=foo=bar
[some-peer](tmpl)
setvar=foo=baz ; no chance: "${SIPPEER(some-peer,chanvar[foo])}" in dialplan
still returns "bar"
Actually, second setvar appends an attribute-value pair to a list, but only the
first one is always read.
A ticket in asterisk JIRA is still open for a long long time:
https://issues.asterisk.org/jira/browse/ASTERISK-23756
Unlike chan_sip and chan_iax2, chan_dahdi, for example, was already fixed for
that.
I use the attached patch for a several years without any problems on versions
11.x, 13.x, 15.x, both i386 and amd64. It would be nice to include it to
mainstream. Maybe it makes sense even to enable it by default.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list