Skip to content

creating dialog from request from 'to' and 'from' headers #16

@jaroszan

Description

@jaroszan

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions