[asterisk-users] vars in Macros called by DIAL with option M

Al Baker bwentdg at pipeline.com
Tue Aug 5 15:32:46 CDT 2008



Thomas Winter wrote:
> 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.
>>
>>     
> Yes - this is possible, but the enormous ovehead to accomplish somthing that otherwise would seem to be very straightforward, i.e , get the value BACK from a very basic programming constract, call it a MACRO or Subrotine, just seems starteling and excessive. It seems to necessitate writing spagetti code. Or am I missing soimething ?
>   



More information about the asterisk-users mailing list