SIP call using linphone CLI and voipbuster

Purpose: make a SIP call to my phone in CLI. I used voipbuster as VOIP service provider.

Solution: linphone CLI (command line)


1. install

$ sudo apt install linphone-nogtk

this will install linphone v3.12.0 (at the time of writing)


2. config

2.1. run command "linphonec"  (note the "c" at the end)

$ linphonec


2.2. add voipbuster (red bold letters are input)

linphonec> proxy add

Adding new proxy setup. Hit ^D to abort.

Enter proxy sip address: sip:XXX@voipbuster.com

Your identity for this proxy: sip:XXX@voipbuster.com

Do you want to register on this proxy (yes/no): yes

Specify register expiration time in seconds (default is 600): <ENTER>

Expiration: 600 seconds

Specify route if needed: <ENTER>

No route specified.

--------------------------------------------

sip address: sip:XXX@voipbuster.com

route:

identity: sip:XXX@voipbuster.com

register: yes

expires: 600

registered: no

--------------------------------------------

Accept the above proxy configuration (yes/no) ?: yes

Proxy added.

linphonec> Refreshing on sip:XXX@voipbuster.com...

linphonec> Registration on sip:XXX@voipbuster.com failed: Unauthorized

linphonec>

Password for XXX on voipbuster.com: your_password

Refreshing on sip:XXX@voipbuster.com...

linphonec> Registration on sip:XXX@voipbuster.com successful.


2.3. make a test call

you can try to make call first in the linphone cli mode.

linphonec> call sip:+16041234567@voipbuster.com

you may type "terminate" during the call to terminate it. (Reject the call on your phone may result redirecting to voice mail and cost you credits in VOIP service provider.)

linphonec> terminate

2.4. quit the cli
linphonec> quit
it will save the proxy in the config file (~/.linphonerc).

2.5. confirm the configuration
$ cat ~/.linphonerc
you will notice the [proxy_0] and [auth_info_0] section.


3. make the call in shell
$ linphonec -s sip:+16041234567@voipbuster.com
Ctrl+C to terminate.

Comments

Popular posts from this blog

DELL U4320Q ddccontrol in Linux switch input

UEFI boot.