On Wednesday 22 December 2010 21:08:56 Bryant Zimmerman wrote: > My "h" extension is in the same context as my Dial commands. Here is a > cut back version of the code. > The cause_code value is never stored in the mysql databae even when set > in the "h" extension or the > when set in "rc-ANSWER' OR "doDialStd" > > [macro-OBD-DoOutboundDial] > exten => h,1,NoOp(Cause Code = ${HANGUPCAUSE}) > exten => h,n,Set(CDR(cause_code)=${HANGUPCAUSE}) > exten => h,n,Goto(rc-${DIALSTATUS},1)
There's the problem. The "h" extension should be in whatever context is calling the Macro, not in the Macro context itself. -- Tilghman -- _____________________________________________________________________ -- 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