[sip-comm-dev] CallHold


#1

Hey all,

I try to implement the call hold method into SIP communicator. I have a
question about the SDP description.

Let's imagine that there are 2 users (user1 / user2).

When user1 wants to put in hold his communication with user2 , i get the SDP
description of the user2 (to be able to do a Re-Invite).

For example i get :

    v=0
    o=user2 0 0 IN IP4 192.168.0.35
    s=-
    c=IN IP4 213.192.59.91
    t=0 0
    m=audio 41476 RTP/AVP 97 3 0 110 5 8 4
    m=video 41478 RTP/AVP 34 26
    a=recvonly
    a=nortpproxy:yes

I have to add the attribute "a=sendonly" according to the RFC of SIP.

Now, my question. What should i do?
should i keep the "a=recvonly" attribute or should i replace it by
"a=sendonly"?

By the way, i don't understand where the attribute "a=recvonly" comes from.
The reason is that I only established a call before getting my example SDP.
So the attribute should be "a=sendrecv".

I hope everything is comprehensible :).

thanks for your help.


#2

Hi,

about the attribute "a=recvonly" its for the video, as you don't have video capture device.
You can see the attribute is added in CallSessionImpl at line 1040.

Cheers,
damencho

T M wrote:

···

Hey all,

I try to implement the call hold method into SIP communicator. I have a question about the SDP description.

Let's imagine that there are 2 users (user1 / user2).

When user1 wants to put in hold his communication with user2 , i get the SDP description of the user2 (to be able to do a Re-Invite).

For example i get :

    v=0
    o=user2 0 0 IN IP4 192.168.0.35 <http://192.168.0.35>
    s=-
    c=IN IP4 213.192.59.91 <http://213.192.59.91>
    t=0 0
    m=audio 41476 RTP/AVP 97 3 0 110 5 8 4
    m=video 41478 RTP/AVP 34 26
    a=recvonly
    a=nortpproxy:yes

I have to add the attribute "a=sendonly" according to the RFC of SIP.

Now, my question. What should i do?
should i keep the "a=recvonly" attribute or should i replace it by "a=sendonly"?

By the way, i don't understand where the attribute "a=recvonly" comes from. The reason is that I only established a call before getting my example SDP.
So the attribute should be "a=sendrecv".

I hope everything is comprehensible :).

thanks for your help.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net