[asterisk-bugs] [JIRA] (ASTERISK-28071) Chan_sip ignores the "fromdomain" option if "fromuser" option is presented
Aliaksandr Hrechny (JIRA)
noreply at issues.asterisk.org
Tue Sep 25 04:09:54 CDT 2018
[ https://issues.asterisk.org/jira/browse/ASTERISK-28071?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Aliaksandr Hrechny updated ASTERISK-28071:
------------------------------------------
Description:
My sip provider requires domain for a registration. But I faced with issue when `fromdomain` option is ignored if `fromuser` option is presented.
For example with the following configuration
{noformat}
username=123456789012
type=peer
transport=udp
secret=sip-secret
qualify=yes
outboundproxy=sip.server:5060
insecure=invite,port
host=sip.server
fromdomain=10.10.10.10
disallow=all
context=from-trunk-sip-custom
allow=alaw
{noformat}
result is next:
{noformat}
To: <sip:sip.server>
From: "Unknown"<sip:Unknown at 10.10.10.10>
{noformat}
But if I add to the config `fromuser=+123456789012` the result is as follows:
{noformat}
From: "Unknown"<sip:+123456789012 at sip.server>
To: <sip:+123456789012 at sip.server>
{noformat}
was:
My sip provider requires domain for a registration. But I faced with issue when `fromdomain` option if `fromuser` option is presented.
For example with the following configuration
{noformat}
username=123456789012
type=peer
transport=udp
secret=sip-secret
qualify=yes
outboundproxy=sip.server:5060
insecure=invite,port
host=sip.server
fromdomain=10.10.10.10
disallow=all
context=from-trunk-sip-custom
allow=alaw
{noformat}
result is next:
{noformat}
To: <sip:sip.server>
From: "Unknown"<sip:Unknown at 10.10.10.10>
{noformat}
But if I add to the config `fromuser=+123456789012` the result is as follows:
{noformat}
From: "Unknown"<sip:+123456789012 at sip.server>
To: <sip:+123456789012 at sip.server>
{noformat}
> Chan_sip ignores the "fromdomain" option if "fromuser" option is presented
> --------------------------------------------------------------------------
>
> Key: ASTERISK-28071
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-28071
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Channels/chan_sip/Registration
> Affects Versions: 13.23.1
> Environment: CentOS Linux release 7.5.1804 (Core)
> Reporter: Aliaksandr Hrechny
>
> My sip provider requires domain for a registration. But I faced with issue when `fromdomain` option is ignored if `fromuser` option is presented.
> For example with the following configuration
> {noformat}
> username=123456789012
> type=peer
> transport=udp
> secret=sip-secret
> qualify=yes
> outboundproxy=sip.server:5060
> insecure=invite,port
> host=sip.server
> fromdomain=10.10.10.10
> disallow=all
> context=from-trunk-sip-custom
> allow=alaw
> {noformat}
> result is next:
> {noformat}
> To: <sip:sip.server>
> From: "Unknown"<sip:Unknown at 10.10.10.10>
> {noformat}
> But if I add to the config `fromuser=+123456789012` the result is as follows:
> {noformat}
> From: "Unknown"<sip:+123456789012 at sip.server>
> To: <sip:+123456789012 at sip.server>
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list