Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

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


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
rajnivanza at gmail.com
Guest





PostPosted: Fri Jul 18, 2014 2:07 am    Post subject: [asterisk-users] How to get 2 CDR Records of 2 outgoing call Reply with quote

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





PostPosted: Fri Jul 18, 2014 3:32 am    Post subject: [asterisk-users] How to get 2 CDR Records of 2 outgoing call Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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

VoiceMeUp - Corporate & Wholesale VoIP Services