[asterisk-bugs] [JIRA] (ASTERISK-23756) setvar directive when used in template and a child of said template, results in duplicate variable names

Guido Falsi (JIRA) noreply at issues.asterisk.org
Mon Jan 28 13:42:47 CST 2019


    [ https://issues.asterisk.org/jira/browse/ASTERISK-23756?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=246085#comment-246085 ] 

Guido Falsi commented on ASTERISK-23756:
----------------------------------------

Hi,

This issue has been reported in the FreeBSD bugzilla ere:

https://bugs.freebsd.org/235236

I'd like to push for this patch to be included in current asterisk versions.

As the maintainer of the FreeBSD port I'd rather see this patch in the official asterisk releases than adding it to the port, causing it to diverge from upstream sources.

I'm going to put it up for code review in gerrit shortly, I hope it is up to standards and can be accepted. I'm anyway going to address any feedback I get, the best I can.

> setvar directive when used in template and a child of said template, results in duplicate variable names
> --------------------------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-23756
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-23756
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/Configuration
>    Affects Versions: 11.9.0, 13.18.4
>         Environment: it doesn't matter
>            Reporter: Michael Goryainov
>            Severity: Minor
>         Attachments: setvar-multiplie.patch
>
>
> When we use templates in sip.conf, iax.conf, chan_dahdi.conf,
> the setvar directive in a peer defenition section doesn't override a variable value from the template, instead it create a new variable with the same name.
> e.g.
> sip.conf:
> {noformat}
> [sip-tmpl](!)
> type=friend
> host=dynamic
> disallow=all
> allow=alaw
> setvar=EXT_CLID=111111
> [sip-peer1](sip-tmpl)
> callerid=555
> setvar=EXT_CLID=333333
> asterisk*CLI>sip show peer sip-peer1
> ...........................
>   Variables    :
>                  EXT_CLID = 333333
>                  EXT_CLID = 111111
> .............................
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list