I have a master account and a sub account. Let's say a caller calls a number in the sub account. The sub account will process this call by outputting some TwiMl and based on some business rules it might need to redirect the flow of this call to the master account (for accounting purposes).
An easy way to do this is simply to dial a number belonging to the master account. This will transfer the call flow from the sub account to the master account. No complications there...
However, in order for me to identify what client this call belongs to on the master account I need to have some unique identifier. When I receive this call on the master account I have to way to match it to a client. Ideally I would like to get the initial CallSid the one originated on the sub account but it seems like that is not possible. So I was looking into passing custom parameters but no luck there either.
It only makes sense that you should be able to somehow link data from sub account to master account. Any ideas on how to accomplish this?