[asterisk-bugs] [Asterisk 0014818]: [patch] "setvar" configuration option for mgcp

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Sep 23 13:02:13 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=14818 
====================================================================== 
Reported By:                alea-soluciones
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   14818
Category:                   Channels/chan_mgcp
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     feedback
Target Version:             1.6.x Version Tracker
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 186228 
Request Review:              
====================================================================== 
Date Submitted:             2009-04-02 21:29 CDT
Last Modified:              2009-09-23 13:02 CDT
====================================================================== 
Summary:                    [patch] "setvar" configuration option for mgcp
Description: 
Support for add "setvar" conf options for outgoing calls created from mgcp
endpoint.
The defined vars/values will be created as channel vars when the
corresponding user create a new channel.

The format for this option is (same as setvar at sip.conf):
setvar[space]=[space]<name>=<value>

(spaces are optional)

Only the servar for lines are accepted, the setvar options set for wild
char endpoint will be discarded....
So if we define a mta with the following data:

[mta285.lab.voip]
setvar = WRONG1=value1
setvar = WRONG2=value2
wcardep = aaln/*
host = dynamic
context = pbx4-from-ext-vm
callerid = "" <918298119>
setvar = PBX=main_pbx
line = aaln/1
context = pbx4-from-ext
callerid = "" <4119>
setvar = PBX=main_pbx
setvar = PBXSERV=gold
line = aaln/2

WRONG1 and WRONG2 will be discarded, only are correct "PBX" at aaln/1 line
and "PBX" and "PBXSERV" at aaln/2
====================================================================== 

---------------------------------------------------------------------- 
 (0111273) alea-soluciones (reporter) - 2009-09-23 13:02
 https://issues.asterisk.org/view.php?id=14818#c111273 
---------------------------------------------------------------------- 
chan_mgcp-setvars-svn-trunk-r219899.patch try to follow the tilghman's
comments and to update the code to trunk version.

The keyword used to reset the vars (point 3 of the tilghman's note) is
"clearvar"
I would appreciate it if someone can review the code... 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-09-23 13:02 alea-solucionesNote Added: 0111273                          
======================================================================




More information about the asterisk-bugs mailing list