[asterisk-bugs] [JIRA] (ASTERISK-17886) autodomain in sip.conf should be smart enough to detect alternate port from udpbindaddr or similar setting

Joshua Colp (JIRA) noreply at issues.asterisk.org
Tue Dec 19 06:53:07 CST 2017


     [ https://issues.asterisk.org/jira/browse/ASTERISK-17886?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joshua Colp updated ASTERISK-17886:
-----------------------------------

    Affects Version/s: 13.18.4

> autodomain in sip.conf should be smart enough to detect alternate port from udpbindaddr or similar setting
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-17886
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-17886
>             Project: Asterisk
>          Issue Type: Bug
>          Components: Channels/chan_sip/General
>    Affects Versions: 1.8.4, 13.18.4
>            Reporter: aeg
>            Severity: Minor
>
> Hello,
> today I spent almost 3-4 hrs trying to troubleshoot this issue for two reasons:
> a) I assumed that the setting "autodomain=yes" only works on usage of the standard bind port. If one was to bind the SIP server on an alternate port like 5062, it needs to be explicitly added to sip.conf config, like any other peer i.e.
> domain=<localIP>:<bindPort>
> b) the message that one receives on the console was misleading as it kept accepting the call but would say "NOTICE[1613]: chan_sip.c:21581 handle_request_invite: Call from 'boxA' to extension '2222' rejected because extension not found in context 'Test'." when the extension WAS in fact present in the given context.
> So for the longest time I kept focussing on that when it has NOTHING to do with the extensions file or the configuration of contexts or anything else.
> I only figured it out when I turned on debug and went through the log file and saw the message: 
> [May 19 11:21:58] DEBUG[1613] chan_sip.c: Got SIP INVITE to non-local domain '10.0.3.6:5062'; refusing request.
> when I added this to domain= keyword, it worked
> So I reckon two things need to be fixed. 
> a) autodomain should be smart-er
> b) the message being printed on the console should be what was printed in the log file as opposed to sending someone on a wild goose chase of contexts and extensions :)
> Kind Regards



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list