[asterisk-bugs] [JIRA] (ASTERISK-30047) Local IP address in SDP when external_media_address is used

Joshua C. Colp (JIRA) noreply at issues.asterisk.org
Fri May 6 04:12:40 CDT 2022


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

Joshua C. Colp updated ASTERISK-30047:
--------------------------------------

    Assignee: Niksa Baldun
      Status: Waiting for Feedback  (was: Triage)

> Local IP address in SDP when external_media_address is used
> -----------------------------------------------------------
>
>                 Key: ASTERISK-30047
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-30047
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_pjsip
>    Affects Versions: 18.11.2
>         Environment: Debian 11.3 container
>            Reporter: Niksa Baldun
>            Assignee: Niksa Baldun
>
> I have a system with 3 network adapters, with following IPs:
> 192.168.43.2/24
> 10.55.66.30/30
> 10.42.42.2/24
> Default GW is 10.42.42.1.
> If I use the following PJSIP transport definition:
> [transport-udp]
> type=transport
> protocol=udp
> bind=0.0.0.0:5060
> local_net=192.168.43.0/24
> local_net=10.42.42.0/24
> external_media_address=x.x.x.x
> external_signaling_address=x.x.x.x
> external IP is put in contact header, but SDP always contains the local address 10.42.42.2. So audio obviously does not work. The trunk registers to a public Internet address.
> It works as expected if I split transports like so:
> [transport-udp]
> type=transport
> protocol=udp
> bind=192.168.43.2:5060
> [transport-udp-1]
> type=transport
> protocol=udp
> bind=10.55.66.30:5060
> [transport-udp-external]
> type=transport
> protocol=udp
> bind=10.42.42.2:5060
> external_media_address=x.x.x.x
> external_signaling_address=x.x.x.x



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



More information about the asterisk-bugs mailing list