powered by Jive Software

Useing jingle to implement voice chat,which can not work Internet to Intern

i use jingle to implement voice chat in my own application.It work well in LAN,however ,it can not work from internet to internet. for example :user A call user B .Use B can receive this call,but the call closed immri use openfire 3…3.0 as my server.

Service listing

Listening for ECHO: 172.19.194.175:19080

Initializing…Resolved

1

1

UpdatePacketListener

Jingle:

1

BS:gsm

Jingle:

2

3

4

5

6

7

8

9

State: org.jivesoftware.smackx.jingle.OutgoingJingleSession$Pending@1833eca

REMOVE PACKET LISTENER

Negotiation Closed: ldy@scm.net.cn/Smack 5061046703175759

Hi,everyone,my voice chat application can work interner to lan ,or in one lan,but can not work from LAN to LAN.Help me Please!!

Same problem here

Hello,

Can you check if there is a firewall or port restriction for UDP traffic between LANs ?

Cheers,

Thiago

Hi Thanks for the quick reply,

Well, I don’t know about advance configuration on our router, I just set it up for basic internet connection but I can tell you the detail. We’ve been using Linksys WRT54G and I checked the access restriction, there’s no filter specified. Our internal network is running on 192.168.2.0 range.

(i)Here’s the snippit of my code for more information:

private void initialize(){

  •    ICETransportManager icetm0 = new ICETransportManager(connection, "", 3478);+
    
  •    JmfMediaManager jmedia=new JmfMediaManager();+
    
  •    jm = new JingleManager(connection,icetm0,jmedia);+
    
  •    jm.addCreationListener(icetm0);+
    
  •    jm.addJingleSessionRequestListener(this);+
    
  • }+

public void callOut(String jid) {

  •    // TODO Auto-generated method stub+
    
  •      if (outgoing == null)+
    
  •        try {+
    
  •            System.out.println("Calling out : " + jid);+
    
  •            outgoing = jm.createOutgoingJingleSession(jid);+
    
  •            outgoing.start();+
    
  •        }+
    
  •        catch (XMPPException e1) {+
    
  •            e1.printStackTrace();+
    
  •        }+
    
  •        catch(Exception e){+
    
  •            e.printStackTrace();+
    
  •        }+
    
  •        finally {+
    
  •            outgoing = null;+
    
  •        }+
    
  • }+

Thanks,

Tony

Hi Thanks for the quick reply,

Well, I don’t know about advance configuration on our router, I just set it

up for basic internet connection but I can tell you the detail. We’ve been

using Linksys WRT54G and I checked the access restriction, there’s no filter

specified. Our internal network is running on 192.168.2.0 range.

(i)Here’s the snippit of my code for more information:

private void initialize(){

  • ICETransportManager icetm0 = new ICETransportManager(connection, “”,

3478);+

  • JmfMediaManager jmedia=new JmfMediaManager();+

  • jm = new JingleManager(connection,icetm0,jmedia);+

  • jm.addCreationListener(icetm0);+

  • jm.addJingleSessionRequestListener(this);+

  • }+

public void callOut(String jid) {

  • // TODO Auto-generated method stub+

  • if (outgoing == null)+

  • try {+

  • System.out.println("Calling out : " + jid);+

  • outgoing = jm.createOutgoingJingleSession(jid);+

  • outgoing.start();+

  • }+

  • catch (XMPPException e1) {+

  • e1.printStackTrace();+

  • }+

  • catch(Exception e){+

  • e.printStackTrace();+

  • }+

  • finally {+

  • outgoing = null;+

  • }+

  • }+

Thanks,

Tony