How do I set the a-number in the from <sip:?

Hi,

Our SIP provider require this:
"The number shall be sent in format 0+NSN@PBXipaddress in the SIP From-header
Ex From: sip:0812345678@121.122.123.124

I have added some extensions but when I try to dial out on my trunk the header looks like this:
From: sip:1401@121.122.123.124 where 1401 is my extension. I figure that I need to replace the extensionnumber with the callerID before i send it to the trunk, but where do I do that?

One of my extension:
[1402]
username=1234
type=friend
secret=1234
record_out=Adhoc
record_in=Adhoc
qualify=yes
port=5060
nat=never
mailbox=1234@device
host=dynamic
dtmfmode=rfc2833
context=from-internal
canreinvite=no
callerid=1234 <1234>

Dialing using this:
exten => _0.,1,Dial(SIP/${EXTEN}@mysip-provider.com)
exten => _0.,2,Congestion

Mikael

you could try
fromuser=yournumbertoputbeforethe@

Nope, did not work, fromuser works only if type=peer and I have type=friend. What I did to solve it was to modify the settings for the extension by modifying callerid=1234 <0812345678>:

[1402]
username=1234
type=friend
secret=1234
record_out=Adhoc
record_in=Adhoc
qualify=yes
port=5060
nat=never
mailbox=1234@device
host=dynamic
dtmfmode=rfc2833
context=from-internal
canreinvite=no
callerid=1402 <0812345678>