Use Extension as Outbound Caller ID

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Use Extension as Outbound Caller ID

Postby slickric01 » Fri Jan 13, 2017 7:58 am

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.
slickric01
 
Posts: 2
Joined: Fri Jan 13, 2017 7:46 am

Re: Use Extension as Outbound Caller ID

Postby mflorell » Fri Jan 13, 2017 2:10 pm

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.
mflorell
Site Admin
 
Posts: 18339
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Use Extension as Outbound Caller ID

Postby slickric01 » Sat Jan 14, 2017 11:28 am

Thanks! Worked perfectly. I just inserted the AGI line into my existing dial plan.
slickric01
 
Posts: 2
Joined: Fri Jan 13, 2017 7:46 am


Return to Support

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 128 guests