Advertisement
metalx1000

Linphone SIP calling

Aug 16th, 2022 (edited)
1,606
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.25 KB | None | 0 0
  1. #install linphone
  2. sudo apt install linphone-cli
  3.  
  4. #start up linphone shell internface
  5. linphonec
  6.  
  7. #call someone
  8. call sip:<user>@<ip address>
  9. #or do it from the command line
  10. linphonec -s sip:<user>@<ip address>
  11.  
  12. #receiving calls
  13. linphonec
  14. answer
  15. #or set it to auto answer
  16. autoanswer enable
  17.  
  18.  
  19. #hangup
  20. terminate
  21.  
  22. #select sound card
  23. soundcard list
  24. soundcard use <number from above list>
  25.  
  26. #ring tones and configs
  27. DESKTOP GUI stores configs: ~/.config/linphone/linphonerc
  28.  
  29. #to load the configs in the shell
  30. linphonec -c ~/.config/linphone/linphonerc
  31.  
  32. #example ringtones in config file
  33. #what you hear when some one calls you
  34. local_ring=/usr/share/sounds/linphone/toy-mono.wav
  35. #what someone hears when they are waiting for you to pick up
  36. remote_ring=/usr/share/sounds/linphone/ringback.wav
  37.  
  38.  
  39. ####ANDROID####
  40. Android By default uses a random port.
  41. If you are connecting directly you might need to set a port to use.
  42.  
  43.  
  44. #for more user 'help' command
  45. Commands are:
  46. ---------------------------
  47.       help      Print commands help.
  48.     answer      Answer a call
  49. autoanswer      Show/set auto-answer mode
  50.       call      Call a SIP uri or number
  51.      calls      Show all the current calls with their id and status.
  52.  call-logs      Calls history
  53.     camera      Send camera output for current call.
  54.       chat      Chat with a SIP uri
  55. conference      Create and manage an audio conference.
  56.   duration      Print duration in seconds of the last call.
  57.   firewall      Set firewall policy
  58.     friend      Manage friends
  59.       ipv6      Use IPV6
  60.       mute      Mute microphone and suspend voice transmission.
  61.        nat      Set nat address
  62.      pause      pause a call
  63.       play      play a wav file
  64. playbackga      Adjust playback gain.
  65.      proxy      Manage proxies
  66.     record      record to a wav file
  67.     resume      resume a call
  68.  soundcard      Manage soundcards
  69.       stun      Set stun server address
  70.  terminate      Terminate a call
  71.   transfer      Transfer a call to a specified destination.
  72.     unmute      Unmute microphone and resume voice transmission.
  73.     webcam      Manage webcams
  74.       quit      Exit linphonec
  75. ---------------------------
  76. Type 'help <command>' for more details or
  77.      'help advanced' to list additional commands.
  78.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement