[asterisk-users] Possible Bug (Include ${HANGUPCAUSE} in CDR)

Tilghman Lesher tilghman at meg.abyt.es
Thu Dec 23 05:27:26 UTC 2010


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



More information about the asterisk-users mailing list