[asterisk-users] How to get 2 CDR Records of 2 outgoing calls bridge

RAJNI VANZA rajnivanza at gmail.com
Fri Jul 18 02:07:20 CDT 2014


Hi all,

I need 2 CDR Records of below 2 numbers for outgoing calls, detail is given
as below:



*96XXXXXXXX88XXXXXXXX*
*=> Call file : outbound call generate through below file*

Test.call
======
Channel: local/s at outgoing/n
WaitTime: 45
Context: outgoing_ivrs
Extension: s
Priority: 1
Set: contact_no=96XXXXXXXX

extensions.conf
============
[outgoing]
exten => s,1,NoOP(----- First LEG CALL from call file for outgoing:
Channel-${CHANNEL} -----)
*same => n,Dial(DAHDI/g0/${contact_no},45)*
same => n,Noop(***** DIALSTATUS-${DIALSTATUS}*****)
same => n,hangup

exten => h,1,NoOP(Call hangup === outgoing context)
same => n,NoOP(calldate2=${CDR(calldate)},src2=${CDR(src)},dst2=${CDR(dst)})
same =>
n,NoOP(channel2=${CDR(channel)},dstchannel2=${CDR(dstchannel)}start2=${CDR(start)})
same =>
n,NoOP(end2=${CDR(end)},duration2=${CDR(duration)},billsec=${CDR(billsec)},disposition2=${CDR(disposition)})

[outgoing_ivrs]
exten => s,1,Noop(----- Second LEG CALL from call file for outgoing_ivrs:
Channel-${CHANNEL} -----)
same => n,Playback(welcome)
*same => n,Dial(DAHDI/g0/88XXXXXXXX,30,M(outgoing_connect,s,1)^S(30))*
same => n,hangup

exten => h,1,NoOP(Call hangup === outgoing_ivrs context)
same => n,NoOP(calldate2=${CDR(calldate)},src2=${CDR(src)},dst2=${CDR(dst)})
same =>
n,NoOP(channel2=${CDR(channel)},dstchannel2=${CDR(dstchannel)}start2=${CDR(start)})
same =>
n,NoOP(end2=${CDR(end)},duration2=${CDR(duration)},billsec=${CDR(billsec)},disposition2=${CDR(disposition)})

[macro-outgoing_connect]
exten => s,1,NoOP( === outgoing_connect ===)
same => n,Playback(welcome_friend)

Thanks in advance. please help out to achieve this requirement.

-- 
Best Regards,

Rajni Vanza
Consultant Technology
-------------------------------------------------------
Working On Linux,C/C++,VoIP Technology
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20140718/72ba451f/attachment.html>


More information about the asterisk-users mailing list