обычно такие моменты оговариваются заранее .
про второе - не встречал такое
| Код: |
| chan_sip.c:16266 check_auth: username mismatch, have , digest has |
Ну и если вы все таки понимаете, что делаете, то стоит прочитать sip.conf.sample
| Цитата: |
| ;match_auth_username=yes ; if available, match user entry using the ; 'username' field from the authentication line ; instead of the From: field. |
| Цитата: |
| ; DEVICE CONFIGURATION ; ; SIP entities have a 'type' which determines their roles within Asterisk. ; * For entities with 'type=peer': ; Peers handle both inbound and outbound calls and are matched by ip/port, so for ; The case of incoming calls from the peer, the IP address must match in order for ; The invitation to work. This means calls made from either direction won't work if ; The peer is unregistered while host=dynamic or if the host is otherise not set to ; the correct IP of the sender. ; * For entities with 'type=user': ; Asterisk users handle inbound calls only (meaning they call Asterisk, Asterisk can't ; call them) and are matched by their authorization information (authname and secret). ; Asterisk doesn't rely on their IP and will accept calls regardless of the host setting ; as long as the incoming SIP invite authorizes successfully. ; * For entities with 'type=friend': ; Asterisk will create the entity as both a friend and a peer. Asterisk will accept ; calls from friends like it would for users, requiring only that the authorization ; matches rather than the IP address. Since it is also a peer, a friend entity can ; be called as long as its IP is known to Asterisk. In the case of host=dynamic, ; this means it is necessary for the entity to register before Asterisk can call it. ;------- Naming devices ------------------------------------------------------ ; ; When naming devices, make sure you understand how Asterisk matches calls ; that come in. ; 1. Asterisk checks the SIP From: address username and matches against ; names of devices with type=user ; The name is the text between square brackets [name] ; 2. Asterisk checks the From: addres and matches the list of devices ; with a type=peer ; 3. Asterisk checks the IP address (and port number) that the INVITE ; was sent from and matches against any devices with type=peer ; ; Don't mix extensions with the names of the devices. Devices need a unique ; name. The device name is *not* used as phone numbers. Phone numbers are ; anything you declare as an extension in the dialplan (extensions.conf). ; ; When setting up trunks, make sure there's no risk that any From: username ; (caller ID) will match any of your device names, because then Asterisk ; might match the wrong device. ; ; 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. ;----------------------------------------------------------------------------- |
Added after 2 minutes:
| Код: |
| chan_sip.c:16266 check_auth: username mismatch, have , digest has |
Данная же ошибка говорит о том, что вам стоит проверить настройи IP телефона