Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is there a simple command line SIP dialer for unix which can connect to SIP server, make a call and play some media file (wav/mp3)? In ideal I would look like this:

sip-dailer +1xxxxxxxxxx /path/to/message.mp3
share|improve this question
    
I've done some research into SIP. My sense is that it's very vendor specific. You might have to purchase a specific unix compatible SIP server. –  SLY Feb 5 '11 at 16:02
    
Would you accept as an answer a unix compatible SIP server? –  SLY Feb 5 '11 at 16:03
add comment

5 Answers

If you already have Asterisk running, setting up a task to dial a number and wait for the other side to answer and play an audio file is not that hard. But 'having Asterisk running' does not answer 'simple'.

Google suggests pjsua.

share|improve this answer
add comment

With sipcmd https://github.com/tmakkonen/sipcmd you can do it on one line:

sipcmd -u <login> -c <passwd> -P sip -w <sipproxy> -x "c<phonenum>;ws3000;v<audiofile>;h"
share|improve this answer
add comment

There is a free (GPL) tool called SIPp (distributed as sip-tester by Debian and its derivatives) that will allow you do something along these lines.

For example:

./sipp -sn uac <IP address>

tells it to use the built in UAC scenario and to send the request to the IP address specified.

Once the call is answered it can play audio, but this needs to be provided as a raw RTP stream (passing a .pcap capture file works well) and you will need to build your own 'scenario' for this, which involves writing/modifying a bit of XML.

share|improve this answer
1  
This comment was super useful for me. I wrote up a detailed set of instructions on getting SIPp up and running here. Thanks! –  muirbot Mar 7 '12 at 23:57
    
Hello, do you have details on these instructions? –  Full Decent Aug 20 '12 at 1:46
add comment

linphonec support remote_ring option(wav file to play to advertise remote ringing). You can configure Asterisk.

share|improve this answer
    
Thanks, I tried it and it was quiet simple, there is a special command play for playing WAVs, and config where you can set sip_proxy. Almost what I need. –  troex Feb 6 '11 at 6:37
add comment

Maybe have a look at http://www.pjsip.org/pjsua.htm. While I am not sure it has an autoplay-option for outgoing calls, I guess you could fiddle with input devices a little bit to make it possible.

share|improve this answer
    
I've seen this, very interesting library but it's not ready-to-use solution, though there are good python examples howto use it –  troex Feb 5 '11 at 19:11
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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