[asterisk-bugs] [JIRA] (ASTERISK-23756) setvar in channels config files

Matt Jordan (JIRA) noreply at issues.asterisk.org
Mon May 19 08:15:43 CDT 2014


     [ https://issues.asterisk.org/jira/browse/ASTERISK-23756?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Jordan updated ASTERISK-23756:
-----------------------------------

    Description: 
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}

  was:
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:
[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
.............................



> setvar in channels config files
> -------------------------------
>
>                 Key: ASTERISK-23756
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-23756
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/General
>    Affects Versions: 11.9.0
>         Environment: it doesn't matter
>            Reporter: Michael Goryainov
>            Severity: Minor
>
> 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