When VmX forwards a call to an external number (i.e. using “Press 1”), can the CID of that call be forwarded?
Fair point! I will check with the trunk provider first.
Amazingly, they say yes! As they always see where the call is really coming from, we are allowed to “masquerade” the CID. (we are outside the US:)
I guess I need to put code into /etc/asterisk/extensions_custom.conf along the lines of
; get CID of incoming call either from inbound route or extension
; store that in a variable
;and than i.e. in [macro-dialout-trunk-predial-hook]
; override the outgoing CID with it
Does that sound about right?
I just tested VmX Locater and it passes the original caller’s number without doing anything special. Of course, you must not force another CID in the Outbound Route or the Trunk, and your trunk settings need to pass the number in the format the provider requires.
To troubleshoot (if needed), temporarily set Outbound CID for your extension to a number that isn’t yours and confirm that this number is displayed on an outgoing call.
I just removed the outgoing CID from the trunk and it is working! You just saved me from fiddling around with macro contexts any longer…
Thanks Stewart! Will set the outgoing CID in extensions now
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.