[asterisk-bugs] [JIRA] (ASTERISK-23994) res_pjsip_sdp_rtp: owner address in SDP may not be fully qualified domainname

Matt Jordan (JIRA) noreply at issues.asterisk.org
Fri Jul 4 14:25:57 CDT 2014


    [ https://issues.asterisk.org/jira/browse/ASTERISK-23994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=220276#comment-220276 ] 

Matt Jordan commented on ASTERISK-23994:
----------------------------------------

While your provider is still wrong, my conclusion was also a bit wrong :-)

Looking at what we sent in the origin line - and what {{gethostname}} will return - we may do two things incorrectly here:
# We may accidentally send a local address, which wouldn't be terribly useful
# We may not send the *fully qualified* name of the machine.

So there is a bug here: we should be sending the fully qualified name of the machine, or else the IP address. We should only send a local address if we have no other addresses.

> res_pjsip_sdp_rtp: owner address in SDP may not be fully qualified domainname
> -----------------------------------------------------------------------------
>
>                 Key: ASTERISK-23994
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-23994
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_pjsip_sdp_rtp
>    Affects Versions: 12.3.2
>         Environment: Linux any version
>            Reporter: Private Name
>
> I already asked this question to the list and nobody answered, therefore it is a bug. The SDP-Owner section is wrong. This is what my client said:
> "That OK message from 1.1.1.1 can not be parsed by our switch due to
> address representation in their SDP:
> Owner/Creator, Session Id (o): Pitcom 2723451647 2723451649 IN IP4 Pitcomlxc
> Such address representation not supported, there should be IP address
> instead of domain name.
> Example:
> Owner/Creator, Session Id (o): Pitcom 2723451647 2723451649 IN IP4 1.1.1.1
> In fact, I traced it in the SDP packet, I see
> o=Pitcom 3991413436 3 IN IP4 pitcomlxc
> where pitcomlxc is the host name.
> How do I make PJSIP use an IP address there instead of the host name?
> My /etc/hosts.com has an entry for pitcomlxc, but it makes no difference.



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



More information about the asterisk-bugs mailing list