| Class | Transport::TransportAndRouteResolver |
| In: |
sipper/transport/transport_and_route_resolver.rb
|
| Parent: | Object |
This class resolves the address for the next hop destination, looking up the DNS eventually and returning a tuple of addresses and transport to try. For now we just do a simple name resolve of one address.
RFC The destination for the request is then computed. Unless there is local policy specifying otherwise, the destination MUST be determined by applying the DNS procedures described in [4] as follows. If the first element in the route set indicated a strict router (resulting in forming the request as described in Section 12.2.1.1), the procedures MUST be applied to the Request-URI of the request . Otherwise, the procedures are applied to the first Route header field value in the request (if one exists), or to the request‘s Request-URI if there is no Route header field present. These procedures yield an ordered set of address, port, and transports to attempt.
| IP | = | /^(\d{1,3}\.){3}\d{1,3}$/.freeze |