Asterisk caller id problem

Hi i have asterisk 1.6 set up and when i call someone on his telephone says number unknown how to set it up so he can see my telephone number;

sip;;;;;;;;;;;;;
[4101]
deny=0.0.0.0/0.0.0.0
type=friend
;secret=4101
qualify=yes
port=5060
pickupgroup=
permit=0.0.0.0/0.0.0.0
nat=no
mailbox=4101@device
host=dynamic
dtmfmode=rfc2833
dial=SIP/4101
context=outgoing_sve
canreinvite=no
callgroup=
callerid=device <4101>
accountcode=
call-limit=50
deny=0.0.0.0/0.0.0.0
permit=10.1.2.0/255.255.255.0

Howdy,

Are you stripping any CID information or specifically setting unknown when you’re doing your dial statement?

Perhaps your provider is removing that information?

this is my dial code in extensions.conf

exten => _0[1-8].,1,Set(CALLERID(num)=10383235$[${CALLERID(num):2}])
exten => _0[1-8].,2,Dial(SIP/metronet/${EXTEN},40,wW)

exten => _00[0-9].,1,Set(CALLERID(num)=10383235$[${CALLERID(num):2}])
exten => _00[0-9].,2,Dial(SIP/metronet/${EXTEN},40,wW)

exten => _000[0-9].,1,Set(CALLERID(num)=10383235$[${CALLERID(num):2}])
exten => _000[0-9].,2,Dial(SIP/metronet/${EXTEN},40,wW)

exten => 1038323550,1,Dial(SIP/4101,60)
exten => 1038323550,2,Answer

this is my service provider sip gateway;

[metronet]
disallow=all
type=peer
context=outgoing_sve
port=5060
host=10.56.0.13
disallow=all
allow=alaw
allow=ulaw
;allow=gsm
nat=no
canreinvite=yes
qualify=yes

Please help

So metronet is allowing you to arbitrarily set your outbound callerid and they’re not restricting it then, correct?

This happens when you call anyone or just one particular person?

yes provider does not make me problem, and this is on every number i call except another asterisk servers in our vpn network wich i call trough iax.

I think malcolmd is trying to hint that responsible PSTN gateways will not allow you to set a number other than one that they have allocated to you for inbound calls.

If your provider is not restricting the numbers, please provide an example of part of the configuration that does result in the correct number being displayed.

Also, it looks to me that the use of $[] will cause variable length numbers, as it may cause leading zeroes to be stripped in the retained part of the extension number.

i connet to my providers citrix system and my inner number on their system is— 1038323550----

when someone is calling me he dials 021683550, and he reaches me, but when i call him on his telephone my number is not shown, and it needs to show 021683550