emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Christian Thaeter <ct.orgmode@pipapo.org>
To: emacs-orgmode@gnu.org
Subject: Re: sip: links
Date: Sun, 21 Jun 2015 02:39:48 +0200	[thread overview]
Message-ID: <20150621023948.17969934@jupiter.pipapo.org> (raw)
In-Reply-To: <20150620172345.5ec7bd92@jupiter.pipapo.org>



On 2015-06-20 17:23, Christian Thaeter wrote:

> anyone of you happen to have a url handler for 'sip:' links invoking a
> telephony app (eg. linphone) when clicked? Otherwise I may give a
> try on my own nonexistent elisp skills :D
> 
> 	Christian
> 

Note to self: The code below works for me, maybe someone finds it useful
or wants to improve it.

	Cheers
		Christian

--------------------8<---------------------------------------
;;; org-sip.el - Support for telepone calls using sip links
(require 'org)

(org-add-link-type "sip" 'org-sip-open)

(defcustom org-sip-command "linphone -c"
  "The Emacs command to be used to make a telephone call."
  :group 'org-link
  :type '(string))

(defun org-sip-open (destination)
  "make a call to DESTINATION"
  (start-process-shell-command "sip" nil
                               (concat org-sip-command
                                       " "
                                       (shell-quote-argument
                                        destination))))

(provide 'org-sip)
;;; org-sip.el ends here
-------------------->8-------------------------------------

  reply	other threads:[~2015-06-21  0:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-20 15:23 sip: links Christian Thaeter
2015-06-21  0:39 ` Christian Thaeter [this message]
2015-06-21 10:37 ` Michael Strey
2015-06-21 16:15   ` Christian Thaeter
2015-06-22  9:27     ` Michael Strey
2015-06-22 15:02       ` Christian Thaeter
2015-06-23  4:24         ` briangpowell .
2015-06-23  8:33           ` Christian Thaeter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150621023948.17969934@jupiter.pipapo.org \
    --to=ct.orgmode@pipapo.org \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).