если существует пир например 1234, то при звонке на DID с callerid 1234 - asterisk использует контекст пира 1234. если пир 1234 не объявлен, то используется контекст указанный для DID.
как asterisk -у сказать что бы он всегда использовал контекст указанный для DID? * 1.8
настройки DID:
[XXXXX]
disallow=all
allow=ulaw
allow=alaw
context=did_incoming
fromuser=user1
host=1.1.1.1
insecure=invite
secret=pass
type=friend
defaultuser=user1
Спасибо всем откликнувшимся.
| Код: |
| ;match_auth_username=yes ; if available, match user entry using the ; 'username' field from the authentication line ; instead of the From: field. |
не помогло, но по описанию подходит.
| Код: |
| match_auth_username=yes |
_________________
ubuntu-server*CLI> core show channels count
30 active channels
30 of 200 max active calls ( 15.0% of capacity)
3073645 calls processed
ubuntu-server*CLI> core show uptime
System uptime: 1 year, 6 weeks, 18 hours, 14 minutes, 22 seconds
• first tries to find a [user] section matching the caller name (From: username),
• then tries to find a [peer] section matching the caller's IP address.
If no matching user or peer is found, the call is sent to the context defined in the [general] section of sip.conf
выставить type=peer для did!