CDR(dst) not work when call is an outgoing originate

Get help with installing, upgrading and running Asterisk.

Moderators: muppetmaster, Moderator, Support

CDR(dst) not work when call is an outgoing originate

Postby tomtomtom » Tue Dec 08, 2015 1:52 pm

I have been calling between 2 asterisk servers
CDR(dst) value is good on the called server but it is incorrect on the calling server. i.e. its good for incoming calls but not for outgoing.

The cdr "dst" value is set in channel.c code in __ast_request_and_dial() by ast_cdr_init()

in ast_cdr_init() the dst is set by
ast_copy_string(cdr->dst, S_OR(ast_channel_macroexten(c),ast_channel_exten(c)), sizeof(cdr->dst));

This would seem to explain why...because on the originating server the "exten" is the src, not the dst. is this a Bug?

Does anyone know a way I can reliably and consistently get the called/destination address from the cdr or channel variables?
Thanks, Tom
tomtomtom
Newsterisk
 
Posts: 3
Joined: Wed Oct 21, 2015 3:56 am

Return to Asterisk Support

Who is online

Users browsing this forum: Google [Bot] and 1 guest