Ticket #744 (closed defect: fixed)

Opened 2 years ago

Last modified 1 year ago

At a call with OUTBOUND CID, CallerID is wrong in CALL REPORTS → CDRs

Reported by: nixon Assigned to: areski
Priority: major Milestone:
Component: AGI Version: Trunk 1.X
Keywords: Cc:

Description

CALL REPORTS → CDRs → «CallerID» is not correct. OUTBOUND CID saved instead of CID of call initiator.

Change History

04/13/10 13:10:26 changed by bilal

Guys ,

I was facing this problem , I tried to fixed it in a2billing.php and it worked for me in callback-all scenario

I am not good at all in php , I just can read and understand php code but I am not a programmer , so please don't mind if I did it in wrong way , but it worked for me in this way

so here you go


in line 785 please have a look at following code

}elseif ($callback_mode=='ALL') {

$A2B->agiconfiguse_dnid? = 0;

$A2B->agiconfignumber_try? =1;

$A2B->agiconfigcid_enable? =0;

// Add this line here

$A2B->CallerID = $called_party;

// restart callback daemon // now you should get correct CallerID , make sure you have defined the global variable in extensions.conf which is something like 'Set(CALLERID(number)=${CALLERID(num)})' .


After doing all this , I am getting proper call ID on destination , hope the same will resolve your problem .

please give me your feedback on it

you can reach me at syedbilalmasaud at gmail dot com

Cheers :)

Bilal

11/07/10 01:55:04 changed by nixon

I use OUTBOUND CID only for outgoing calls by owner of this cid. But owner have a lot of internal extensions and he want to look internal caller id from.

11/07/10 13:48:29 changed by areski

  • status changed from new to closed.
  • resolution set to fixed.

"CALL REPORTS → CDRs → «CallerID» is not correct. OUTBOUND CID saved instead of CID of call initiator"

in trunk, Class.RateEngine?.php : line 1252 # comment this line if you want to save the outbound_cid in the CDR //$A2B -> CallerID = $outcid;

Yours, /Areski

11/07/10 16:27:57 changed by nixon

Thanks for the help.

11/07/10 19:17:32 changed by nixon

  • version changed from Stable 1.5.1 (Lignum Vitae) to Trunk 1.X.
  • milestone deleted.