I’m having difficult programming features.conf functions based in callerid info.
I have configured a function in features.conf that run a Macro(). That macro checks the CallerID num each time is executed.
If callerid is X do this, if callerid is Y, do this. etc… Check this:
Rob ------->call----------> Manuel
(201) (227)
In this call, Rob is the caller and Manuel is the callee, right? Ok!
So, in that case, the variable: ${CALLERID(num)} should display: 201. Right? Ok!
Now, check this out.
Rob ------->call----------> Manuel ---------> July
(201) (227) (2034)
In this call, Rob is the caller & Manuel is the callee.
Then Manuel transfer the call, so Manuel is now the caller and July is the callee.
So, in that case, the variable: ${CALLERID(num)} will display: 227 and NOT 201.
My question is: How can I keep Rob extension in the callerid without care if the call was transfered or whatever else?
Thanks.