Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8620707
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T06:38:39+00:00 2026-06-12T06:38:39+00:00

I am working on a application on MEGACO protocol on Controller side. I am

  • 0

I am working on a application on MEGACO protocol on Controller side. I am sending MEGACO messages to the Media Gateway via UDP prptocol. And the Media gateway is answering the requests. When I run wireshark with specified port and IP filter wireshark shows all the captured MEGACO packets. But in my application (written in JAVA) some of the packets are not reaching. More specifically saying to my application only Transaction Reply and Transaction Reply Acknowledgement (Reference: RFC 3015) messages are not reaching.

I have tried a lot of permutations and combinations. Even I have allocated new Datagram Packet and buffer space for each receiving messages as test. But no result. My code for the udp receiver is following.

while (running) {
        //do work here
        try {
            byte[] dpBuffer = new byte[MAX_BUFFER_SIZE];
            DatagramPacket dp = new DatagramPacket(dpBuffer, MAX_BUFFER_SIZE);
            this.socket.receive(dp);
            byte[] temp = new byte[dp.getLength()];
            System.arraycopy(dp.getData(), 0, temp, 0, dp.getLength());
            System.out.println("Read data");
            for(int i=0;i<temp.length;i++)
            {
                System.out.print((char)(temp[i]));
            }
            ByteArrayUtil msg = new ByteArrayUtil(temp, dp.getLength());
            msgParser.parseMsg(msg);
        } catch (Exception e) {
            logger.error("Megaco Reader Failed to read Packet due to :" ,e);
        }
    }

Any help??

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T06:38:40+00:00Added an answer on June 12, 2026 at 6:38 am

    THanks E_net4.

    As I have mentioned in my comment, I was using wrong filter in wireshark. in wireshark if you use only

    "udp.port == x" 
    

    as the filter it will filter those packets having either source or destination port x. To filter those packets that have either source port == x or destination port ==x, you should use udp.srcport == x and udp.destport==xrespectively.
    Thanks everyone.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an working application. Now I want to change the table names of
I have a working application using python and zeromq and I would like to
I've got (working) application done with ttk. It uses self-created module for showing a
I am working on splitting out an existing, working application that I currently have
I've try to implement integration tests for a working application (spring, hibernate, soap, cxf).
I am working on application for Ipad.in this application i have a UIButton on
I am working an application having I18N support. In this application, based on user's
I'm working on application and I want to connect it to facebook. The user
i am working in application of twitter in flex 3 and action script 3
I am working on application which needs to be authenticated in different domain. To

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.