[asterisk-users] CDR / billsec / originate / local chan

Sean Brady sbrady at gtfservices.com
Fri Feb 5 01:21:12 CST 2010


>On 1.6.2 I have also tried using a local channel for the outbound leg 
>with the originate looking like the following:
>
>	action:.Originate..
>	actionid:.1306903_89#AJ_ORIGINATE_25
>	timeout:.40000
>	exten:.s
>	async:.true
>	callerid:."".<61211111111>
>	context:.campaignType_5
>	priority:.1
>	channel:.Local/61212142321 at outboundsip/n
>
>And the Local context as follows;
>
>[outboundsip]
>exten = _XX.,1,Dial(SIP/trunk1/${EXTEN})
>exten = _XX.,n,Hangup
>
>exten = h,1,NoOp(Billsec is: ${CDR(billsec)})
>
>In this configuration, whilst the outbound call goes out and billsec 
>gets reported correctly in the h exten, the call does not get bridged 
>back into the campaignType_5 context so none of the call processing 
>occurs. I cannot see any options that can be passed to the dial command 
>that may affect the bridging of the call back into the campaignType_5 
>context???

Have you tried removing the /n option from the local channel?  Just a thought, but it's probably worth a try.  You could also try calculating the billsec in the dialplan and write it to the CDR with the adaptive CDR feature in 1.6.2.

Not sure if this is helpful but it was a thought.

-Sean





More information about the asterisk-users mailing list