-
Notifications
You must be signed in to change notification settings - Fork 8
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
SIP connection through Proxy #32
Comments
using directly the IP address and not the URL might help |
Did some more tests. Setting the proxy address and port on the domain field returns:
Setting only the IP address returns a 408 when registering (timeout?)
Adding the "@telefonica.net" after the username, returns the following error:
|
hard to say what the problem is! you can increase the log level with "log_level" to "debug" as described here https://github.com/pamapa/callblocker/tree/master/etc/callblocker to see more. In case of SIP "pjsip_log_level" to "5". |
ok, i looked into the code, for SIP the pjsip library is used and no proxy support used yet. In "SipAccount SipAccount::add" can you add something additionally like this? I have no proxy to try out. Maybe this site helps you: |
Good news, I have added the lines you said after this one:
I also created a hosts entry file for my provider domain (telefonica.net) pointing to the proxy address to bypass the resolve error. Now callblocker registers succesfully and I can see on the log the incoming calls. I can set them to block but I can't see callblocker hanging up the call. Will do some more testing tomorrow. Thanks! :D |
Ok, did some more testing.
|
The call is actually blocked by a simply answer+hangup. i think we are getting closer to make it work.
|
I observe the same behaviour with require_100rel added. Today it seems to be cutting calls successfully, but landline phones still continue ringing. Just guessing, maybe the answer+hangup is too fast for the ATA to acknowledge that the call has been taken elsewhere? |
yes, i was also think about "too fast". Can you try adding a sleep? either after detecting its a spam or just before the hangup. |
also remember in case of analog phones the caller information (CID) is transmitted between the first and second ring. so one ring is always expected for analog phones. |
Yeah, one or two rings does not matter, but call ending is a must. Will try adding the sleep and do some more testing in few weeks as I'll have some free time. I'll report back then. Thanks! |
what is also very interesting is what happens in the function "void SipAccount::onCallState(pjsua_call_id call_id, pjsip_event* e)". what is logged in the cases where the hangup was not done?
|
what is the state here, does proxy work for you? |
Sorry, one thing led to another and in the end, I totally forgot 😱 I will continue the tests in a few days and report back. |
Hi, I did a new install and some more testing, I think the issues are down to my sip provider as I can't get consistent results during testing. I also had a sip client open and overall, the same behaviour was observed.
So, overall, I think the issue might be that sometimes the client can't register (code=408) and call blocking will not work correctly until it succesfully connects. Not sure on how to fix the code=408 error. |
Hi, my internet service provider requires the user of a Proxy Server (10.31.255.134:5070) in order to connect to the landline SIP account (connection goes through a different vlan than regular internet traffic).
Is there a way to make this work with callblocker?
Thanks
The text was updated successfully, but these errors were encountered: