Re: [Sofia-sip-devel] register time-out

2011-08-19 Thread Pekka Pessi
Hi, 2011/8/19 Nick Knight : > I have a client which registers against a server fine. The server > imposes a register at 3600 which turns up in the expires field. Sofia > then tries to register at aruond 1800, which is too much before what > the server will allow. > > How is this controlled? Why is

Re: [Sofia-sip-devel] Sofia-Sip Supported RTP Stack

2011-08-19 Thread Pekka Pessi
Hi, 2011/8/18 Meftah Tayeb : > do sofia include a RTP stack ? > how can i integrate existing RTP stack with Sofia ? Please see sofsip-cli for an example of integrating a media stack with Sofia SIP. > and if RTP stack is integrated/supported, what codecs are supported ? > can i inject aditional c

Re: [Sofia-sip-devel] Registration authentication problem - 904 No matching challenge

2011-08-19 Thread Pekka Pessi
Hi Laurent, 2011/8/1 Laurent Lecigne : > I am currently stuck trying to get a Sofia SIP agent to properly register to > a registrar (Open IMS core). > Whenever the agent gets challenged it does not reattempt to provide its > credentials : the registration keeps failing. > > Basically, a nua_auth

Re: [Sofia-sip-devel] Possible Memory Leak if INVITE was not succesfully.

2011-08-18 Thread Pekka Pessi
Hi Stefan, 2011/7/13 Stefan Opfermann : > we have an application based on Sofia SIP 1.12.11 which uses directly INVITE > methods between two SIP User Agents without a REGISTER server. > > In the case that the User is still busy or the caller not allowed to call ( > "404 Not found" etc. ), we hav

Re: [Sofia-sip-devel] tport_check_trunc() issue

2011-08-18 Thread Pekka Pessi
Hi Arsen, 2011/7/13 Arsen Chaloyan : > Although this is a typical race condition issue, it still seems pretty > harmless as the goal of this function is to set tp->tp_trunc which isn't > used currently. To get rid of this message, I have just commented out > tport_check_trunc() but wanted to know

Re: [Sofia-sip-devel] Problem with sofia codec selection

2011-08-18 Thread Pekka Pessi
Hi, 2011/7/12 Olivier Deme : > Is it possible to configure sofia to pick a selection of codecs based > on the SDP offered by the network and the SDP specified in > nua_respond, rather than picking a single codec? Use SOATAG_RTP_SELECT(SOA_RTP_SELECT_COMMON). -- Pekka.Pessi mail at nokia.com --

Re: [Sofia-sip-devel] bug fix in su_time0.c for MacOS X 64bit

2011-08-18 Thread Pekka Pessi
2011/7/11 Frode Isaksen : > There is a bug in su_time0.c for MacOS X 64bit since the field tv_sec in > struct timeval is 64bits instead of 32bits as in su_time_t, so you cannot > cast su_time_t to struct timeval. This patch fixes this: Thanks. I've applied the patch. -- Pekka.Pessi mail at nok

Re: [Sofia-sip-devel] PRACK and 200 OK(INVITE) forking issue

2011-08-18 Thread Pekka Pessi
Hi Nauman, 2011/7/1 Nauman Sulaiman : > We are handling all media (SDP) ourselves and have set PRACK to be one of the > methods our app handles. We are using the nua API. > > Can Pekka or someone say whether PRACK and forking is supported with the way   > we are using the Stack. We've seen some p

Re: [Sofia-sip-devel] auto nua_ack with bad UIR (without destination port)

2011-08-18 Thread Pekka Pessi
Hi Ivan, 2011/7/13 Иван Чистяков : > I send INVITE to SLFphone and recv responce 100/180/200 with bad > Contact header (without port). > And sofia stack trying to send auto ACK with this bad Contact header > (without port). > SLFphone can use non standart port, but stack trying to use default port

Re: [Sofia-sip-devel] ipv4/ipv6 issues

2011-08-18 Thread Pekka Pessi
Hi Florian, 2011/6/29 Florian Limberger : ... > When an ipv6 client initiates a call to a ipv4 client the call is > properly established!! > If ipv4 calls ipv6, the final ACK is not sent. ... > Probably, this has something to do with the Contact header, which > contains the transport address

Re: [Sofia-sip-devel] Segmentation Fault After BYE 407 Proxy Authentication

2011-08-18 Thread Pekka Pessi
Hi Jerry, 2011/6/23 Jerry Richards : > One more thing on this.  The segmentation fault was due to the assert() > function crashing in my phone.  This was not caused by sofia-sip.  But the > additional comparison to sip_method_bye should be added to sofia-sip so the > assert() does not cause a prin

Re: [Sofia-sip-devel] 'Network error' on FreeBSD: how to debug?

2011-08-18 Thread Pekka Pessi
Hi Yuri, 2011/6/19 Yuri : > On 06/18/2011 17:50, Yuri wrote: >> recvfrom call retrieving result for DNS query never receives the result >> for some reason. >> > > I found bug in code resolving the sip-dig hang: > in file sres_blocking.c lines >       if (c->block->fds[i].revents | POLLERR) >      

Re: [Sofia-sip-devel] How to remove Supported header from outgoing request.

