Get Number called

I am trying to bring phone number that was called into dialplan, the flow goes like this

I call 123-123-1234 from 444-444-4444 and then once on the phone send the call to ext 5040

Is 123-123-1234 number still accessible as some variable within 5040 extension?

Iā€™m fairly sure that there are too many variables here, What channel technology is used on the incoming side? And on the transferor leg? What mechanism was used to signal the transfer request.

1 Like

It is sent via agi, I have no control over so I will probably do a lookup using channel id

I was able to solve this by adding agi to lookup cid of the call based on uniqueid