Summary:ASTERISK-00648: no user@ in diaplan, * chooses random username
Reporter:Andrew Kohlsmith (akohlsmith)Labels:
Date Opened:2003-12-10 09:11:37.000-0600Date Closed:2011-06-07 14:10:41
Versions:Frequency of
Description:In a Dial() statement, if I do not specify a username the Asterisk server seems to pick one at random.

e.g. Dial(IAX2/peer/${EXTEN}) will dial using the peer alright, but it will choose a random username...  I have had names like uGJREldiDc and even the user "iaxtel" which is odd because that username does not occur anywhere in my configuration files.

Can we either get * to spit out an ERROR, or to use the 'username' field in the peer configuration (again, ERRORing if it doesn't exist) instead of pretending to do something useful?
Comments:By: Brian West (bkw918) 2003-12-10 10:55:50.000-0600

Maybe thats how it was designed to work.  Properly configure it with a user@

By: Mark Spencer (markster) 2003-12-10 13:11:36.000-0600

If you don't specify a username, the remote side will choose one on your behalf based upon any entry it selects that matches criteria.  Always specify a username if you want one.

By: Andrew Kohlsmith (akohlsmith) 2003-12-10 13:18:48.000-0600

Interesting.  Thank you for that explanation, markster.  Is there a place to log things that should go into the documentation (handbook) ?  What are the criteria that the remote end uses to match up the connection?

By: Brian West (bkw918) 2004-01-06 23:59:51.000-0600

By design. Specify user@peer