Hi,

When dialling a remote SIP host with PJSIP, is it possible either
within the dialplan or via the AMI to find out the IP address of the
remote host?

If for example a remote host has multiple A records, I would like to
know which one Asterisk has connected to.

We have an issue with some remote hosts that send INVITE messages back
periodically mid-call, but because of our firewall the messages aren't
being received by Asterisk, therefore not being answered, and the
remote host is dropping the call.

We can't open those hosts up by default in the firewall because
customers could choose any SIP destination, but if I could allow the
specific remote address for the duration of the call, it would solve
some issues. I could use AGI scripts to add/remove firewall rules as
needed.

Unless, that is, there's a better way?

I'm using Asterisk 18.7.1 FWIW.

Cheers,
Kingsley.


-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
      https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to