Registration on Freeswitch

572 views
Skip to first unread message

Tung Giang Le

unread,
May 12, 2021, 5:07:38 AM5/12/21
to baresip
Has anyone succeeded at registration FreeSwitch with Baresip?
I have done follow steps in this link: https://youtu.be/RszeAZ8wWqk
  1. I created an account in baresip/account: <sip:20...@192.168.10.108:5060;transport=tcp>;auth_pass=PASS;regint=0
  2. I add a new 2000.xml file at usr/local/freeswitch/conf/directory/default:
          <include>
           <user id="2000">
              <params>
                <param name="password" value="PASS"/>
              </params>
           </user>
          </include>

But when I "show registrations" in freeSwitch, nothing happen.

Alfred E. Heggestad

unread,
May 12, 2021, 5:17:11 AM5/12/21
to Tung Giang Le, baresip
On 12/05/2021 11:07, Tung Giang Le wrote:
> Has anyone succeeded at registration FreeSwitch with Baresip?
> I have done follow steps in this link: https://youtu.be/RszeAZ8wWqk
>
> 1. I created an account in baresip/account: <sip:20...@192.168.10.108:5060;transport=tcp>;auth_pass=PASS;regint=0
> 2. I add a new 2000.xml file at usr/local/freeswitch/conf/directory/default:
>
>           <include>
> <user id="2000">
>    <params>
>      <param name="password" value="PASS"/>
>    </params>
> </user>
> </include>
>
> But when I "show registrations" in freeSwitch, nothing happen.
>

Hi,

when baresip starts the first time, it will generate an account template:


#
# A very basic example
<sip:us...@iptel.org>;auth_pass=PASSWORD



This account will register by default.


Your account says "regint=0" which means registration disabled.
You need to put a non-zero value there such as 600


/alfred

Tung Giang Le

unread,
May 12, 2021, 5:35:16 AM5/12/21
to baresip
I have just changed regint to another number but an error approached:
    unhandeled request from 192.168.10.108:5060: REGISTER sip:192.168.10.108:5060
    reg: sip:20...@192.168.10.108:5060 (prio 0): 501 Not Implemented (baresip v1.1.0 (x86_64/linux))

Tung Giang Le

unread,
May 12, 2021, 6:18:28 AM5/12/21
to baresip
Oh I have just comment out the "sip_listen" in config file and the registration went OK.
Can u explain why that happend? I thought that we have to uncomment "sip_listen" in order to receive call in baresip?

Juha Heinanen

unread,
May 12, 2021, 6:49:13 AM5/12/21
to Tung Giang Le, baresip
Tung Giang Le writes:

> Oh I have just comment out the "sip_listen" in config file and the
> registration went OK.
> Can u explain why that happend? I thought that we have to uncomment
> "sip_listen" in order to receive call in baresip?

I think if you comment out sip_listen, it defaults to listening at port
5060 of all ip addresses of the device.

-- Juha

Tung Giang Le

unread,
May 12, 2021, 10:13:42 AM5/12/21
to baresip
Hmm, seem like I have to look more into it
Thankss a lot guys, I didnt expect that fast
I appreciate it.

Christian Spielberger

unread,
May 20, 2021, 8:37:57 AM5/20/21
to baresip
My fault. This iptel.org line should be commented out in the template. Will make a PR.

r,c

Reply all
Reply to author
Forward
0 new messages