Asterisk Call Transfer problem

Hi,
my name is Enrico and I write from Italy. I’m a little more than an
Asterisk newbee and I’m trying to configure that.
It work fine, but I have a problem with call transfer. This is my scenario: A call B and then transfer B to C. When B send the INVITE msg to C (after the NOTIFY msg sent by A) this message have a “From” caller ID Anonymous, also if I configure that (infact in all other case my UA use the correct ID).

This is my sip.conf:

[general]
context=from-net
bindport=5060
bindaddr=0.
0.0.0
srvlookup=yes
registerattempts=0
checkmwi=10
pedantic=yes
tos=184
useragent=foo
disallow=all
allow=alaw:30
allow=g723.1:30
allow=ulaw:30
allow=g729:30
defaultexpiry=120
register => 321@192.168.0.30:pass:
321@192.168.0.30:5060/321
subscribeexpiration=120
subscribe => 321:pass:
321@192.168.0.30:5060/321
defaultexpiry=120
register => 322@192.
168.0.30:pass:322@192.168.0.30:5060/322
subscribeexpiration=120
subscribe => 322:pass:322@192.168.0.30:5060/322

[321]
type=peer
user=phone
insecure=very
canreinvite=no
promiscredir=yes
fromuser=321
dtmfmode=rfc2833
compatmode=off
remotemailbox=0
host=192.168.0.30
fromdomain=192.168.0.30
port=5060
username=321
secret=pass
disallow=all
allow=alaw:30
allow=g723.1:30
allow=ulaw:30
allow=g729:30
faxtxcodec=ulaw
qualify=no

Any idea?

Thanks in advance,

bye bye

Try addid this in the user section in sip.conf:

callerid=First Last <1234>

The number has to be in <>

Firstable thanks for the answer.

I tried but it doesn’t work, nothing changed.

What’s the meaning of that option?

Thanks a lot.

Why you use promiscredir?

callerid is used to set the callerid of the user (both name and number).

voip-info.org/wiki-Asterisk+config+sip.conf

I tried without promiscredir but nothing changed… I forgot to say the Asterisk version: 1.2.4

thanks