Caller ID on inbound calls shows destination, not source
Hi there,
I have installed FOP2 on Trixbox CE 1.8.
When there is an inbound call to my extension, I get a little popup on my screen. It also shows up in the extension button. The problem is, it doesn't display the Caller ID; rather it displays the destination of my call. If I do a Direct-Dial, it shows the extension that I am calling; if I call a Ring Group, it shows that ring group's number.
Once the call connects, the correct Caller ID is displayed.
Does anyone know how to make the correct Caller ID display before the call is connected?
Thanks,
I have installed FOP2 on Trixbox CE 1.8.
When there is an inbound call to my extension, I get a little popup on my screen. It also shows up in the extension button. The problem is, it doesn't display the Caller ID; rather it displays the destination of my call. If I do a Direct-Dial, it shows the extension that I am calling; if I call a Ring Group, it shows that ring group's number.
Once the call connects, the correct Caller ID is displayed.
Does anyone know how to make the correct Caller ID display before the call is connected?
Thanks,
Comments
Is that a recent trixbox version?
The odd thing is that I ran the fop2 server in debug/verbose mode and captured the following:
On the trunk:
But on the extension:
"600" is the name of the ring group. If I call an extension directly (IE, a DID that does not use Ring Groups) it would say something like <- CallerIDNum: 7427
You can see that the right CallerIDNum and CallerIDName is on the trunk. Also, the actual CID displays on the handset show the correct thing; it's only FOP that is picking up this "600" from somewhere...
Callerid is totally uneven, behavior changed in Asterisk since version 0.5. Unfortunately it is not that easy to pick the callerid based on manager events. You saw it yourself when calling directly and not a ringroup.
From the capture you send, it seems that asterisk is informing 600 as the NewCallerid event for SIP/7427, right? So Asterisk is telling that the new callerid for SIP/7427 is 600.
There are certain events that set the callerid in a fop2 button. It is not fixed but contextual and changes if the button is a trunk or an extension. The basic rule of thumb is to set the callerid if it was not previously set or if was empty on a NEWSTATE event.
So you can run a full trace with debug level set to 1 for one of those calls and send it to me privately (it will be kind of log and with potential private data) with a description: call from trunk XXX to ring group YYY that rung extension ZZZ and displayed callerid 0000 instead of 1111.
Best regards,