Re: [Sofia-sip-devel] How to generate a initial local SDP using sofia-sip API?

2011-03-30 Thread Kai.Vehmanen
Hi,

On 30 March, hlidea...@gmail.com wrote: 
> initial SDP. In most examples, the local SDP is hard coded like:
> static int priv_static_capabilities_base(SscMedia *sscm, char **dest)
> {
>   if (dest)
> *dest = g_strdup("v=0\nm=audio 0 RTP/AVP 0\na=rtpmap:0 PCMU/8000");

btw, telepathy-rakia  (formerly telepathy-sofiasip) provides
a more complicated example of how to generate the local SDP in
a more dynamic fashion (depending on which codecs are available/configured):

http://cgit.freedesktop.org/telepathy/telepathy-rakia/tree/rakia/media-session.c#n1759

But yup, still using the same mechanism.

> I guess I can generate a local SDP using sprintf by printing the v=,
> m= lines, but I want to know are there any other ways to get the local
> SDP message by sofia-sip APIs?I mean using the APIs to generate the
> v=, m=, a= lines. Thanks.

That's a good question. In short, no, there's really not much 
support for generating SDP element by element. The SDP module does provide 
a parser and printer, but support for modifying the parsed SDP is fairly
limited:
http://sofia-sip.sourceforge.net/refdocs/sdp/index.html

So at least I've found it much easier to just create the template 
SDP as text and fill in the needed dynamic elements. In theory the SDP 
module could be extented, but I'm not sure if it's a worthwhile
effort... :P

Br,
Kai Vehmanen


--
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
___
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel


[Sofia-sip-devel] ANN: sofsip-cli moved to git

2011-03-30 Thread Kai.Vehmanen
Hello all,

I just pushed the full sofsip-cli repo from darcs to a new
git tree at:
https://gitorious.org/sofia-sip/sofsip-cli

PS The old darcs repo still at http://sofia-sip.org/repos/sofsip-cli/, but
   won't be updated anymore.

Br,
Kai Vehmanen


--
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
___
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel


[Sofia-sip-devel] NOTIFY sip frag set to 503 when receiving 407 Invite response

2011-03-30 Thread Nauman Sulaiman
Hi, when performing an attended transfer, when the transfer destination sends a 
407 to the INVITE with replaces generated by transferee, a NOTIFY with 503 
sipfrag is sent to the transferrer. Code is here in nua_session.c
in function nh_referral_respond. The transfer destination is in different
domain. The resulting NOTIFY 503 sent to the transferrer makes him think the 
transfer has failed rather than just being in progress. Is there some reason 
for this or is it a bug?


if (status >= 300)
status = 503, phrase = sip_503_Service_unavailable;

  snprintf(payload, sizeof(payload), "SIP/2.0 %03u %s\r\n", status, phrase);

  if (status < 200)
substate = "active";
  else
substate = "terminated ;reason=noresource";

  nua_stack_post_signal(ref->ref_handle,
nua_r_notify,
SIPTAG_EVENT(ref->ref_event),
SIPTAG_SUBSCRIPTION_STATE_STR(substate),
SIPTAG_CONTENT_TYPE_STR("message/sipfrag"),
SIPTAG_PAYLOAD_STR(payload),
TAG_END());

 
Regards


  

--
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
___
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel


Re: [Sofia-sip-devel] Problems with sofsip (not sending RTP)

2011-03-30 Thread Kai.Vehmanen
Hi,

On 23 Mar 2011, Leandro Lucarella wrote:
> But I'm having an error, which I can't figure out how to fix. In one of
> the clients (I'm running 2 clients in different boxes) I get this
> error:
[...]
> ** (:29971): CRITICAL **: priv_update_tx_elements: assertion 
> `self->sm_udpsink != NULL' failed

that's actually not necessarily fatal (yeah, should not really be
an assertion). Based on logs, the call is succesfully setup, so
you should be able to see RTP packets flowing.

My guess is that something is wrong with how gstreamer
pipeline interacts with your (ALSA) sound device. sofsip-cli
does not have any diagnostics for this, so you need to use
gstreamer debugging to figure out what is happening. To get
started, take a look at:
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gst-running.html
.. and the various GST_DEBUG options.

Br,
Kai Vehmanen


--
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
___
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel


Re: [Sofia-sip-devel] NOTIFY sip frag set to 503 when receiving 407 Invite response

2011-03-30 Thread Pekka Pessi
Hi,

2011/3/30 Nauman Sulaiman :
> Hi, when performing an attended transfer, when the transfer destination sends 
> a 407 to the INVITE with replaces generated by transferee, a NOTIFY with 503 
> sipfrag is sent to the transferrer. Code is here in nua_session.c
> in function nh_referral_respond. The transfer destination is in different
> domain. The resulting NOTIFY 503 sent to the transferrer makes him think the 
> transfer has failed rather than just being in progress. Is there some reason 
> for this or is it a bug?

I think it is a bug, the stack should check if the request is restartable.

--Pekka

-- 
Pekka.Pessi mail at nokia.com

--
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
___
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel


[Sofia-sip-devel] Integrating sofia with other event loop libraries

2011-03-30 Thread Leandro Lucarella
Hi, I noticed sofia has its own event loop and there is integration with
glib event loop. It is possible (and easy) to integrate sofia with other
event loop libraries? I'm interested in integrating it with libev
specifically.

If not (possible or easy ;), is it sofia thread-safe? Can I enqueue
sofia events into my own loop and thus do the processing in another
thread (calling sofia API from another thread, different from where
sofia event loop is running)?

Thanks for the info.

-- 
Leandro Lucarella
Integratech S.A.
4571-5252

--
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
___
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel


[Sofia-sip-devel] Setting sofia-sip Source Port

2011-03-30 Thread Jerry Richards
Hello,

I am setting my contact address to specify port 5061 (for TLS), but a wireshark 
trace shows the message being sent with a source port of 1025.  This is 
confusing the Redcom server.  How can I make sofia-sip send the message with 
the same port as is in the contact header?

Thanks,
Jerry
--
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
___
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel