Skip to content
Browse files

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

…ute requests
  • Loading branch information...
1 parent 1e4215c commit f832c0f1c9b15baab46ab1575579e7446121535d @k-anderson k-anderson committed
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}

0 comments on commit f832c0f

Please sign in to comment.
Something went wrong with that request. Please try again.