Ability to prevent SIP registration

Requests for the next versions.
Post Reply
effin_dead_again
Posts: 20
Joined: Tue Dec 18, 2018 10:40 pm

Ability to prevent SIP registration

Post by effin_dead_again »

I have a feature request that I would like to have considered. We have a situation where all of our WTWare clients use the same SIP credentials to register to a SIP proxy. These clients do not receive any phone calls, they only make a single phone call to connect to a call center system.

By default WTWare sends a register command to linphonec when starting up. When all of my WTWare SIP clients have registered the registration response packets from the SIP proxy get rather large due to all SIP client registering using the same credentials, which causes the packets to go outside of the normal MTU boundaries causing UDP fragmentation due to the large number of contacts. There is nothing I can do on the SIP proxy to prevent this behavior, but unregistering the linphonec client allows outbound calls to be made from WTWare.

My request is to add a checkbox to prevent automatic SIP registration on startup of linphonec. This effect of this is that instead of sending a register command as is currently done:

Code: Select all

[            gm] [   49.778932] [SIP] Command: 'register sip:0000@dialpad.example.com dialpad.example.com **password**'.
[           SIP] [   49.778993] linphonec> Receiving command 'register sip:0000@dialpad.example.com dialpad.example.com *'
Proxy information would be either added onto the end of the custom linphone configuration (reference: https://alter.org.ua/en/docs/linux/linphonec/ ):

Code: Select all

[proxy_0]
reg_proxy=sip:dialpad.example.com
reg_identity=sip:0000@dialpad.example.com
reg_sendregister=0
publish=0
dial_escape_plus=0

[auth_info_0]
username=0000
passwd=**password**
realm="dialpad.example.com"
or the proxy information would be added using the 'proxy add' command: https://webhamster.ru/mytetrashare/inde ... 5od5m9ax7x

Please let me know if you need additional information. Thank you!
akatik
SUPPORT
SUPPORT
Posts: 630
Joined: Mon Jan 17, 2005 6:30 pm
Contact:

Re: Ability to prevent SIP registration

Post by akatik »

Please try this build:

http://wtware.com/testing/202112060210.zip

1. Linphone is updated here. Try it with the same config as before to be sure it works.

2. This build will not send register command if user/passsword/server is set to this value:

Code: Select all

sip=do:not@register
3. Use your own config for linphone:

Code: Select all

sip=do:not@register, config:my_enterprise_sip.wtc
There are some requirements to linphone config:

https://wtware.com/docs5/config.html#SIP

You may take wtware default linphone config from log. Remove ringer_dev_id, playback_dev_id and capture_dev_id lines and add your lines, but not to the end of file because wtware will add new xxx_dev_id lines to your config.

4. Show me the log: https://wtware.com/logs.html

Without "register" command, wtware popup window interface will not work with linphone. You may make a call from linphone command line in terminal web interface. In order to run wtware popup window, I want to see log to find connection status.
effin_dead_again
Posts: 20
Joined: Tue Dec 18, 2018 10:40 pm

Re: Ability to prevent SIP registration

Post by effin_dead_again »

I will try this today and report back. Thank you!
akatik
SUPPORT
SUPPORT
Posts: 630
Joined: Mon Jan 17, 2005 6:30 pm
Contact:

Re: Ability to prevent SIP registration

Post by akatik »

Do not try the build by this link. Try official 6.0.64 from http://wtware.com/
Post Reply