Deflect / Redirect

Status
Not open for further replies.

CitrusJelly

New Member
Jul 13, 2020
6
0
1
33
Hi all,

I've been using fusionpbx for awhile now and have a multi tenant server setup for many of our customers.

I'm having an issue with trying to forward calls and keep the original caller ID.

When a call comes into our PBX we are then call forwarding the number to another number.
A -> Original Caller - 0411 111 111
B -> Original call reciever - 02 9999 9999
C -> End Point - 0455 555 555
EG A calls B but B forwards to C.
We want to be able to present A's phone number to C but we unable to.

I've spoke with our carrier and they've advise we need to use SIP REFER in our headers if we want to do this.

I've had a look in freeswitch and the documentation says to use redirect / deflect to use sip refer.

So I changed the default call-forward-all dialplan as per below. (I've tried both redirect and deflect)

1613473895209.png

Neither seems to work, this is the log for the direct:
1613474054048.png

with deflect it doesnt seem to do anything
1613474148393.png

Was looking for any type of help. Cant seem to find anything on any forums.
 

mprovencal

New Member
Nov 23, 2020
2
0
1
55
Set up the Sip Cid type in the advance menu of the gateway according to your provider spec, my providers use pid and rpid
 

CitrusJelly

New Member
Jul 13, 2020
6
0
1
33
Set up the Sip Cid type in the advance menu of the gateway according to your provider spec, my providers use pid and rpid
Thanks for your help. I checked the spec and the provider is telling me to use pid.

Tried that didn't help unfortunately.

I also have worked out that I definitely have to use deflect.

I've tried doing pcaps it doesn't send anything when it hits the deflect statement, it also doesn't put anything on the log besides deflect.

Does anyone know if I am using the right format for deflect and why it wouldn't output anything on the log or come up in the pcap?

currently doing it like this:
1613556386422.png

But this also doesnt work:
1613556404005.png
 

Attachments

  • 1613556328950.png
    1613556328950.png
    4.1 KB · Views: 17

mprovencal

New Member
Nov 23, 2020
2
0
1
55
So if i understood properly, you have a inboud did that is going to an outbound number.
If so, chnage your destination to a virtual extension and forward it to the outbound number in the dashboard.

Don't forget to check the sip profile you are using for the pid option.
And put back to default the call forward all dialplan.

You can use sngrep to see what is going on, a lot easier than just pcap
 

smeyer

New Member
Feb 18, 2021
24
0
1
39
I'm also looking for an answer. Twilio requires using a refer and my output is the exact same.
 

mcs3ss2

Active Member
Sep 8, 2020
286
33
28
AU
You have not setup Caller ID in ring group, if yes...delete it, leave it blank.
 

mcs3ss2

Active Member
Sep 8, 2020
286
33
28
AU
I am using
FusionPBX 5.0.1
Freeswitch 1.10.6
Yealink T48s Firmware 66.86.0.15

I just tested your scenario.
In my test call

A is External Caller (AU Mobile)
B is Local DID (The number which A called)
C is External AU Mobile, B transfered the call to C

C sees B DID (Local DID) if I press transfer
C sees A DID (External Caller, AU Mobile) if I use B-Transfer

1655737698508.png
 

smeyer

New Member
Feb 18, 2021
24
0
1
39
I'm going to make a new post because I realize I am not accurately describing the issue. Thanks.
 
Status
Not open for further replies.