-
Notifications
You must be signed in to change notification settings - Fork 9
Description
Currently dialog for incoming call is created based on local_uri and value of 'From' header in the received request (call.rb: create_dialog_from_request function)
So destination uri should be specified twice: at the origin and destination of the call. Far more flexible would be for server to be able to handle whatever is coming to it.
Brute force method to handle it would be to create an additional method in dialog.rb which would be an almost identical copy of 'get_peer_info', for example 'get_local_info' which would set @local_uri and call it from create_dialog_from_request like '@dialog.get_local_info msg.header("To")'
I have in mind some modification of get_peer_info to accept multiple parameters and handle it in one call but haven't tried it yet.