How to find original CID in master.csv?

Hi, I have a GSM-gateway box connected via SIP to my asterisk. It works like a charm:
User calls the number of the GSM-gateway on his mobile phone, when being connected, the dial tone changes a bit, and then he dials the final destination number.
However, there are multiple GSM-phones using this GSM-gateway for outgoing calls, but in my master.csv I only see “gsm-gateway” as caller.
Of course, I want the original calling mobile number instead.
Any idea, how to do that ?

excerpt from sip.conf:

[GSM-Gateway]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=GSM-Gateway
fromuser=GSM-Gateway
regexten=999
secret=xxxxxxxxx
context=gsmgateway
dtmfmode=rfc2833
call-limit=1
callerid=GSM-Gateway
host=dynamic
nat=no
canreinvite=no
insecure=port,invite
qualify=yes

excerpt from extensions.conf:


[gsmgateway]
exten => 999,1,Answer()
exten => 999,n,Set(TIMEOUT(digit)=6)
exten => 999,n,Set(TIMEOUT(response)=10)
exten => 999,n,DISA(no-password|to_analog_telephone)
exten => 999,n,Hangup()

[to_analog_telephone]
exten => _00X.,1,Dial(SIP/${EXTEN:2}@myVOIPprovider,30,tr)
exten => _00X.,2,hangup()


Any help appreciated.