Skip to main content

Use original caller's Caller ID when forwarding locally

Posted by diffen on Thu, 09/02/2010

Hello

If extension 1000 with DID 22222 dials extension 1001 with DID 33333 and the extension 1001 have FollowMe activated to a cellphone and are using "Use original caller's Caller ID when forwarding". The From header in the Invite that are sent to the cellphone does now show 1000 or 22222. It shows 33333 the DID, shouldnt it be showing information from extension 1000 who is the caller?

This works perfectly if I call receive a call from the PSTN network, with the exact same setup.


Submitted by thirdlane on Thu, 09/02/2010 Permalink

The "original" caller id is set when a call from outside enters the system (perhaps we should have called the feature "Preserve outside callers Caller ID" or something like that, and not when processing extension to extension calls originating from inside. It may be possible to set it on the from-inside calls in some cases but not without major changes and quite a lot of complexity, and I am not sure if it can be done at all for all the scenarios. Besides this whole option of keeping the caller id does not work with many providers preventing caller id spoofing.

Submitted by eeman on Thu, 09/02/2010 Permalink

no, because the original callerid is 1000, the 22222 would not get assigned until it hit the outbound trunk script, preserving original callerid just means don't overwrite. 1000 obviously is not a valid DID and the dialplan never set the original callerid to a variable, so it had to get the DID from the database.

so to answer your question, there never was an original callerid to preserve.

Submitted by diffen on Fri, 09/03/2010 Permalink

Hello

Ok I understand the problem and its to bad that its there. Is it possible to do a Internal Caller ID field on the extension or some kind of checkbox that say Internal Caller ID = DID.

I guess there are quite a mount of work for doing that.

Submitted by eeman on Fri, 09/03/2010 Permalink

technically you already do, the macro-tl-set-myvariables script is used to determine $MYEXTENSION and the DB values of TL/$tenant/$MYEXTENSION/callerid is what your outbound scripts use to assign callerid if your tenant is allowed to override callerid. You just need to manipulate those by assigning MYEXTENSION yourself, and using another variable, that if present, skips the macro-tl-set-myvariables being called in your outbound script.

Submitted by diffen on Fri, 09/03/2010 Permalink

Cool!

Hmm stupid question here but how can I see the data in the database? I guess its now mysql or so.