Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] Adding Variable in all AMI events


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
govoiper at gmail.com
Guest





PostPosted: Wed Sep 09, 2015 11:41 am    Post subject: [asterisk-users] Adding Variable in all AMI events Reply with quote

Hi all,

I'm required to send a dialplan variable with every AMI event triggered for the duration of the call.
For example;


...
exten => s,n,Set(MyVar=${ODBC_GetSomething(${EXTEN}))
...

so can I have this Variable MyVar attached in all AMI events for this call ? I can understand that untill this variable has not been set some value it may even be empty but as soon as its set I expect some value for the rest of the channel life.




Hope to get some directions,


Regards,
Sammy
Back to top
rmudgett at digium.com
Guest





PostPosted: Wed Sep 09, 2015 12:48 pm    Post subject: [asterisk-users] Adding Variable in all AMI events Reply with quote

On Wed, Sep 9, 2015 at 11:41 AM, SamyGo <govoiper@gmail.com (govoiper@gmail.com)> wrote:
Quote:
Hi all,

I'm required to send a dialplan variable with every AMI event triggered for the duration of the call.
For example;


...
exten => s,n,Set(MyVar=${ODBC_GetSomething(${EXTEN}))
...

so can I have this Variable MyVar attached in all AMI events for this call ? I can understand that untill this variable has not been set some value it may even be empty but as soon as its set I expect some value for the rest of the channel life.



Look in the manager.conf.sample configuration file.

; Display certain channel variables every time a channel-oriented
; event is emitted:
;
;channelvars = var1,var2,var3


Please note that in v12+ this option becomes computationally expensive

to support so you may want to look for alternatives in newer versions.



Richard
Back to top
govoiper at gmail.com
Guest





PostPosted: Wed Sep 09, 2015 1:06 pm    Post subject: [asterisk-users] Adding Variable in all AMI events Reply with quote

Thanks Richard,Let me have it a go and get back on its effects since I've Asterisk 11.XX version.Hopefully it won't do much harm.


Appreciate your time.
Regards,
Sammy.


On Wed, Sep 9, 2015 at 1:48 PM, Richard Mudgett <rmudgett@digium.com (rmudgett@digium.com)> wrote:
Quote:


On Wed, Sep 9, 2015 at 11:41 AM, SamyGo <govoiper@gmail.com (govoiper@gmail.com)> wrote:
Quote:
Hi all,

I'm required to send a dialplan variable with every AMI event triggered for the duration of the call.
For example;


...
exten => s,n,Set(MyVar=${ODBC_GetSomething(${EXTEN}))
...

so can I have this Variable MyVar attached in all AMI events for this call ? I can understand that untill this variable has not been set some value it may even be empty but as soon as its set I expect some value for the rest of the channel life.



Look in the manager.conf.sample configuration file.

; Display certain channel variables every time a channel-oriented
; event is emitted:
;
;channelvars = var1,var2,var3


Please note that in v12+ this option becomes computationally expensive

to support so you may want to look for alternatives in newer versions.



Richard






--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services