WEB Based SIP Phone With Flex, Java and Red5 Server

Posted: June 5, 2008 in Flash, Flex, Open Source
Tags: , , , , ,

SIP

SIP (Session Initiation Protocol) is the most popular Voice over IP (VoIP) standard. SIP enables two or more people to make phone calls to each other using the Internet to carry the call.

By using the Internet, you gain some distinct advantages over traditional telephone calls or PSTN (Public Switched Telephone Network):

  • Call quality: SIP calls on broadband are digital quality calls across the street or across the globe.
  • Cost: SIP to SIP calls are always free and calls to old PSTN phones are very inexpensive with no taxes or monthly fees.
  • Features: Because SIP calls are part of the Internet you get great features like free voicemail to email and phone numbers from many places in the world no matter where you live.

There are lot of sip phone is available in the internet, but all are application software which we want to install in system. This make lot of trouble ex: port problem as like that.

Using Flex, Java and Red5 Server we can develop Web Sip Application. The main advantage of these phone is no need to install at client side. Simply we can browse application and we can register and make call.

Steps to setup these Application.

1) Install Red5 Server

You can Download from these site RED5 Download Link

2) Download sip.zip file from following link and unzip it, move the sip folder to webapps (where u installed Red5 Server path)

SIP Application for Standalone Red5 Server is http://red5.4ng.net/sip.zip.

You will need to replace version 0.7 red5.jar with the latest from SVN or this http://red5.4ng.net/red5.jar

Check the Red5 server( Start service of Red5 Server if it is not start)

Run red5phone application with http://localhost:5080/sip

These Diagram show working flow of sip phone with web browser.

Sip Phone Using Flex and Java

Orgin from

Click here to known more about SIP

To Get SIP Service Click here – MPINGI

About these ads
Comments
  1. wscholar says:

    Please contact me to discuss SIP phone / Flex / Red 5 we’re interested in getting this running.

    wscholar@getabby.com

  2. gouriprasad says:

    Hi Wscholer,

    I am getting an error(Exception in thread “main” java.lang.ClassNotFoundException: org.mortbay.jetty.Server) when I keep the red5.jar file.

    Please help me out in solving the issue.

    Thanks,
    Gouri Prasad.

  3. dammalapati says:

    The procedure given in the document is not working for Linux machines. I tried to replace the existing red5.jar file with on given in the document, the Red5 was not even able to run. I tried the whole document in Red5 0.8 version as Red5 0.7 version has build failures. Is this causes any issue?

  4. venkatkrishna2008 says:

    Hi ,
    THe procedure given is working in windows Xp but the same is not working for the windows server 2003,
    after adding the new jar the red5 throws an exception while start up .
    [main] INFO org.springframework.beans.factory.support.DefaultListableBeanFa
    ctory – Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactor
    y@105b99f: defining beans [placeholderConfig,red5.server,jmxFactory,jmxAgent,serializer,deserializer
    ,statusObjectService,rtmpCodecFactory,remotingCodecFactory,videoCodecFactory,streamableFileFactory,f
    ilePersistenceThread,sharedObjectService,streamService,providerService,consumerService,BWControlServ
    ice,schedulingService,remotingPool,remotingClient,object.cache,keyframe.cache,flv.impl,flvreader.imp
    l,mp3reader.impl,org.springframework.beans.factory.config.MethodInvokingFactoryBean,org.springframew
    ork.beans.factory.config.MethodInvokingFactoryBean#1,streamExecutor,playlistSubscriberStream,clientB
    roadcastStream]; root of factory hierarchy

    Exception in thread “main” java.lang.ClassNotFoundException: org.mortbay.jetty.Server
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at org.springframework.util.ClassUtils.forName(ClassUtils.java:229)
    at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(Abstrac
    tBeanDefinition.java:327)
    at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBe
    anFactory.java:1073)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingle
    tons(DefaultListableBeanFactory.java:283)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicatio
    nContext.java:352)
    at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApp
    licationContext.java:122)
    at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApp
    licationContext.java:66)
    at org.red5.server.net.rtmpt.RTMPTLoader.init(RTMPTLoader.java:82)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustom
    InitMethod(AbstractAutowireCapableBeanFactory.java:1242)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMe
    thods(AbstractAutowireCapableBeanFactory.java:1208)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBe
    an(AbstractAutowireCapableBeanFactory.java:1172)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(A
    bstractAutowireCapableBeanFactory.java:427)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFac
    tory.java:249)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(Defau
    ltSingletonBeanRegistry.java:155)

    Please help me to resolve the problem .

  5. krishnakishu says:

    When executing the sip application, it is giving error “phoneError netconnection:undefined”. Could you help me?

  6. gorankrs says:

    I could not find http://red5.4ng.net/sip.zip and http://red5.4ng.net/red5.jar .
    Anybody to help me ?

  7. pariyarathna says:

    hi
    can any body tell me from where i can get the sip.zip package . the above given link does not work

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s