[VOIPSEC] creating virtual phones
Alexis Porros
alexis.porros at gmail.com
Sun Jul 11 19:09:16 CDT 2010
Hi Robin,
For the scenario you require, another easy way would be to call
extensions/numbers which are not registered/online, and as such, the VoIP
server would handle the call and answer with the default "not
available"-alike voice message, which lasts for some seconds. In some cases
(depending on how you configure it), you could even leave a voicemessage.
In other cases, for phones registered, you could leave the call reach the
state unanswered, and then again, you would hear the "not available"-alike
voice message.
For more cumbersome scenarios, you could setup a rogue SIP proxy and
configure it accordingly to what you need, though for this case, what Saúl
suggets is more efficient.
In your lab and for "*playing with packets*", you may want to inject or mix
sound into the calls (at the RTP level) once they are established. You could
use rtpinsersound or rtpmixsound, from Mark D. Collier and Mark O'Brien, or
at least you could reuse their code to do whatever you want.
Regards,
Alexis
2010/7/10 Saúl Ibarra Corretgé <saghul at gmail.com>
> Hi Robin,
>
> On Sat, Jul 10, 2010 at 10:46 AM, Robin Wood <robin at digininja.org> wrote:
> > I'm thinking of putting Asterisk and a few virtual machines with soft
> > phones in my lab but for the soft phones to work they will need access
> > to a handset. I could get hold of a few real handsets and share them
> > over USB to each machine so each one has a real handset but I was
> > wondering, if the clients are running on linux, is there a way to set
> > up a device that I can just cat an mp3 or wav to to simulate someone
> > talking?
> >
> > The goal of the idea is to have a script which will sit on both sides
> > of the call and either at intervals, or randomly, inject some noise
> > into the call so I can concentrate on capturing and playing with
> > packets and not have to worry about making real noise into real
> > microphones.
> >
> > Can it be done?
> >
>
> Sure, you may want to try pjsua (http://www.pjsip.org) it's a complete
> command line based SIP softphone. You can instruct it to auto answer
> and play a file.
>
> If you want complex scenarios you may want to use SIPp
> (http://sipp.sourceforge.net/). With it you can create a XML scenario
> describin the behavior you want and it can stream files in pcap
> format.
>
>
> Regards,
>
> --
> /Saúl
> http://saghul.net | http://sipdoc.net
>
> _______________________________________________
> Voipsec mailing list
> Voipsec at voipsa.org
> http://voipsa.org/mailman/listinfo/voipsec_voipsa.org
>
More information about the Voipsec
mailing list