When I make a call to Asterisk I get a username mismatch.
Have 2250, digest has hamlet.
Now 2250 is the calling party number, why does Asterisk think it is the username?
“hamlet” is the username of the SIP endpoint on the Digium.
I thought type=peer wasn’t matching on names.
[2015-03-03 17:03:28] WARNING[14455][C-000002b1]: chan_sip.c:16491 check_auth: username mismatch, have <2250>, digest has
[2015-03-03 17:03:28] NOTICE[14455][C-000002b1]: chan_sip.c:25611 handle_request_invite: Failed to authenticate device “2250 O.Matt” sip:2250@10.1.1.180;tag=as3164e14
Check this option
match_auth_username=yes if available, match user entry using the’username’ field from the authentication line instead of the From: field.
Note
The parameter "username" is not the username and in most cases is
not needed at all. Check below. In later releases, it's renamed
to "defaultuser" which is a better name, since it is used in
combination with the "defaultip" setting.
fromuser option override any callerid set.
You can use dialplan Function_CALLERID to pass the desired caller id
Thanks for the advice.
Is below how the dial plan would like like?
Not sure how and where to include the dial string you gave me, still new on Asterisk.