pjsip transport: How to use IPv4+IPv6 Combined?

Get help with installing, upgrading and running Asterisk.

Moderators: muppetmaster, Moderator, Support

pjsip transport: How to use IPv4+IPv6 Combined?

Postby rosch » Wed Jan 20, 2016 5:31 am

Hi,
according to the pjsip documentation https://wiki.asterisk.org/wiki/display/AST/PJSIP+Transport+Selection, it is not recommended to use a wildcard [::] but to use fixed IPv6 addresses and fixed IPv4 addresses instead.

However, I cannot use a fixed IPv6 address since my ISP assigns a new IPv6 prefix at each reconnect.

Trying to use the wildcard [::], I end up with ONLY IPv6 registering. Even if I specify a IPv4 only SIP-server address.

Example:
Code: Select all
[reg_SipgateIPv4]
type=registration
retry_interval = 20
max_retries = 10
contact_user = SipgateUser
expiration = 120
transport=transport-udp
outbound_auth=auth_reg_SipgateIPv4
client_uri=sip:SipgateUser@sipconnect.v4.sipgate.de
server_uri=sip:sipconnect.v4.sipgate.de

[auth_reg_SipgateIPv4]
type = auth
password=SipgatePW
username=SipgateUser


Trying to register, I receive the message:
Code: Select all
WARNING[11794]: pjsip:0 <?>:      tsx0x1774a44 Failed to send Request msg REGISTER/cseq=62534 (tdta0x17b4978)! err=171064 (Unsuitable transport selected (PJSIP_ETPNOTSUITABLE))
rosch
Newsterisk
 
Posts: 2
Joined: Wed Jan 20, 2016 5:01 am

Re: pjsip transport: How to use IPv4+IPv6 Combined?

Postby jcolp » Wed Jan 20, 2016 6:20 am

Unfortunately PJSIP really just does not allow it. You really do need to have separate specific transports.
Joshua Colp
Digium, Inc. | Senior Software Developer
jcolp
Oldsterisk
 
Posts: 248
Joined: Tue May 19, 2015 6:59 am


Return to Asterisk Support

Who is online

Users browsing this forum: Exabot [Bot] and 1 guest