Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change Contact header on LegA? #162

Open
mkezys opened this issue Oct 15, 2020 · 0 comments
Open

How to change Contact header on LegA? #162

mkezys opened this issue Oct 15, 2020 · 0 comments

Comments

@mkezys
Copy link

mkezys commented Oct 15, 2020

Hello,

I can change Contact on LegB using: bleg_contact_host, bleg_contact_port, bleg_contact_user.

I want to change Contact for LegA also but can't find how. I have in my profile:

enable_contact_hiding=yes
contact_user="AAA"
contact_host="111.111.111.111"
contact_port="5060"

but Contact on LegA stays unchanged. In the log I see:

[getContactHdr, AmBasicSipDialog.cpp:120] DEBUG:  [1D78D8DC-5F8836BC000245A3-EFAFA700] resulting Contact header: <sip:127.0.0.1:5080>
[patch_contact_transport, trans_layer.cpp:160] DEBUG:  contact: <<sip:127.0.0.1:5080>>

The function which actually changes Contact is not called in my understanding:

SBCCallProfile::fix_reg_contact (<-RegisterDialog::fixUacContactHosts<-RegisterDialog::initUAC)

I made a patch to check if my values are red, so looks like that they are:

INFO: SBC: Contact Hiding = '1'

What I am missing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant