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

Asterisk Bug Tracker noreply at bugs.digium.com
Sun Jul 12 03:19:12 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
Asterisk Version:           SVN 
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-07-12 03:19 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
====================================================================== 

---------------------------------------------------------------------- 
 (0107621) alea-soluciones (reporter) - 2009-07-12 03:19
 https://issues.asterisk.org/view.php?id=14818#c107621 
---------------------------------------------------------------------- 
I'll change the code, following your instruction in a few days, and of
course upgrade it to svn trunk.
Thanks for the advice 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-07-12 03:19 alea-solucionesNote Added: 0107621                          
======================================================================




More information about the asterisk-bugs mailing list