2011-08-18 Thread Pekka Pessi
Hi Inca, 2011/6/22 Inca Rose : > I'm using NUA and I see that by default the Supported header is sent with > "timer, 100rel" > I want to control the supported header contents and find out that > NUATAG_SUPPORTED only adds supported values, and only SIPTAG_SUPPORTED can > override it. > I want t

Re: [Sofia-sip-devel] Invite with Multipart content

2011-08-18 Thread Pekka Pessi
Hi Harinath, There is no decent API for sending MIME multipart from nua at the moment. Currently, if nua notices that there is a payload, it won't touch it. I have some doubts regarding encoding of multipart (iow, it won't work.) I have some ideas about the API, like including an empty SDP within

Re: [Sofia-sip-devel] NUTAG_WITH and BYE

2011-06-14 Thread Pekka Pessi
Hi Vladimir, 2011/6/9 Vladimir Luchko : > Can I answer to the incoming BYE with 200 ok from the application without > using NUTAG_WITH? > I`ve init nua with NUTAG_AUTOANSWER(0) and NUTAG_APPL_METHOD("BYE"). Than > I got nua_i_bye event. I want to answer 200 > with nua_resopnd(nh, 200, NULL, NUTAG_

Re: [Sofia-sip-devel] tls_connect() Invoked On Every Outbound INVITE

2011-06-14 Thread Pekka Pessi
Hi Jerry, 2011/6/9 Jerry Richards : > Anyone know why sofia-sip would re-establish a TLS connection for every > outbound INVITE?  That's what I see happening.  Logs are shown below, after > calling nua_invite() while a TLS connection was already establised (Note: > you'll probably see some extra l

Re: [Sofia-sip-devel] one nua, multiple accounts

2011-06-03 Thread Pekka Pessi
Hi Luca, 2011/6/1 Luca Olivetti : >>> BTW, the documentation says that sofia-sip will generate the contact using >>> the provided NUTAG_M_USERNAME, an equal sign and a random string, but it >>> doesn't seem to be the case, so I didn't bother checking for the presence >>> of an equal sign and strip

Re: [Sofia-sip-devel] one nua, multiple accounts

2011-06-01 Thread Pekka Pessi
Hi Luca, 2011/6/1 Luca Olivetti : > BTW, the documentation says that sofia-sip will generate the contact using > the provided NUTAG_M_USERNAME, an equal sign and a random string, but it > doesn't seem to be the case, so I didn't bother checking for the presence > of an equal sign and stripping the

Re: [Sofia-sip-devel] sofia-sip SBC reference

2011-06-01 Thread Pekka Pessi
Hi, 2011/5/27 Vladimir Luchko : > In libsofia-sip-ua/msg/msg_tag.c : msgobjtag_dup() we can see: > > --- >   memset(mo, 0, omo->msg_size); >   mo->msg_size = omo->msg_size; >   mo->msg_flags = omo->msg_flags; > >   if (mo->msg_request) >     o = mo->msg_request; >   else >     o = mo->msg_status;

Re: [Sofia-sip-devel] [patch] session compare

2011-06-01 Thread Pekka Pessi
Hi Vladimir, 2011/5/26 Владимир Лучко : > There is a patch. There is a some typo in session compare code. > I don`t realy sure aboute patched code version - but patch is not very big Applied. Thanks for the patch. -- Pekka.Pessi mail at nokia.com ---

Re: [Sofia-sip-devel] one nua, multiple accounts

2011-06-01 Thread Pekka Pessi
Hi Luca, 2011/5/29 Luca Olivetti : > If in nua_register I use NUTAG_M_USERNAME, can I be sure that the proxy will > use it as a "Contact:" for every incoming request? > If that's the case, I no longer need to rely on the "To:" header. Yes, NUTAG_M_USERNAME is best way to implement an user agent w

Re: [Sofia-sip-devel] No ACK sent after PRACK and CANCEL

2011-05-25 Thread Pekka Pessi
Hi Inca, 2011/5/24 Inca Rose : > I work at the NUA level so > NTATAG_UA(1) is set internally by nua_create() I've added test cases to nta and nua testing this scenario, and the tests seem to pass. Please give the latest master from gitorious.org a try:

Re: [Sofia-sip-devel] No ACK sent after PRACK and CANCEL

2011-05-24 Thread Pekka Pessi
Hi, 2011/5/24 Pekka Pessi : > 2011/5/20 Inca Rose : >> We are experiencing a strange behavior in the following scenario: >> >> A: Using Sofia SIP stack >> >> >> A ---> INVITE >> A <--  183 with RSeq >> A > PRACK >>

Re: [Sofia-sip-devel] No ACK sent after PRACK and CANCEL

2011-05-24 Thread Pekka Pessi
Hi Inca, 2011/5/20 Inca Rose : > We are experiencing a strange behavior in the following scenario: > > A: Using Sofia SIP stack > > > A ---> INVITE > A <--  183 with RSeq > A > PRACK > A <--- OK ( PARCK ) > A <--- 180 > A --> CANCEL > A <-- OK ( Cancel ) > A

Re: [Sofia-sip-devel] MSRP Support

