VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
rajnivanza at gmail.com Guest
|
Posted: Fri Jul 18, 2014 2:07 am Post subject: [asterisk-users] How to get 2 CDR Records of 2 outgoing call |
|
|
Hi all,
I need 2 CDR Records of below 2 numbers for outgoing calls, detail is given as below:
96XXXXXXXX
88XXXXXXXX
=> 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 |
|
Back to top |
|
|
rajnivanza at gmail.com Guest
|
Posted: Fri Jul 18, 2014 3:32 am Post subject: [asterisk-users] How to get 2 CDR Records of 2 outgoing call |
|
|
Hi All,
I need 2 CDR Records of below 2 numbers for outgoing calls, detail is given as below:
96XXXXXXXX
88XXXXXXXX
=> 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
Mumbai |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|