Page 1 of 1

Use Extension as Outbound Caller ID

PostPosted: Fri Jan 13, 2017 7:58 am
by slickric01
I have a trunk between Freepbx and Vicidial (VERSION: 2.14-583a BUILD: 161226-2224). Calls successfully flow in both directions. Meaning a phone on Vicidial can dial an extension on the FreePBX and vice versa.

I would like the caller ID of calls from Vici to FreePBX to be the phone extension. Currently it's using the outbound caller id. Is there a variable I can use in the dial plan that will set the caller id num (Set(CALLERID(num)=) to the phone extension?

If not, in the phone settings page of Vici, there's a field that says "Outbound Alt CallerID" - Help says: This optional field is where you can enter an alternate callerID number that can be used in certain cases in place of the original Outbound Caller ID number. Using this will require custom dialplan entries for it to work.

Any help is much appreciated.

Thanks.

Re: Use Extension as Outbound Caller ID

PostPosted: Fri Jan 13, 2017 2:10 pm
by mflorell
Yes, this phone field can be used along with a custom dialplan entry to use an alternate outbound CID:

Outbound Alt CallerID -This optional field is where you can enter an alternate callerID number that can be used in certain cases in place of the original Outbound Caller ID number. Using this will require custom dialplan entries for it to work. Default is blank.


And this is the AGI that you would need to put in a custom dialplan entry:


# phone_alt_CID.agi
#
# Changes the CID number on calls that pass through it to the Alternate defined
# in the 'phones' record for the phone that placed the call
#
# You need to have lines similar to those below in your Custom Dialplan:
#
#;use alternate CID, if defined:
#exten => _91NXXNXXXXXX,1,AGI(phone_alt_CID.agi,${EXTEN})
#exten => _91NXXNXXXXXX,n,Goto(default,${EXTEN},1)
#
# The easiest way to set this up for a phone is to create a new Call Menu and
# then put the above Custom Dialplan into it, then set the Phone's
# 'phone context' to the call menu ID that you just created.

Re: Use Extension as Outbound Caller ID

PostPosted: Sat Jan 14, 2017 11:28 am
by slickric01
Thanks! Worked perfectly. I just inserted the AGI line into my existing dial plan.