baresip: Dial to a domain without "@" is not possible through `menu`
Suppose that office is a domain in the local network. It should be possible to initiate an outgoing call to domain office.
Current behavior:
Dialing e.g. office through module menu is not possible, because the host part of the selected account will be appended. The DNS resolution fails.
e.g. configured account:
<sip:alice@localhost>;regint=0
> office
A@localhost: selected for request
call uri: sip:office@localhost
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 23 (2 by maintainers)
What I meant was that if dial string starts with sip:, do not try to do any kind of completion. Prefix sip: can be used as an indication that the user knows what he/she is doing.
If use writes sip:office or sip:alice, both office and alice are uri hostparts and baresip needs to try to resolve them by whatever means is available on the host, e.g. use DNS query and check from /etc/hosts.
one more input:
The “append domain” logic should not be done in baresip core (ua.c), the core should be kept as slim as straightforward as possible.
The logic should be implemented in the application, i.e. menu module and/or user of libbaresip.
I sent similar comment as email, but looks it never arrived: