Hello Everyone,
I cannot get my “From” header to change using the “fromuser” attribute in my SIP trunk context. I tried using 1.6 and 1.8 checked out from trunk, and from tag. I have been at this for a couple of days until seeking your help. I saw some tickets open, but nothing that could direct me in any direction.
My sip.conf
register => 9999*999@9999999@sipserver.net /9999*999
[HoPs]
type=peer
defaultuser=9999*999@sipserver.net
fromuser=9999*999
secret=9999999
host=sipserver.net
fromdomain=sipserver.net
outboundproxy=sipserver.net
realm=sipserver.net
regseconds=60
port=5060
insecure=port,invite
context=the_context_you_forward_the_inbound_calls_to
qualify=yes
nat=yes
srvlookup=yes
canreinvite=no
directmedia=no
disallow=all
allow=gsm
allow=ulaw
And the SIP Debug:
<--- SIP read from UDP:66.11.156.12:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.2.11:5060;branch=z9hG4bK1021bf6a;rport=5060;received=174.91.191.184
From: "asterisk" <sip:asterisk@192.168.2.11>;tag=as3f02a808
To: <sip:sipserver.net>;tag=0d28b93405eb249c16c7b3aa36a89a34.048f
Call-ID: 6e19205d1c93aa616012eeb9139499c4@192.168.2.11
CSeq: 102 OPTIONS
Server: VoipNow
Content-Length: 0
I tried a lot of things such as:
Changing the server name to the username (asteirsk -> 9999*999), Just to test
Using the userauth
Changing the realm to the username
Nothing worked. I could not change “From: “asterisk” sip:asterisk@192.168.2.11;tag=as3f02a808” using non of the directives.
Thanks in Advance.
Nick from Toronto.