Hi, I am diverting an incoming call to a mobile phone and a landline using the following:- exten => 0203000000,3,Dial(SIP/442080000000 at sipprovider&SIP/44700000000 at sipprovider,120,r) For billing purposes, i need to be able to work out whether the diverted call was answered by the mobile or whether it was answered by the landline. The CDR only shows the full Dial() information, and not what the final destination was. lastdata contains: SIP/442080000000 at sipprovider&SIP/44700000000 at sipprovider|120|r How can i log which phone answered the diverted call? Many thanks Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100503/1e9d81e9/attachment.htm
I am 99% sure you will be able to catch this information in AMI. I didn't try with call diverts, but it says really alot. On Mon, May 3, 2010 at 4:41 PM, Dan Journo <dan at keshercommunications.com> wrote:> Hi, > > > > I am diverting an incoming call to a mobile phone and a landline using the > following:- > > > > exten => > 0203000000,3,Dial(SIP/442080000000 at sipprovider&SIP/44700000000 at sipprovider,120,r) > > > > For billing purposes, i need to be able to work out whether the diverted > call was answered by the mobile or whether it was answered by the landline. > > > > The CDR only shows the full Dial() information, and not what the final > destination was. > > > > lastdata contains: > SIP/442080000000 at sipprovider&SIP/44700000000 at sipprovider|120|r > > > > How can i log which phone answered the diverted call? > > > > Many thanks > > Dan > > -- > _____________________________________________________________________ > -- 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 >
Hi!> exten => > 0203000000,3,Dial(SIP/442080000000 at sipprovider&SIP/44700000000 at sipprovider > ,120,r) > > For billing purposes, i need to be able to work out whether the diverted > call was answered by the mobile or whether it was answered by the > landline. > > How can i log which phone answered the diverted call?A couple of suggestions: - use Dial(Local/fixed&Local/mobile), i.e. use Local channels - you could also consider the M() option to Dial together with the CDR userfield for logging whatever channel variable make sense to you - have you looked at the destination channel in the CDR? Philipp