Problem

How can I find which number was dialled and re-write the To: header? I want FreeSWITCH to route these calls through the same rules as my numbers from other providers. I want to route these numbers to different destinations if required.

Solution

After some investigation I discovered MyNetFone places the "dialled" number in the Diversion: header shown below: