Caller ID (number) of transferrer

Hi,

Asterisk SIP extension 7021 calls 3035 which is on another PBX via PRI. Extension 3035 has an immediate forward defined to 4321 which points to a custom context on the Asterisk server.

I’d like to know how I can get the “3035” value within Asterisk. In other words, I’d like to know which extension actually did the transfer.

I run the following in the custom context:

exten => _X.,n,NoOp(DEBUG CALL_FORWARD_CUSTOM ${EXTEN} - ${PRIREDIRECTREASON} - ${CALLERID(num)} - ${CALLERID(ani)} - ${CALLERID(dnid)} - ${CALLINGANI2} - ${CALLINGTON} - ${BLINDTRANSFER} - ${BRIDGEPEER} - ${CHANNEL} - ${TRANSFER_CONTEXT} - ${FORWARD_CONTEXT} - ${TRANSFERSTATUS} - ${PRI_CAUSE})

None of these reveal the transferring number “3035”.

All I get is:
NoOp("Zap/8-1", "DEBUG CALL_FORWARD_CUSTOM 4321 - - 7021 - 7021 - 4321 - 0 - 1 - - - Zap/8-1 - from-internal-xfer - - - ")

What else can I try?

Vieri

https://wiki.asterisk.org/wiki/display/AST/Manipulating+Party+ID+Information#ManipulatingPartyIDInformation-REDIRECTINGdialplanfunction assuming the network supports it.