How can I use ${sip_h_Referred-By} in an inbound dialplan?

Status
Not open for further replies.

ialmeida

New Member
May 10, 2024
3
0
1
43
Hi there,
So I'm new to FusionPBX, has been learning a lot the past few days.

The problem I'm facing is that a costumer wants to forward all calls from his cellphone directly to his extension, so I checked the INVITE with sngrep and "discovered" there is a Referred-By header there containing the cellphone number, which I want to use to create the condition in the inbound route.

I read I could get the header by using ${sip_h_Referred-By}, but that specific header/variable doesn't show up in the "type" field of the inboud route. I've tried to manually change it, clicking in the XML button, but it errors out when saving.

Any tips would be very appreciated, thank you so much in advance,
Igor
 

Attachments

  • Screenshot 2024-06-25 at 12.46.23 PM.png
    Screenshot 2024-06-25 at 12.46.23 PM.png
    244.4 KB · Views: 9
  • Screenshot 2024-06-25 at 12.51.21 PM.png
    Screenshot 2024-06-25 at 12.51.21 PM.png
    30.2 KB · Views: 9

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,505
419
83
Unless it's changed in newer versions of FusionPBX, you can just select any of the ${sip_ choices and then click on it to edit it to whatever you want. Screen shot below:
Screenshot from 2024-06-28 16-06-43.png
 

whut

Active Member
Dec 23, 2022
246
27
28
You can do this more simply all gui. In your destination set conditions with corresponding actions.If call comes from my mobile #, then transfer to the call to extension 12345
Firefox_Screenshot_2024-07-01T16-18-44.540Z.png
 

ialmeida

New Member
May 10, 2024
3
0
1
43
You can do this more simply all gui. In your destination set conditions with corresponding actions.If call comes from my mobile #, then transfer to the call to extension 12345
View attachment 4209
That doesn't work as all transferred calls from his mobile shows the caller ID from who is calling him, not his cell number.
 
Status
Not open for further replies.