• getaddrinfo()

    From Bill Cunningham@110:110/2002 to All on Wed Mar 19 01:16:30 2014
    Would using getaddrinfo() be suggested by most. I want to send packets
    or pings to my ISP's network to see if they have SessionInitiationProtocol over UDP or maybe over SCTP would be better. But that's port 5060. How would
    I go about writing a simple handshake to get a response from a SIP service? Then I can worry about RTP and RTCP.

    Bill



    --- MBSE BBS v1.0.1 (GNU/Linux-i386)
    * Origin: A noiseless patient Spider (110:110/2002@linuxnet)
  • From Chris Davies@110:110/2002 to All on Wed Mar 19 09:32:28 2014
    Reply-To: chris@roaima.co.uk

    Bill Cunningham <nospam@nspam.invalid> wrote:
    How would I go about writing a simple handshake to get a response from
    a SIP service?

    You could take a look at ekiga, linphone, twinkle, or any of the other
    VoIP applications for which source is available.

    Chris

    --- MBSE BBS v1.0.1 (GNU/Linux-i386)
    * Origin: Roaima. Harrogate, North Yorkshire, UK (110:110/2002@linuxnet)
  • From Jorgen Grahn@1:0/0 to All on Wed Mar 19 15:57:40 2014
    On Wed, 2014-03-19, Bill Cunningham wrote:
    Would using getaddrinfo() be suggested by most.

    Yes, I highly recommend it. But I don't see the connection
    to the rest of your question? It doesn't implement any kind of
    handshaking for you: it just does name resolution and sets up
    data structures for you.

    I want to send packets
    or pings to my ISP's network to see if they have SessionInitiationProtocol over UDP or maybe over SCTP would be better. But that's port 5060. How would I go about writing a simple handshake to get a response from a SIP service? Then I can worry about RTP and RTCP.

    /Jorgen

    --
    // Jorgen Grahn <grahn@ Oo o. . .
    \X/ snipabacken.se> O o .

    --- MBSE BBS v1.0.1 (GNU/Linux-i386)
    * Origin: The Kofo System II BBS telnet://fido2.kofobb
  • From Bill Cunningham@110:110/2002 to All on Wed Mar 19 19:25:35 2014
    Jorgen Grahn wrote:
    On Wed, 2014-03-19, Bill Cunningham wrote:
    Would using getaddrinfo() be suggested by most.

    Yes, I highly recommend it. But I don't see the connection
    to the rest of your question? It doesn't implement any kind of
    handshaking for you: it just does name resolution and sets up
    data structures for you.

    I want to send packets
    or pings to my ISP's network to see if they have
    SessionInitiationProtocol over UDP or maybe over SCTP would be
    better. But that's port 5060. How would I go about writing a simple
    handshake to get a response from a SIP service? Then I can worry
    about RTP and RTCP.

    /Jorgen

    Well I am trying to learn the API for sockets. The rest of my question deals with looking at audio or visual packets of RTP and RCTP. And SIP I
    also ask whether or not SIP would be better to run on SCTP or UDP.

    Bill



    --- MBSE BBS v1.0.1 (GNU/Linux-i386)
    * Origin: A noiseless patient Spider (110:110/2002@linuxnet)
  • From Jorgen Grahn@1:0/0 to All on Wed Mar 19 21:12:34 2014
    On Wed, 2014-03-19, Bill Cunningham wrote:
    Jorgen Grahn wrote:
    On Wed, 2014-03-19, Bill Cunningham wrote:
    Would using getaddrinfo() be suggested by most.

    Yes, I highly recommend it. But I don't see the connection
    to the rest of your question? It doesn't implement any kind of
    handshaking for you: it just does name resolution and sets up
    data structures for you.

    I want to send packets
    or pings to my ISP's network to see if they have
    SessionInitiationProtocol over UDP or maybe over SCTP would be
    better. But that's port 5060. How would I go about writing a simple
    handshake to get a response from a SIP service? Then I can worry
    about RTP and RTCP.

    Well I am trying to learn the API for sockets. The rest of my question deals with looking at audio or visual packets of RTP and RCTP. And SIP I also ask whether or not SIP would be better to run on SCTP or UDP.

    Ok, then I suggest you ask different, unrelated questions in different postings. It's easy to get confused otherwise.

    /Jorgen

    --
    // Jorgen Grahn <grahn@ Oo o. . .
    \X/ snipabacken.se> O o .

    --- MBSE BBS v1.0.1 (GNU/Linux-i386)
    * Origin: The Kofo System II BBS telnet://fido2.kofobb