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 ?
>   

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to