2011-05-20 Thread Pekka Pessi
Hi, 2011/5/3 Ubuntu Explorer : > Are there any plans to add MSRP support to Sofia SIP in the roadmap? We might add support for the SDP negotiation for setting up MSRP, but I see no MSRP implementation ahead. However, feel free to contribute. ;) -- Pekka.Pessi mail at nokia.com

Re: [Sofia-sip-devel] Early dialog not working after Update method

2011-05-19 Thread Pekka Pessi
Hi Matteo, 2011/5/17 Matteo : > going on with debug, the issue is that outgoing_find does not > check for different to_tag in provisional response. > > I've created a patch that "works for me" which > handles different to_tag in provisional responses and > manage RSeq in right way if to_tag change

Re: [Sofia-sip-devel] How to know remote hold in nua_i_invite event?

2011-05-03 Thread Pekka Pessi
Hi Chris, 2011/4/24 Chris : > In sofia-sip nua reference page, it indicates we can retrieve tags > SOATAG_ACTIVE_AUDIO() when we get a nua_i_invite event. It is useful > if I could use that tag to check remote holding events. However, I > found I can not get SOATAG_ACTIVE_AUDIO() in nua_i_invite e

Re: [Sofia-sip-devel] [PATCH] NUTAG_DETECT_NETWORK_UPDATES linux implementation

