Force Gateway to use Caller ID number

Status
Not open for further replies.

galactic

New Member
Jun 26, 2019
21
1
3
35
Hi All

i see a lot of conversation re this but i cant seem to get it working for the life of me

I need to send a a DID to the provider to authenticate the call but i would like it in the GATEWAY level not outbound route or Extension.

So when a call is made the GATEWAY overrides the CID being presented from the endpoint


I have played around of settings in the GATEWAY but cant get it it to override the CID
things i have played around with s SIP CID Type, Caller ID In From

If i add the Caller ID in the outbound route it works as it should but i need it in the Gateway level

Anyone got any idea's??
 

hfoster

Active Member
Jan 28, 2019
676
80
28
34
Short answer is no, mainly because FusionPBX doesn't support the gateway variables (as far as I know), otherwise I guess you could have added:

<variable name="outbound_effective_caller_id_number" value="01234567890" direction="outbound"/>

Is there a problem with setting in the dialplan via outbound routes? That's typically where you apply channel variables anyway.
 

koolandrew

Member
Aug 5, 2022
41
0
6
43
Hi Galactic,
What are you trying to accomplish, that cannot be done using the normal methods, unless you dont want to say :). Maybe there is something that can be done on the gw, if you control that?

I am having issues as well but i cannot get it to work from the extension level. We send our calls to an asterisk GW first.
The first example shows using my name and 4169070100 calling our fusionpbx. The second one is using my current pbx. How do i get rid of the FreeSWITCH instead of telephone number.

-- Executing [16479683707@canada_out:1] Macro("SIP/fusionpbxip_address-00006663", "dial,16479683707@xxx.xxx.186.22,,pbx.kooltel.com,5,0,1,16479683707@yyy.xxx.37.20,16479683707@xxx.yyy.174.23") in new stack
-- Executing [s@macro-dial:1] NoOp("SIP/fusionpbxip_address-0000bc4b", "**** DIAL SIP/14166913998@xxx.yyy.186.22 ****") in new stack
-- Executing [s@macro-dial:2] NoOp("SIP/fusionpbxip_address-0000bc4b", "**** Andrew Wells *** FreeSWITCH ****") in new stack


-- Executing [16479683707@canada_out:1] Macro("SIP/otherpbx_address-00006661", "dial,16479683707@XXX.YYY.186.22,,pbx.kooltel.com,5,0,1,16479683707@xxx.yyy.37.20,16479683707@xxx.yyy.174.23") in new stack
-- Executing [s@macro-dial:1] NoOp("SIP/otherpbx_address-00006661", "**** DIAL SIP/16479683707@xxx.yyy.186.22 ****") in new stack
-- Executing [s@macro-dial:2] NoOp("SIP/otherpbx_address-00006661", "**** Andrew Wells *** 14169070100 ****") in new stack
 

galactic

New Member
Jun 26, 2019
21
1
3
35
Short answer is no, mainly because FusionPBX doesn't support the gateway variables (as far as I know), otherwise I guess you could have added:

<variable name="outbound_effective_caller_id_number" value="01234567890" direction="outbound"/>

Is there a problem with setting in the dialplan via outbound routes? That's typically where you apply channel variables anyway.
This wont apply to outbound fax's
 
Status
Not open for further replies.