Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

WHISTLE-42: update the prop select for the endpoint IP used during ro…

…ute requests
  • Loading branch information...
commit 468065d1ad8f1794f8fb76d169bbc0784044a531 1 parent 6f2f807
@k-anderson k-anderson authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  ecallmgr/src/ecallmgr_fs_route.erl
View
3  ecallmgr/src/ecallmgr_fs_route.erl
@@ -258,7 +258,8 @@ route_req(CallId, FSID, Props, Node) ->
,{<<"To">>, ecallmgr_util:get_sip_to(Props)}
,{<<"From">>, ecallmgr_util:get_sip_from(Props)}
,{<<"Request">>, ecallmgr_util:get_sip_request(Props)}
- ,{<<"From-Network-Addr">>,props:get_value(<<"Caller-Network-Addr">>, Props)}
+ ,{<<"From-Network-Addr">>, props:get_value(<<"variable_sip_h_X-AUTH-IP">>, Props
+ ,props:get_value(<<"variable_sip_received_ip">>, Props))}
,{<<"Switch-Nodename">>, wh_util:to_binary(Node)}
,{<<"Switch-Hostname">>, props:get_value(<<"FreeSWITCH-Hostname">>, Props)}
,{<<"Call-ID">>, CallId}
Please sign in to comment.
Something went wrong with that request. Please try again.