DIDs from TRUNK

Hi all,
I’ve been searching in forums, etc, if this could be done in FreePBX but nothing seen about this.

My VOIP provider inform me in the TO: field of the INVITE message as this:

INVITE sip:[email protected] SIP/2.0
Record-Route: sip:193.22.119.20;lr=on;ftag=B919A35D2F3224775E8B680DB04D190B
Record-Route: sip:193.22.119.20;lr=on;ftag=B919A35D2F3224775E8B680DB04D190B
Record-Route: <sip:YYY.YY.YYY.YY:5070;lr=on;ftag=B919A35D2F3224775E8B680DB04D190
B>
To: sip:[email protected]:5070

which DID has been called.

FreePBX allways inform about AAAAAAAAAA as a DID called.
How can I get FreeBPX to inform me that BBBBBBBB is the DID?

Regards,

http://aussievoip.com/wiki/How+to+get+the+DID+of+a+SIP+trunk

Thanks a lot!
It’s working perfectly now with your indications.

Is there a job to get it to the FreePBX interface as a check box in the trunk definition or it will be simply a customization.

Regards,