[PJSIP] external_media_address can't be a domain name

If I use a domain name as external_media_address like

[test-transport]
type=transport
external_media_address=myexternip.com
...

the domain is not going to be resolved. I found it in the session part of SDP (o= …)

How to resolve the issue?

(Of course the domain points to my (dynamic) public ip)

This was fixed in the latest release. The domain name is now resolved and can be configured to re-resolve regularly[1].

[1] http://blogs.asterisk.org/2018/01/10/pjsip-dns-manager-dnsmgr-full-dynamic-hostname-support-coming-soon/

Asterisk 13.19.0 is already running on my system, but the domain name was not resolved.

Ah, you are correct. It was only fixed for the c= line. Please file an issue[1] that it should also cover the o= line. Generally though I’ve never come across anything that actually cares, but something may be out there.

[1] https://issues.asterisk.org/jira

Please do it yourself.

Do you have an account on the issue tracker that I can associate with the issue?

I have filed an issue and set you as the reporter so you will receive updates.

I’m sorry for enunciating unkindly. Next time I’m going to do it on my own.
@jcolp you are doing a very good job, thanks!

1 Like

I didn’t know about my JIRA account. Sorry.