Hello everyone,
I create a peer with defaultuser parameter set in sip.conf. An ATA registers to that peer. Then I edit the defaultuser parameter and reload asterisk. Then I check the “Def. user” parameter with “sip show peer blah” command. The change doesn’t take effect. I still see the old value in “Def. user” field.
What is the right way to update it?
This is my peer’s config.
[Test](sip_account)
defaultuser=123123123
dtmfmode=rfc2833
context=local
nat=force_rport,comedia
secret=123123123
callerid="123123123" <123123123>
accountcode=123123123
I register an ATA with this peer’s settings.
[code]# asterisk -x “sip show peers” -rvvv | grep Test
Test/123123123 x.x.x.x D N 1440 OK (73 ms)
asterisk -x “sip show peer Test” -rvvv | grep “Def. Username”
Def. Username: 123123123[/code]
Then I edit my peer:
[Test](sip_account)
defaultuser=123123124
dtmfmode=rfc2833
context=local
nat=force_rport,comedia
secret=123123124
callerid="123123124" <123123124>
accountcode=123123124
I reload asterisk, reconfigure and reset the ATA. However…
[code]# asterisk -x “sip show peers” -rvvv | grep Test
Test/123123123 x.x.x.x D N 1440 OK (73 ms)
asterisk -x “sip show peer Test” -rvvv | grep “Def. Username”
Def. Username: 123123123[/code]
As you can see, the defaultuser parameter didn’t update (even though things like caller id and sip secret did change their values)
I’ve also noticed that in asterisk database there is still an old value in SIP/Registry key:
/SIP/Registry/Test : x.x.x.x:1440:3600:123123123:sip:Test@x.x.x.x:1440;line=4bc6bd26a1ce945