Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tutorials:alias-example [2011/04/22 19:09] – 87.93.81.21 | tutorials:alias-example [2013/06/08 06:42] (current) – [In-Dialog Requests] jh | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ===== Introduction ===== | ===== Introduction ===== | ||
| - | The benefits | + | The benefit |
| - | + | ||
| - | * Request-URI in requests to UAs behind NATs is always what UAs expect | + | |
| - | * Re-use of tcp/tls sessions between proxy and UAs | + | |
| - | + | ||
| - | In the example below only functions related to signaling are shown. | + | |
| ===== Non-Register Initial Requests ===== | ===== Non-Register Initial Requests ===== | ||
| Line 77: | Line 71: | ||
| route [IN_DIALOG_REQUESTS] { | route [IN_DIALOG_REQUESTS] { | ||
| - | if (REQUEST_COMES_FROM_BEHIND_NAT || ((@via[2] == "" | + | if (REQUEST_COMES_FROM_BEHIND_NAT || (is_first_hop() && (proto != UDP))) { |
| route(ADD_CONTACT_ALIAS); | route(ADD_CONTACT_ALIAS); | ||
| } | } | ||