You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 14, 2020. It is now read-only.
I found an issue with sip destination domain change in "To" request attribute.
The use case in which I found the bug is:
def(OverSIP::SipEvents).on_requestrequest# the whole file is from the sample
...
caserequest.sip_methodwhen:INVITE,:MESSAGE,:OPTIONS,:SUBSCRIBE,:PUBLISH,:REFERifMyExampleApp.do_user_assertion
::OverSIP::Modules::UserAssertion.add_pairequestendrequest.to.host='my.custom_gateway.com'request.ruri.host='my.custom_gateway.com'proxy= ::OverSIP::SIP::Proxy.newproxy.on_provisional_responsedo |response|
log_info"on_provisional_response: #{response.status_code} '#{response.reason_phrase}'"endproxy.on_success_responsedo |response|
log_info"on_success_response: #{response.status_code} '#{response.reason_phrase}'"endproxy.on_failure_responsedo |response|
log_info"on_failure_response: #{response.status_code} '#{response.reason_phrase}'"endproxy.on_errordo |status,reason|
log_notice"on_error: #{status} '#{reason}'"endproxy.on_invite_timeoutdolog_notice"INVITE timeout, no final response before Timer C expires."endlog_info"doing route request"log_info"request ruri: #{request.ruri}"# if accessing request.to.to_s, request.to_s wont change "To" variable due to to_was_modified going false after to.to_slog_info"debug_to: #{request.to}."log_info"debug_to(2): #{request.to}."# log_info "new request to: #{request.to}. Modified: #{request.to.modified?}"# log_info request.to_sproxy.routerequest,'my.custom_gateway.com',5060,:tcpreturn
Resuming:
If we access request.to.to_s before proxying, the request.to.host is gone
Should I create a pull request for this? I would comment the to_was_modified in request.to_s so it allways change 'To' header
The text was updated successfully, but these errors were encountered:
Hi guys,
I found an issue with sip destination domain change in "To" request attribute.
The use case in which I found the bug is:
Resuming:
If we access request.to.to_s before proxying, the request.to.host is gone
Should I create a pull request for this? I would comment the to_was_modified in request.to_s so it allways change 'To' header
The text was updated successfully, but these errors were encountered: