SIP Heder TO need to change

Dear Team,

i am using asterisk 11 and configured the SIP trunk . When am making outgoing call the call is going with SIPHeader To as Cutomernumber@Hostip .

I need to change the SIPHeader TO as Customernumber@domainname

how can i change ?

Change from ip address in the sip trunk configuration to an fqdn in the sip configuration…

You could show how the trunk is configured now, would help in providing you some help…

[my-sip-trunk]
host=10.10.10.10
username=121212@mydomain.com
secret=123456
type=peer
qualify=yes
insecure=port,invite
disallow=all
allow=alaw
defaultuser=121212@mydomain.com
fromuser=121212
fromdomain=mydomain.com
outboundproxy=10.10.10.10
context=trunkinbound
sendrpid = yes

This is the my trunk configuration…I have also tried to change ip to domain name and still its same.

Can you please help me on this ?

If you have tried to use the domain name in the config, but that did not work, then you have another issue.

Can you ping the domain? If not then you should look at your resolve file, or add the domain to your host file, but that is a bit dirty…

Am able to ping the domain,but how to set domain name while making call?