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@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
-- 
_____________________________________________________________________
-- 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

Reply via email to