[asterisk-users] vars in Macros called by DIAL with option M
Thomas Winter
thowinter at googlemail.com
Tue Aug 5 14:23:29 CDT 2008
On Tuesday 05 August 2008 18:02, Ruddy Gbaguidi wrote:
> I don't think you can do that because, asterisk, in the caller thread
> will only read MACRO_RESULT to know if he has to connect the call or not.
> A workaround will be to :
> 1. before the dial, add a row in a database table and retrieve an id
> 2. pass the id to test_connect and test_connect will then write his
> variable value into the database
> 3. after the dial,. use the id to retrieve the needed variable.
>
thanks, but Iam using additional redirect though AMI, so it could be that the
channel is redirected to another context and never see exten after DIAL or h
extension in that context.
It seemed to be that I have to add additional programming outside the dialplan
if doing redirect.
best regards
Thomas
More information about the asterisk-users
mailing list