2011-04-21 Thread Pekka Pessi
Hi, 2011/4/20 Luca Olivetti : > the following patch adds support for NUTAG_DETECT_NETWORK_UPDATES for linux > (it's currently implemented only for OS-X). > C is not my primary language so there could be a more elegant way to do it. Thanks Luca. I'll try to incorporate this (and your other fixes)

Re: [Sofia-sip-devel] Sofia uses different Call ID upon 407 authentication required

2011-04-21 Thread Pekka Pessi
Hi, 2011/4/20 Olivier Deme > I am trying to send a SIP MESSAGE through a SIP proxy with authentication > turned on. > It doesn't work because after receiving a 407 proxy authentication > required, our application calls nua_authenticate and this results in SOFIA > re-sending the SIP MESSAGE with

Re: [Sofia-sip-devel] NUTAG_DETECT_NETWORK_UPDATES still unimplemented under linux?

2011-04-18 Thread Pekka Pessi
Hi Luca, 2011/4/18 Luca Olivetti : >> A2 = MD5(REGISTER:sip:ekiga.net) >> auth_response: db79b8a5046c76654b742311b7d4a33d = >> MD5(53060310bbad90036d54e1954983ae4e:4dab21dbe3306f1513e34e9e24eedc00a7827bd9394f:14bd7ed1967527d3770ab1f7c12901c5) >> (qop=NONE) >> svd: nta.c: 7785: outgoing_creat

Re: [Sofia-sip-devel] Sofia informs rtpmap non-existent in the sdp

2011-04-12 Thread Pekka Pessi
Hi, 2011/4/12 Alexsander Petry : > The sdp of answer: > >    v=0 >    o=2081 1298903400 1910755662 IN IP4 192.168.46.124 >    s=A_converstion >    c=IN IP4 192.168.46.124 >    t=0 0 >    m=audio 9000 RTP/AVP 18 >    a=rtpmap:18 G729/8000 >    a=ptime:20 >    a=fmtp:18 annexb=no >    m=video 0 RTP/

Re: [Sofia-sip-devel] Handling 486 Busy Here

2011-04-12 Thread Pekka Pessi
Hi, 2011/4/11 Manuel Argüelles : >> On client side, stack calls the ordinary response callback on client >> transaction. If the request method is INVITE and the response status >> is >= 300 (and the response is not internally generated), you know >> that stack will automatically send an ACK. >> >>

Re: [Sofia-sip-devel] Handling 486 Busy Here

2011-04-11 Thread Pekka Pessi
Hi, 2011/4/11 Manuel Argüelles : >> The ACK to error responses such as 486 is part of the transaction so >> NTA takes care of it. What kind of notification would you like to get? > Anything that notifies the program about this event will do. On client side, stack calls the ordinary response call

Re: [Sofia-sip-devel] Handling 486 Busy Here

2011-04-11 Thread Pekka Pessi
Hi, 2011/4/10 Manuel Argüelles : > I'm using an nta agent in a multi-thread application (proxy), I noticed that > during an invite transaction if the peer returns a 486 Busy Here code, sofia > sip seems to internally handle it and replies with an ACK, since the callback > function doesn't gets cal

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

2011-04-05 Thread Pekka Pessi
gt; -Original Message----- > From: Pekka Pessi [mailto:ppe...@gmail.com] > Sent: Monday, April 04, 2011 9:14 AM > To: Jerry Richards > Cc: sofia-sip-devel@lists.sourceforge.net > Subject: Re: [Sofia-sip-devel] Setting sofia-sip Source Port > > Hi Jerry, > > 2011/4/4 Jerry R

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

2011-04-04 Thread Pekka Pessi
Hi Jerry, 2011/4/4 Jerry Richards : > I temporarily got it working by patching the tport_tls_connect() function to > set  susa.su_port to 5061 (instead of setting it to 0).  I do use nua, so > I'll try NUTAG_OUTBOUND() as you suggest.  We have a requirement that TLS > connections must specifica

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

2011-04-04 Thread Pekka Pessi
Hi, 2011/3/31 Jerry Richards : > 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 cont

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

2011-04-04 Thread Pekka Pessi
Hi, 2011/3/30 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. Integration is possible, the

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. Th

Re: [Sofia-sip-devel] release & debug version of test_nua.exe run differently (sofia-sip-1.12.11)

2011-03-29 Thread Pekka Pessi
Hi Allen, 2011/3/25 Allen : > Thanks a lot for your reply. > > I have tried the --no-nat setting, the results are the same. > > Actually the log information I provided in my original email for Visual > studio 2003 release version is already the result with BOTH --no-nat AND > --no-proxy setting, o

Re: [Sofia-sip-devel] Anyone still using CVS?

2011-03-25 Thread Pekka Pessi
ge- > From: Pekka Pessi [mailto:ppe...@gmail.com] > Sent: Thursday, March 24, 2011 7:50 AM > To: Jerry Richards > Cc: sofia-sip-devel@lists.sourceforge.net > Subject: Anyone still using CVS? > > Hello all, > > Are there a a lot of people still using CVS? > >

[Sofia-sip-devel] Anyone still using CVS?

2011-03-24 Thread Pekka Pessi
Hello all, Are there a a lot of people still using CVS? As it is now, CVS is not really very useful in tracking the development, nor it is very useful in tracking releases as Jerry noticed. If there is no objections, I'll stop updating the CVS repo and try to remove the links to it from the Sour

Re: [Sofia-sip-devel] soatag_local_sdp_str_ref undeclared ('soa:remove duplicate definitions')

2011-03-24 Thread Pekka Pessi
Hi Erik, 2011/3/24 Erik Habicht : >> Looks like there was a bogus soatag_session_sdp_str_ref declaration >> instead of soatag_local_sdp_str_ref. >> > Yes ... adding SOFIAPUBVAR tag_typedef_t soatag_local_sdp_str_ref; also > solve the problem. > > Is SOFIAPUBVAR tag_typedef_t soatag_session_sdp_str

Re: [Sofia-sip-devel] Good TLS Hellos But No SIP REGISTER Sent

2011-03-24 Thread Pekka Pessi
Hi Jerry, 2011/3/22 Jerry Richards : > I am seeing an issue with TLS where the REGISTER message is not getting > sent.  The TLS Hello/Certificate exchange seems to always happens correctly > (which just precedes the REGISTER request).  The scenario is that it is > previously registered and then la

Re: [Sofia-sip-devel] Prack

2011-03-24 Thread Pekka Pessi
Hi Vikas, 2011/3/18 Vikas Bhat : > i am implenting early dialog in Sofia sip application using prack. > the application is stateless using NTA modul. > > my application send invite with Supported header,receives 183 with RSeq. > then the applcation tries to send the PRACK message as shown below bu

Re: [Sofia-sip-devel] Getting started: parsing a message

2011-03-24 Thread Pekka Pessi
Hi Bendan, 2011/3/21 Brendan Loudermilk : > As a weekend project I've begun to play around with Sofia-SIP. I'm using FFI > to build a simple Ruby interface to some of the lower-level functions in the > library. My first goal is to be able to parse arbitrary strings from a Ruby > networking library

Re: [Sofia-sip-devel] soatag_local_sdp_str_ref undeclared ('soa:remove duplicate definitions')

2011-03-24 Thread Pekka Pessi
Hi Erik, 2011/3/22 Erik Habicht : > while building against the new release 1.12.11 i got the following error: > > soatag_local_sdp_str_ref undeclared > > After i revert the changes in /libsofia-sip-ua/soa/sofia-sip/soa_tag.h > from from 'soa:remove duplicate definitions' the build finished without

Re: [Sofia-sip-devel] Version 1.12.11

2011-03-24 Thread Pekka Pessi
Hi Jerry, 2011/3/23 Jerry Richards : > I noticed the latest trunk still has the following line in the configure.ac > file: > AC_INIT([sofia-sip], [1.12.10devel]) > Shouldn't this line show 1.12.11? It seems to me that I have actively forgotten about CVS. I committed the release to CVS, too. --

Re: [Sofia-sip-devel] release & debug version of test_nua.exe run differently (sofia-sip-1.12.11)

2011-03-24 Thread Pekka Pessi
Hi Allen, 2011/3/23 Allen Guan : > I am new to this mail list. I have built sofia-sip-1.12.11 under XP > SP3 and tried the test programs. > > I have noticed strange behaviors of the test program test_nua.exe when > running in release version. I have tried to compiled with Visual > studio 2003, vis

[Sofia-sip-devel] ANN: sofia-sip-1.12.11

2011-03-11 Thread Pekka Pessi
Hi all, The Sofia-SIP release 1.12.11 is now available for download from SourceForge.net. Please find the release notes attached. -- Pekka.Pessi mail at nokia.com Release notes for Sofia SIP version 1.12.11 (2011-03-11) =

Re: [Sofia-sip-devel] Incoming REFER , how does app receive status of NOTIFYs

2011-03-07 Thread Pekka Pessi
Hi Nauman, 2011/2/10 Nauman Sulaiman : > Hi, Using latest Sofia master from git. When i get an incoming REFER the > stack sends NOTIFY's to the referror if i pass the event to the INVITE i > generate. This works very nicely. > > But how does the app know what NOTIFY's are being sent to the refer

Re: [Sofia-sip-devel] Setting return address/port for responses to INVITEs

2011-03-04 Thread Pekka Pessi
Hi Dan, 2011/2/15 Dan O'Donovan : > It is my understanding that, when Sofia gets an INVITE request, it saves the > host address/port from the UAC's Contact header and uses them to direct > responses (and other requests for that dialog) back to the UAC. > I'd like to be able to configure Sofia to u

Re: [Sofia-sip-devel] sofia sip stack 1.12.10 crashed in stateless mode

2011-03-04 Thread Pekka Pessi
Hi Kiran, 2011/2/26 kiran kumar : > In my application I am destroying the invite transaction (irq) after > receiving ack for 200 OK, > the ACK transaction (irq) immediately after receiving the ACK. > And that of BYE transaction (irq) after sending 200 OK. > I am using nta_incoming_destroy(irq) met

Re: [Sofia-sip-devel] sdp_rtpmap_find_matching doubt

2011-03-04 Thread Pekka Pessi
Hi Fransesco, 2011/2/27 Francesco Lamonica : > Hi all, i have a doubt regarding the aforementioned function > if i pass two sdp_rtpmap_t objects to that, i get as returned value a > new struct with all the codecs of the second one that follow the first > matching codec. is this correct? i kind of

[Sofia-sip-devel] ANN: release candidate 1 for sofia-sip-1.12.11

2011-03-04 Thread Pekka Pessi
Hello all, Long time no release. However, now I've put out a pre-release tar package available from sofia-sip.org: md5sum: 3c9dbb7dee430ccb5d1d0b088eef5516 sha1sum: a0da65f9e8031df1f016545dc83b9ff362760b35 sha256sum: 6c683625cf9c06

Re: [Sofia-sip-devel] Sofia Getting 900 Internal Error When SIPTAG_TO_STR("sip:7348902; rfrid=eaff000000221c6035b5@200.21.3.10")

2011-02-03 Thread Pekka Pessi
Hi Jerry, 2011/2/3 Jerry Richards : > Okay, I think I fixed it.  For some reason, sofia did not like when I set > both NUTAG_URL() in the nua_handle() call and also set SIPTAG_TO_STR() to > the same thing in the nua_invite() call.  So I removed specifying the > SIPTAG_TO_STR() in the nua_invite()

Re: [Sofia-sip-devel] How to retrieve the local bound SIP port when created dynamically? (as used in contact-header)

2011-02-03 Thread Pekka Pessi
Hi, 2011/1/31 EiSl 1972 : > I have the feeling the answer lays in front of my nose, but for some reason > I cannot find/see it... nua_get_params(.., NTATAG_CONTACT(NULL), TAG:END()) and look for ntatag_contact in the tag list of nua_r_get_params(). > I'm using the released stable version 1.12.10

Re: [Sofia-sip-devel] Multi home and sofia-sip

2011-01-26 Thread Pekka Pessi
Hi Inca, 2011/1/21 Inca Rose : >  What about the selection of Contact and Via and Transport on a multi-home > environment ? > I remember that the selection was not consistent, for example sending the > packet from NIC1 while selecting Via / Contact from NIC2. This is a problem that has no gener

Re: [Sofia-sip-devel] Sip messages truncated

2011-01-26 Thread Pekka Pessi
Hi Philippe, 2011/1/21 Philippe Maymat : > Since I allowed th multidialog sent in Notify, I received fragmented > messages and it seems that the message is truncated by th sofia SIP > stack because ethereal show all informations. Check the Content-Length from the ethereal, is it correct? It would

Re: [Sofia-sip-devel] [sofia-sip-devel] digest authorization using HA1 directly

2011-01-26 Thread Pekka Pessi
Hi Paulo, 2011/1/13 Paulo Vicentini : > Attached is hack to use HA1 with sofia-sip > Example: > nua_authenticate(nh, SIPTAG_EXPIRES_STR("3600"), NUTAG_AUTH(authentication), > TAG_END()) > > where authentication is string: Digest-HA1:"realm":user:HA1 I did it in a more complex way, so you should h

Re: [Sofia-sip-devel] Multi home and sofia-sip

2011-01-21 Thread Pekka Pessi
Hi Inca, 2011/1/14 Inca Rose : > Hi; > I remember there was a limitation with Sofia-SIP and multi-home hosts ( in my > case is a device ). > I do not remember if it was the Via header not populated correctly or the > transport was not selected correctly. > > There was any improvement in this are

Re: [Sofia-sip-devel] Format of contact header

2011-01-21 Thread Pekka Pessi
Hi Stefan, 2011/1/13 Stefan Eckel : > we are looking for a method to put transport tags into the contact header > field of an invite message. > With > > nua_invite(m_handle,   SIPTAG_CONTACT_STR( > "sip:100.100.100.100:5160;tansport=tcp" ) , > > we get > > Contact: ;transport=tcp If there

Re: [Sofia-sip-devel] Fighting SIP-ALG

2011-01-12 Thread Pekka Pessi
Hi Inca, 2011/1/11 Inca Rose : > During  a deployment with a service provider I come across several home based > routers that the SIP-ALG implementation is wrong. > the router changes the Contact IP address from the private to the public > during a REGISTER request, but do not change it back to

Re: [Sofia-sip-devel] Old version of sofia-sip

2011-01-11 Thread Pekka Pessi
Hi Khnykin, 2011/1/11 Khnykin Evgeniy : > I develop SIP-gateway for XMPP protocol. Gateway works on server which works > under "xen". > I can't build latest versions of sofia-sip on this server, so i've built > something like 1.10.x. > Everything works good, but now i must add P-Asserted-Identity 

Re: [Sofia-sip-devel] [sofia-sip-devel] digest authorization using HA1 directly

2011-01-10 Thread Pekka Pessi
Hi Paulo, 2010/12/18 Paulo Vicentini : > Thanks for your tips > If It uses a "Digest-HA1" scheme, it would need to receive the same from the > registrar server (matching schemes). It would be good to be server agnostic > (Digest) > int ca_credentials(... > ... ... > if ((scheme != NULL && !su_case

Re: [Sofia-sip-devel] [SOFIA NTA MODULE]- - ACK is not forwarded from STACK to APPLICATION

2011-01-10 Thread Pekka Pessi
Hi Manju, 2010/12/24 manju nath : >    Am using sofia nta module in my applicaton, for the case shown below ACK > is coming to stack but these ACK is not getting forwarded from stack to my > application plz help in finding the reasons for that. That is a design issue. Application should not care

Re: [Sofia-sip-devel] Memory allocation problem on windows, Sorry It s nua_stack.c file :)

2011-01-10 Thread Pekka Pessi
Hi Philippe, 2010/12/29 Philippe Maymat : > I made several modifications to compile cotrrectly the SOFIA-SIP project > with Visual studio 8. There is mistakes on both project files for static > and dynamic library on line 4305 and 3216. There was > instead of . With this modification the XML is v

Re: [Sofia-sip-devel] Link error on visual studio 2008

2011-01-10 Thread Pekka Pessi
Hi, 2010/12/28 Philippe Maymat : > I found a solution, the file string.c is not included in the project and > contains all missing definitions. Oops, the dll projects were not updated. I've added them to the git version. > Now my problem is a crash on line 550 in nua_client.c when subscribing. >

Re: [Sofia-sip-devel] Register WWW-Authenticate header 'qop' missing

2011-01-10 Thread Pekka Pessi
Hi Nauman, 2011/1/8 Nauman Sulaiman : > Hi, using 1.12.10 sofia. If one receives a challenge to register request I > currently reply with nua_authenticate(NUTAG_AUTH()) > > However if the challenge had the 'qop' parameter then this does not get > copied to the response sent by nua_authenticate.

Re: [Sofia-sip-devel] Is CLRF UDP keepalive supported in sofia sip

2011-01-10 Thread Pekka Pessi
Hi Nauman, 2011/1/10 Nauman Sulaiman : > Hi, have noticed there is a TCP CLRF keepalive. Was wondering if there is > equivalent UDP? There is no easy keepalive for UDP. In principle, you can use STUN or some simple SIP message. The outbound module within nua uses OPTIONS as keepalive message by

Re: [Sofia-sip-devel] Parsing OPTIONS SDP body

2011-01-10 Thread Pekka Pessi
Hi Arsen, 2011/1/4 Arsen Chaloyan > Let me clarify this a bit. > > The response to the SIP OPTIONS request does contain an SDP message and > it's clear how it should be parsed in general. The question is how to > retrieve the SDP message included in the response to the SIP OPTIONS request > usin

Re: [Sofia-sip-devel] Populating to header from Refer message with replaces

2010-12-15 Thread Pekka Pessi
Hi Nauman, 2010/12/8 Nauman Sulaiman : > Hi, using sofia 1.12.10 how to populate TO header of Invite created in > response to incoming REFER with refer-to header containing replaces parameter. > I can't just use the refer-to uri on its own as it has the all the replaces > stuff. I suppose i cou

Re: [Sofia-sip-devel] [sofia-sip-devel] digest authorization using HA1 directly

2010-12-15 Thread Pekka Pessi
Hi Paulo, 2010/12/15 Paulo Vicentini : > I using sofia-SIP as an UAC to register with a SIP registrar > I'd like to avoid using the secret (it is indeed not available) directly > while creating a digest authorization header with: > int auc_digest_authorization(auth_client_t *ca, > su_home_t *home,

Re: [Sofia-sip-devel] "we *still* have a race condition"

2010-11-11 Thread Pekka Pessi
2010/10/23 Jen Chitty : > We are trying to track down an intermittent failure in the Sofia SIP stack > where we appear to be getting an EPERM error back from some POSIX API call > or another on a powerpc Linux 2.6.23.  This error is somehow triggering the > stack to report an ACK timeout, even thou

Re: [Sofia-sip-devel] Using VPN

2010-09-20 Thread Pekka Pessi
Hi all, 2010/9/16 : >> Hi, using 1.12.10. Sofia doesn't seem to select the vpn ip when >> connected over VPN. It still seems to be listening on the usual WiFI >> access point ip, this is the same no matter what ip is passed to >> NUTAG_URL. > > It should work if the nua stack is created with this

Re: [Sofia-sip-devel] make check fails

2010-09-20 Thread Pekka Pessi
Hi Filippo, 2010/9/20 Della Betta Filippo : > Attached config.h and config.status. > Below output of ifconfig... It seems to me that you do not have openssl-dev, but my make check passes through even if I remove it... Mysterious. -- Pekka.Pessi mail at nokia.com ---

Re: [Sofia-sip-devel] make check fails

2010-09-17 Thread Pekka Pessi
2010/9/17 Della Betta Filippo : > From a clean VM Ubuntu 10.04 x86, I did the following steps to reproduce > failure > > sudo apt-get install build-essential autoconf automake1.9 libtool git-core > check > git clone http://git.gitorious.org/sofia-sip/sofia-sip.git > cd sofia-sip > ./autogen.sh >

Re: [Sofia-sip-devel] su_root_threading query

2010-09-17 Thread Pekka Pessi
2010/9/15 Nauman Sulaiman : > Hi, using 1.12.10 i've set su_root_threading to multithreading mode. But when > i call nua_register for example from the main thread of my app it blocks it, > it appears to be all the sresolv stuff. Should this be expected and i should > be calling the nua functions o

Re: [Sofia-sip-devel] make check fails

2010-09-13 Thread Pekka Pessi
Hi Filippo, 2010/9/10 Della Betta Filippo : >        With the latest git code, make check fails during check_nua (I have > 4/5 errors). > The first test that fails is call_2_3_1. > So I launched "check_nua call_2_3_1" > With CHECK_NUA_THREADING=no : fails > With CHECK_NUA_THREADING=yes : ok > Can

Re: [Sofia-sip-devel] Minor patches

2010-08-31 Thread Pekka Pessi
Hi Filippo, 2010/8/27 Della Betta Filippo > I’m trying to update sofia-sip to the latest git version. > > Is it possible to have the function nua_handle_by_call_id exported ? > (nua_h.patch) > I've applied your patches but slightly modified latter two. Thanks. --Pekka -- Pek

Re: [Sofia-sip-devel] Internal error at nua_stack.c:2388 on SUBSCRIBE

2010-08-16 Thread Pekka Pessi
Hi Philippe, 2010/8/13 Philippe Maymat >with the latest git repo, I now have the following error in return of >nua_subscribe: > > Internal error at nua_client.c:550 > > It's due to the ';', with any other char, it works. Could you show us your code? How do you initialize nh? Which other tags yo

Re: [Sofia-sip-devel] forking calls and overlapping

2010-08-16 Thread Pekka Pessi
2010/8/12 Михаил Кривушин : > Hello! > We use FreeSWITCH and OpenSIPS, and have problem - when we try use forking > calls, it seems that sofia nta/nta.c doesnt distinct INVITE-s by Via > headers, and its branches. > Is it right, or I need more code reading? By default, the server side on nta.c det

Re: [Sofia-sip-devel] Problem in using sofia-sip libraries

2010-08-16 Thread Pekka Pessi
Hi Amir, 2010/8/14 Amir Khezrian : > From the errors, It seems that compiler can't find sofia-sip/msg_types.h and > sofia-sip/msg_mime.h > Have i missed something that is necessary to be installed before using > sofia-sip? You should -I the directory where the inlude files has been installed, not

Re: [Sofia-sip-devel] sofia-sip not sending correct Via headers in 200 OK to NOTIFY request

2010-08-13 Thread Pekka Pessi
Hi Gaurac, 2010/8/13 Pekka Pessi : > 2010/8/11 Gaurav Srivastva : >> The Via headers on Linux are sent correctly if TPORT_LOG is not defined. If >> I define this variable then the problem starts happening. > > Oh my. Thanks for digging this out. I've pushed the fix

Re: [Sofia-sip-devel] nua_callstate_authenticating don't work

2010-08-11 Thread Pekka Pessi
Hi Paolo, 2010/8/5 Paulo Pizarro : > The "nua_callstate_authenticating" is documented: > > http://sofia-sip.sourceforge.net/refdocs/nua/nua__tag_8h.html#904045132b398207f1597320c860eca3 > > But, it is not used on the source (only defined). > > Maybe, it's better to remove it from the enum or fix

Re: [Sofia-sip-devel] Null Callid and To Tag

2010-08-10 Thread Pekka Pessi
2010/8/5 Vikas Bhat : > Thanks for the information. > Do u mean to say that Sofia Stack(NTA) should send the 400. > since we are using the STACK in is STATELESS mode .should our application > check for > CallID with null values and respond with 400. Yes and no, the nta stack should check for bad r

Re: [Sofia-sip-devel] Initialize video in client with SDP sent to server

2010-08-10 Thread Pekka Pessi
Hi Peter, Please be more specific. What is wrong? How far you get? What kind of response you get? What are you using to receive the media? --Pekka 2010/8/6 peter hanshon : > > I want to initialize a video streaming service  (by VLC)  by sending a > message sip-prompt client to server when I use

Re: [Sofia-sip-devel] One more question about cloned task

2010-08-10 Thread Pekka Pessi
Hi Pete, Hi Pete, 2010/8/7 Pete Kay : >> Do you have multiple nta_agent_t instances running, or how do you >> handle the UAS side? What kind of task you plan to implement in the >> cloned task, some kind of db lookup? > Yes, I am using DB to store routing information. Have you considered using s

Re: [Sofia-sip-devel] sofia-sip not sending correct Via headers in 200 OK to NOTIFY request

2010-08-10 Thread Pekka Pessi
2010/8/10 Gaurav Srivastva : > Would highly appreciate if someone can tell me if this issue is resolved in > sofia-sip stack or not. Are you sure there is no other Via header down the response? ;-o I've never seen the bug on Linux, but I've added test cases for it in nta and nua just in case you

Re: [Sofia-sip-devel] Using TLS with sofia

2010-08-06 Thread Pekka Pessi
2010/8/2 Nauman Sulaiman : > Hi, using version 1.12.10. We've compiled OpenSSL 0.9.8, also compiled the 2 > source files related to tls in tport. We know that in NUTAG_URL we must pass > in transport=tls. What else do we need to do to enable tls on Sofia, is there >  any sample code to show how

Re: [Sofia-sip-devel] Fixed documentation of the detailed client call model

2010-08-06 Thread Pekka Pessi
2010/8/5 Paulo Pizarro : > I'm sending a patch fixing the documentation of the detailed client call > model. Thanks, applied. > I hope this is true! :) Hope so too. ;) -- Pekka.Pessi mail at nokia.com -- This SF.net

Re: [Sofia-sip-devel] Multiple transports with single nua_create instance

2010-08-06 Thread Pekka Pessi
Hi, 2010/8/2 Nauman Sulaiman : > Hi, using sofi 1.12.10 we have managed t support multiple registrations using >  separate nua handle to nua_register call, single nua_create call. > > However is it possible to specify separate ports and transport for each > nua_handle OR do we need to create a s

Re: [Sofia-sip-devel] One more question about cloned task

2010-08-06 Thread Pekka Pessi
Hi Pete, 2010/7/30 Pete Kay : > In my request_handler, I am creating a new cloned_task upon receiving > of INVITE from uac.  I am using this cloned_task to create a leg to > talk to the uas and forward the INVITE to the uas. Do you have multiple nta_agent_t instances running, or how do you handle

Re: [Sofia-sip-devel] Contact header incorrect

2010-08-04 Thread Pekka Pessi
Hi, 2010/7/26 Nauman Sulaiman : > Hi, using Sofia 1.12.10. I have multiple sip accounts, with separate nua > handles for each nua_register etc. When i get a nua_i_invite and send a > response it seems to pick a contact randomly from sip accounts that i have > for the contact header. I am switchi

Re: [Sofia-sip-devel] Threading - Root problem Newbie

2010-08-04 Thread Pekka Pessi
Hi Rohan, 2010/7/24 rohan kala : > 1) I have initialized su_root_create() function in my main() function, now > do I have to initialize it in callback function or every othe function to > send request or incoming request etc.. Or I have to just put > su_root_run(context->c_root) every time when I

Re: [Sofia-sip-devel] Null Callid and To Tag

2010-08-04 Thread Pekka Pessi
2010/7/26 Vikas Bhat : > Sofia stack is not able to detect empty/null CallID in INVITE request. > similarly Sofia is not able to detect empty/NULL TO TAG. > Ideally Sofia should reject the calls in above scenerios. I think NTA is supposed to return a 400 response to a request received from network

Re: [Sofia-sip-devel] NTA authentication request problem

2010-08-04 Thread Pekka Pessi
2010/7/24 Mayur Mahajan : >  I have made a shorter version of my mail. >   When I send a request to the server through my NTA client, I get the > response of the message(407 Unauthorized) in the callback. So, when the > callback function gets the 407 message it invokes authorize_ua() method. Th

Re: [Sofia-sip-devel] adding rinstance to NOTIFY request line in nua

2010-08-04 Thread Pekka Pessi
2010/7/22 Markus Bucher : >> Is the notify for a existing subscribe/notify session or is it for a >> "blind notify"? > > It's actually for both, though blind notifies have priority. > The scenario is, that there is a security server between my application an > the receiver of the notify (client). >

Re: [Sofia-sip-devel] Does soa module support “Del ayed Offer” ?

2010-08-03 Thread Pekka Pessi
2010/7/21 edson.gomes.leme : > Hi Pekka Pessi; > > a) Does the Sofia-SIP soa module support “Delayed Offer” ? Yes.. > b) How can this call scenario be implemented with the soa module? > >    SOFIA-SIP (soa) >      A (UAC)  

Re: [Sofia-sip-devel] Multiple Registration support

2010-07-14 Thread Pekka Pessi
Hi, 2010/7/12 Nauman Sulaiman > > Then i tried with 2 different accounts, one Sipgate the other Callcentric. I > created 2 separate register handles and separate call back handlers for each > handle. I call nua_register twice with the separate handles now. It should work fine, there is probabl

  1   2   3   4   5   6   7   8   9   >