Called SIP/2006
– Got SIP response 302 “Moved Temporarily” back from IPADDRESS:1061
– Now forwarding SIP/Trunk-SIP-000007f to ‘Local/0970262626@Interne’ (thanks to SIP/2006-00000080)
Executing [0970262626@Interne:1] Noop(Receving a call to transfert)
At this point, how can I get who are transfert a call in a variable (in this case I want to get SIP/2006) ?
Trying to Noop some callerId(num/name) but no one match SIP/2006.
I think you would need to copy the first parameter to the Dial, before starting the Dial into a (double?) underscore variable, and read it from the local channel extension, although you might want to check whether REDIRECTING has been set, in this case.
It looks as though REDIRECTING will be set, for the first forward on a call. It will be set to the extension, not the device name. The way that people typically write dialplans, the extension should be 2006, in this case, but there is no requirement that dialplans should be written that way, and there is advice, not followed in your case, not to make the device name guessable.