Displaying 1 result from an estimated 1 matches for "mailexten".
Did you mean:
mailext
2005 Jul 11
2
Sharing variables between contexts
Hello all,
I'm having trouble getting variables to work the way I want them to, let me
begin with a simple explanation of the problem, I'm using something like this
in my extensions.conf:
[default]
exten => 5000,1,SetVar(Recipient=test@test.com)
exten => 5000,2,Goto(mailexten,s,1)
exten => 6000,1,SetVar(Recipient=test@test.com)
exten => 6000,2,Goto(mailexten,s,1)
[mailexten]
exten => s,1,System(/mail.sh ${Recipient})
exten => s,2,Hangup
As an unsuspecting user, I thought this would work - the variable Recipient
should be available in the [mailexten] cont...