I’m using the pjsip wizard in Asterisk 18 and when I define a SIP Trunk, there is now the ability to set several distant endpoint in “remote_hosts”:
trunk-defaults
type = wizard
transport = transport-tcp ; Explicit transport configuration to use
endpoint/allow = !all,ulaw,alaw ; Media Codec(s) to allow
endpoint/context = incoming ; Dialplan context to use
endpoint/dtmf_mode = auto ; DTMF is sent as RFC 4733 if the other side supports it or as INBAND if not.
endpoint/direct_media = yes ; Enable direct media (peer to peer RTP)
;endpoint/tos_audio = ef ; Sets TOS for audio streams (QoS)
;endpoint/cos_audio = 5 ; Sets COS for audio streams (QoS)
aor/qualify_frequency = 30 ; Interval at which to qualify an AoR (SIP Options Ping)
TRUNK
remote_hosts = 10.157.7.4:5060,10.157.7.6:5060
identify/match = 10.157.7.4,10.157.7.6
This is great as it allows to have resiliency defined directly in the SIP Trunk definition.
However I could not find information about how the resiliency itself is implemented…or how to adapt/change it:
- Load Balancing VS Priority of the listing?
- Failover permanent VS automatic FallBack?
Are there specific settings for this?
Thanks
G.