2

I must be missing something. I can't seem to find how to send an instant message via SIP using a simple batch program to which I can pipe the content of the message.

I know how to do it interactively with something like Linphone, and I've seen various pages explaining how Asterisk can send messages (but I can't seem to understand how that would work from a batch program), I also found pjsua (which is using a text GUI, so it's somewhat closer to what I want, but I still haven't found a way to make it send a SIP message in a batch context).

[ If needed, I could probably settle for another open protocol, like XMPP/Jabber, but not SMTP, since the whole point is to alert me when I receive specific email messages. ]

Any hint?

  • What have you tried? What is your OS (Linux, Windows, OSX)? Which software will receive the SIP message? – jcbermu Oct 27 '15 at 14:01
  • I'm using Debian GNU/Linux, and the clients will be varied, tho the main ones should be Linphone and Ekiga. I haven't been able to try anything concretely yet (other than search the web) because I didn't find anything to start with. – Stefan Oct 27 '15 at 14:46
  • The usual way SIP works is that SIP clients (Ekiga or Linphone) log in a server (asterisk, for example) and from then, the server or the client use SIP to signalize the start or end of multimedia connections. Your idea will be better implemented using XMPP or websockets – jcbermu Oct 27 '15 at 14:52
  • Yes, I know how SIP works. I need a SIP client that I can tell in batch mode to "log into my SIP account, then send <this-message> to <this-sip-address>". It should be fairly infrequent so it's OK if it has to "login" and then "logout" every time. I mentioned, I could probably accomodate a solution using XMPP instead, tho I'm not sure if that'd help (AFAIK this also usually works by registering with a server, pretty much like SIP). – Stefan Oct 27 '15 at 14:56
  • Vote to close because: ....."Yes, I know how SIP works. I need a SIP client that I can tell ....." ..... – Xavierjazz Oct 27 '15 at 14:58
1

I think the following post applies to you. It talks about Command Line SIP solutions available in Linux. https://serverfault.com/questions/231597/command-line-sip-dialer

  • Indeed, thanks. These are solutions to perform audio SIP calls rather than to send instant messages. Oddly enough, it seems that command-line (SIP) phone calls are easier to do :-( – Stefan Oct 29 '15 at 5:21
0

Pjsua offers command line SIP Messaging capabilites.

  • It seemed like it might be able to do it, indeed, but I couldn't figure out how (it always seemed to require interaction). Could you give some details in your answer? – Stefan Jan 11 '17 at 14:11
  • Please read How do I recommend software for some tips as to how you should go about recommending software. You should provide at least a link, some additional information about the software itself, and how it can be used to solve the problem in the question. – DavidPostill Jan 11 '17 at 16:18

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.