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

2011-08-19 Thread Pekka Pessi
Hi Laurent, 2011/8/1 Laurent Lecigne lleci...@gmail.com: 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.

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

2011-08-19 Thread Pekka Pessi
Hi, 2011/8/18 Meftah Tayeb tayeb.mef...@gmail.com: 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

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

2011-08-19 Thread Pekka Pessi
Hi, 2011/8/19 Nick Knight n...@omniis.com: 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

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

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 incar...@gmail.com: 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

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

2011-08-18 Thread Pekka Pessi
Hi Yuri, 2011/6/19 Yuri y...@rawbw.com: 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] Segmentation Fault After BYE 407 Proxy Authentication

2011-08-18 Thread Pekka Pessi
Hi Jerry, 2011/6/23 Jerry Richards jerry.richa...@teotech.com: 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

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

2011-08-18 Thread Pekka Pessi
Hi Florian, 2011/6/29 Florian Limberger florian.limber...@aon.at: ... 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

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

2011-08-18 Thread Pekka Pessi
Hi Ivan, 2011/7/13 Иван Чистяков zetru...@gmail.com: 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

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

2011-08-18 Thread Pekka Pessi
Hi Nauman, 2011/7/1 Nauman Sulaiman nauman762-h...@yahoo.co.uk: 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

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 frode.isak...@bewan.com: 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. --

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

2011-08-18 Thread Pekka Pessi
Hi, 2011/7/12 Olivier Deme od...@druidsoftware.com: 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

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

2011-08-18 Thread Pekka Pessi
Hi Arsen, 2011/7/13 Arsen Chaloyan achalo...@yahoo.com: 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

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 sip.rie...@yahoo.de: 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

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

2011-06-14 Thread Pekka Pessi
Hi Jerry, 2011/6/9 Jerry Richards jerry.richa...@teotech.com: 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

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

2011-06-14 Thread Pekka Pessi
Hi Vladimir, 2011/6/9 Vladimir Luchko vlad.l...@mail.ru: 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,

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

2011-06-03 Thread Pekka Pessi
Hi Luca, 2011/6/1 Luca Olivetti l...@ventoso.org: 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

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

2011-06-01 Thread Pekka Pessi
Hi Luca, 2011/5/29 Luca Olivetti l...@ventoso.org: 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

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

2011-05-24 Thread Pekka Pessi
Hi Inca, 2011/5/20 Inca Rose incar...@gmail.com: 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] No ACK sent after PRACK and CANCEL

2011-05-24 Thread Pekka Pessi
Hi, 2011/5/24 Pekka Pessi ppe...@gmail.com: 2011/5/20 Inca Rose incar...@gmail.com: 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

Re: [Sofia-sip-devel] MSRP Support

2011-05-20 Thread Pekka Pessi
Hi, 2011/5/3 Ubuntu Explorer ubuntuexplo...@gmail.com: 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

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

2011-05-19 Thread Pekka Pessi
Hi Matteo, 2011/5/17 Matteo mbrancale...@voismart.it: 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

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 hlidea...@gmail.com: 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()

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 l...@ventoso.org: A2 = MD5(REGISTER:sip:ekiga.net) auth_response: db79b8a5046c76654b742311b7d4a33d = MD5(53060310bbad90036d54e1954983ae4e:4dab21dbe3306f1513e34e9e24eedc00a7827bd9394f:14bd7ed1967527d3770ab1f7c12901c5) (qop=NONE) svd: nta.c: 7785:

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

2011-04-11 Thread Pekka Pessi
Hi, 2011/4/10 Manuel Argüelles manuel.arguel...@gmail.com: 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

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

2011-04-05 Thread Pekka Pessi
()? --Pekka -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 Richards jerry.richa

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

2011-04-04 Thread Pekka Pessi
Hi, 2011/3/30 Leandro Lucarella llucare...@integratech.com.ar: 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.

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

2011-04-04 Thread Pekka Pessi
Hi, 2011/3/31 Jerry Richards jerry.richa...@teotech.com: 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

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

2011-04-04 Thread Pekka Pessi
Hi Jerry, 2011/4/4 Jerry Richards jerry.richa...@teotech.com: 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

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 nauman762-h...@yahoo.co.uk: 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

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 alleng...@gmail.com: 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

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 alleng...@gmail.com: 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

Re: [Sofia-sip-devel] Version 1.12.11

2011-03-24 Thread Pekka Pessi
Hi Jerry, 2011/3/23 Jerry Richards jerry.richa...@teotech.com: 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

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

2011-03-24 Thread Pekka Pessi
Hi Bendan, 2011/3/21 Brendan Loudermilk bren...@apwit.com: 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

Re: [Sofia-sip-devel] Prack

2011-03-24 Thread Pekka Pessi
Hi Vikas, 2011/3/18 Vikas Bhat vikasbhat0...@gmail.com: 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

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 jerry.richa...@teotech.com: 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

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 e.habi...@thiesen.com: 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

[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

[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: http://sofia-sip.org/~ppessi/sofia-sip-1.12.10pre11rc1.tar.gz md5sum: 3c9dbb7dee430ccb5d1d0b088eef5516 sha1sum: a0da65f9e8031df1f016545dc83b9ff362760b35 sha256sum:

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 eisl1...@gmail.com: 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

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 jerry.richa...@teotech.com: 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

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 vicentini.pa...@gmail.com: 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,

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

2011-01-26 Thread Pekka Pessi
Hi Philippe, 2011/1/21 Philippe Maymat pmay...@keyyo.com: 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

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

2011-01-26 Thread Pekka Pessi
Hi Inca, 2011/1/21 Inca Rose incar...@gmail.com:  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

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

2011-01-21 Thread Pekka Pessi
Hi Stefan, 2011/1/13 Stefan Eckel stefan.ec...@c4b.de: 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: sip:

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

2011-01-21 Thread Pekka Pessi
Hi Inca, 2011/1/14 Inca Rose incar...@gmail.com: 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

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

2011-01-10 Thread Pekka Pessi
Hi, 2010/12/28 Philippe Maymat pmay...@keyyo.com: 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

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 pmay...@keyyo.com: 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 /files/files instead of /files.

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 vicentini.pa...@gmail.com: 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 !=

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 vicentini.pa...@gmail.com: 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

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 nauman762-h...@yahoo.co.uk: 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

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

2010-11-11 Thread Pekka Pessi
2010/10/23 Jen Chitty jenchi...@vtech.ca: 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

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

2010-09-20 Thread Pekka Pessi
Hi Filippo, 2010/9/20 Della Betta Filippo filippo.dellabe...@telecomitalia.it: 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

Re: [Sofia-sip-devel] Using VPN

2010-09-20 Thread Pekka Pessi
Hi all, 2010/9/16 mikhail.zabal...@nokia.com: 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

Re: [Sofia-sip-devel] su_root_threading query

2010-09-17 Thread Pekka Pessi
2010/9/15 Nauman Sulaiman nauman762-h...@yahoo.co.uk: 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

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

2010-09-17 Thread Pekka Pessi
2010/9/17 Della Betta Filippo filippo.dellabe...@telecomitalia.it: 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

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

2010-09-13 Thread Pekka Pessi
Hi Filippo, 2010/9/10 Della Betta Filippo filippo.dellabe...@telecomitalia.it:        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

Re: [Sofia-sip-devel] Minor patches

2010-08-31 Thread Pekka Pessi
Hi Filippo, 2010/8/27 Della Betta Filippo filippo.dellabe...@telecomitalia.it 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

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

2010-08-16 Thread Pekka Pessi
Hi Amir, 2010/8/14 Amir Khezrian amir.khezr...@gmail.com: 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

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

2010-08-16 Thread Pekka Pessi
2010/8/12 Михаил Кривушин krivushi...@gmail.com: 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

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 pmay...@keyyo.com 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

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 ppe...@gmail.com: 2010/8/11 Gaurav Srivastva gaurav...@yahoo.com: 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 paulo.piza...@gmail.com: 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

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 pete...@gmail.com: 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

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

2010-08-10 Thread Pekka Pessi
2010/8/5 Vikas Bhat vikasbhat0...@gmail.com: 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

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

2010-08-06 Thread Pekka Pessi
Hi Pete, 2010/7/30 Pete Kay pete...@gmail.com: 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

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

2010-08-06 Thread Pekka Pessi
Hi, 2010/8/2 Nauman Sulaiman nauman762-h...@yahoo.co.uk: 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

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

2010-08-06 Thread Pekka Pessi
2010/8/5 Paulo Pizarro paulo.piza...@gmail.com: 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

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

2010-08-06 Thread Pekka Pessi
2010/8/2 Nauman Sulaiman nauman762-h...@yahoo.co.uk: 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

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

2010-08-04 Thread Pekka Pessi
2010/7/22 Markus Bucher buch...@in.tum.de: 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

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

2010-08-04 Thread Pekka Pessi
2010/7/24 Mayur Mahajan mayurmahajan...@gmail.com:  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

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

2010-08-04 Thread Pekka Pessi
2010/7/26 Vikas Bhat vikasbhat0...@gmail.com: 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

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

2010-08-04 Thread Pekka Pessi
Hi Rohan, 2010/7/24 rohan kala rohankal...@gmail.com: 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)

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

2010-08-04 Thread Pekka Pessi
Hi, 2010/7/26 Nauman Sulaiman nauman762-h...@yahoo.co.uk: 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

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

2010-08-03 Thread Pekka Pessi
2010/7/21 edson.gomes.leme edson.gomes.l...@uol.com.br: 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) B (UAS

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

2010-07-14 Thread Pekka Pessi
Hi, 2010/7/12 Nauman Sulaiman nauman762-h...@yahoo.co.uk 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

Re: [Sofia-sip-devel] [PATCH] Fix gai_strerror re-declaration in MinGW

2010-07-08 Thread Pekka Pessi
2010/7/8 Stefano Sabatini ssabat...@reilabs.com: Exactly, this way the patch is much simpler. Thanks! Applied. -- Pekka.Pessi mail at nokia.com -- This SF.net email is sponsored by Sprint What will you do first with

Re: [Sofia-sip-devel] [PATCH] Fix gai_strerror re-declaration in MinGW

2010-07-07 Thread Pekka Pessi
2010/7/6 Stefano Sabatini ssabat...@reilabs.com: Hi, as in subject. The patch requires to run autoheader to re-generate the config.h.in file. Thanks for patch. I wonder if it is enough just to #undef gai_strerror? No need to check its declaration? -- Pekka.Pessi mail at nokia.com

Re: [Sofia-sip-devel] Still no answer to DNS problems

2010-07-07 Thread Pekka Pessi
2010/7/2 Inca Rose incar...@gmail.com: I dont know if this only happen to me or I'm not using a configuration flag that is document, but I have a very hard time figuring this out. ... The problem is that the next REGISTER goes again to 1.2.3.4. There is no mechanism that nta can remember that

Re: [Sofia-sip-devel] nua: initializing SIP stack failed

2010-07-07 Thread Pekka Pessi
2010/6/30 Stefano Sabatini ssabat...@reilabs.com: Hi all, I'm running this simple code in Windows Vista: nta: master transport created tport(00F27958) to */*:*/sip tport(00F27958): calling tport_listen for udp tport(00F27958): new primary tport 00F28128 tport(00F27958): bind(pf=2

Re: [Sofia-sip-devel] [PATCH] Fix configuration under MinGW

2010-07-06 Thread Pekka Pessi
2010/7/6 Stefano Sabatini ssabat...@reilabs.com: this patch fixes the configuration problem as reported here: http://thread.gmane.org/gmane.comp.telephony.sofia-sip.devel/3853 Thanks for the patch. -CFLAGS=$CFLAGS -I\$(top_srcdir)/win32/pthread -DWINVER=0x0501 \ +CFLAGS=$CFLAGS

Re: [Sofia-sip-devel] I need to send a re-invite with the SDP address set to 0.0.0.0

2010-06-28 Thread Pekka Pessi
2010/6/22 Inca Rose incar...@gmail.com: Can someone help me here ? I cannot find a way to set the SDP c= line to 0.0.0.0 I a session update ( re-invite ) I set the SOA_ADDRESS tag to 0.0.0.0 in the reinvite but the new INVITE request keeps sending the c line with the original value. The

Re: [Sofia-sip-devel] Is sofia-sip dead?

2010-06-28 Thread Pekka Pessi
the repository moved? Is Nokia working entirely in-house? Or is Sofia-SIP dead? Any thoughts would be greatly appreciated. The last darcs commit: Tue Sep 29 14:24:17 CEST 2009  Pekka Pessi first.l...@nokia.com  Bug report and original patch by Timo Bruhn. and there hasn't been much

Re: [Sofia-sip-devel] Remove an unknown sip header

2010-03-30 Thread Pekka Pessi
2010/3/26 Alexandre Brito abr...@av.it.pt: I flowing through sofia sip documentation/code trying to find the best way to remove an unknown sip header. I found that its easy to add any header my using SIPTAG_HEADER_STR or even SIPTAG_HEADER(x) by define a new header struct. However, what's

Re: [Sofia-sip-devel] SIP_PAYLOAD_STR first byte 0x00 always causes 0 length content.

2010-03-17 Thread Pekka Pessi
2010/3/12 Trevor Nunes trevor.nu...@gmail.com: The problem is I can send any type of content I want as long as the first byte is not 0x00 ... If this byte is 0x00 it will send a 0 byte SIP message out.  So for example here is a short message that works perfectly, If I change the payload[0] =

Re: [Sofia-sip-devel] simple memory allocation question

2010-03-17 Thread Pekka Pessi
2010/3/16 beach...@me.com: Just to make sure I am not doing something wrong, my home gets allocated when my program starts, and I do not destroy it until my (long running) program ends.  So although it would not be a true memory leak it sounds like it would cause memory growth if I do not

Re: [Sofia-sip-devel] simple memory allocation question

2010-03-16 Thread Pekka Pessi
2010/3/15 beach...@me.com: Simple questionwhen I use sip_X_make( home, char *) and then attach that header to a response message I am sending via nta, do I need to explicitly su_free that header?  i.e. sip_contact_t *c1 = sip_contact_make( home, szContact1 ) ; nta_incoming_treply(

[Sofia-sip-devel] FYI: Back again

2010-03-12 Thread Pekka Pessi
Hello all, As you might have noticed I've not spent much time with Sofia SIP lately. However, Sofia SIP has not been abandoned completely. From now on, I have reserved some time specifically to maintaining Sofia SIP and following this mailing list. -- Pekka.Pessi mail at nokia.com

Re: [Sofia-sip-devel] SIP_PAYLOAD_STR first byte 0x00 always causes 0 length content.

2010-03-12 Thread Pekka Pessi
2010/3/11 Trevor Nunes trevor.nu...@gmail.com: I'm trying to send encapsulated 3GPP2 MO-SMS ( CDMA text message ). To do this the first byte of the payload must be 0x00, if I use SIP_PAYLOAD_STR( data ) and first byte is zero it seems to truncate assuming the 0x0 is a NULL terminator. I've

Re: [Sofia-sip-devel] suppress Content Disposition

2010-03-12 Thread Pekka Pessi
2010/3/8 Ronny Aruch ro...@vocaltec.com: I use sofia 1.12.8. How can I suppress Content Disposition header from being sent. I added SIPTAG_CONTENT_DISPOSITION(NULL)to NUA_INVITE but the header is still sent. It seems to me that there is no way to do that above the API, you have to hack

Re: [Sofia-sip-devel] Please, make the sigcomp plugin for sofia-sip free software

2010-03-12 Thread Pekka Pessi
2010/3/9 Aleksander Morgado aleksan...@gnu.org: My humble request is then, please make the sigcomp plugin for sofia-sip free software, publicly available for everyone, so that we can keep on developing applications using the sofia-sip stack also including SigComp support. I'll have a peek on

Re: [Sofia-sip-devel] Fw: Changing IP address.

2009-10-02 Thread Pekka Pessi
2009/10/2 Robert Han robert...@vtech.ca I just want to raise the issue that we asked you earlier back in July 31 (see below). You said that if we shutdown the sofia stack, and if there are outstanding sip sessions (for example 4 active sessions), we do not need to nua_bye() or even

Re: [Sofia-sip-devel] 64-bit issue in sofia-sip (patch)

2009-09-24 Thread Pekka Pessi
2009/9/24 Aleksander Morgado sofia-sip-de...@aleksander.es: We just faced an issue happening only in 64-bit architecture, and found that it was already fixed by FreeSWITCH guys in their own sofia-sip repo: http://jira.freeswitch.org/browse/SFSIP-136 It seems the fix is not included in the

Re: [Sofia-sip-devel] New release schedule?

2009-09-24 Thread Pekka Pessi
2009/9/23 Aleksander Morgado sofia-sip-de...@aleksander.es: Is there any planned date for a new stable (1.12.11) release of sofia-sip? My current plan is to make a next release after we (Maemo devices within Nokia) have stable Maemo 5 release. That should happen Real Soon Now. However, there are

Re: [Sofia-sip-devel] Question aboiut NTA and sip_t

2009-09-24 Thread Pekka Pessi
2009/9/9 Daniel Corbe dco...@gmail.com: When NTA receives a request which doesn't match an existing transaction it passes a pointer to the callback function of type sip_t.  Can this pointer be dereferenced through the lifetime of the transaction or does it go poof as soon as I exit the

Re: [Sofia-sip-devel] sresolv: DNS response code 5 (refused) not handled / Fallback to second DNS server not working

2009-09-24 Thread Pekka Pessi
2009/9/18 Timo Bruhn voip_v...@web.de: [...] When sofia-sip tries to register its user agents at startup, the first dns server is used to resolve the server name. The server refuses the request. Now the expected behaviour should be a fallback to the second server. Unfortunately this never

Re: [Sofia-sip-devel] Modify sofsip cli to work with PCMA instead of PCMA

2009-09-24 Thread Pekka Pessi
2009/9/14 fabien comte comte_fab...@yahoo.fr I want sofsip cli works with PCMA instead of PCMU. How to modify it ? Just in case you have not figured out it yet: you have to change the RTP payload type on m= line to 8, too. The rtpmap should work, provided the payload number on m=audio line and

Re: [Sofia-sip-devel] Wrong answer from sofia-sip

2009-09-24 Thread Pekka Pessi
2009/8/26 Bernhard Suttner sutt...@comdasys.com: attached the network trace. You have to decode the first paket as SIP in Wireshark (destination ip). Contact is used when the callee send caller a BYE request (or OPTIONS or UPDATE or INFO etc...). The RFC 3261 (section 18.2.1) specifies how to

Re: [Sofia-sip-devel] Mac OS X 10.6 build problems

2009-09-24 Thread Pekka Pessi
Any news on this? Perhaps you have something in /usr/local/lib linking to iconv? What is the intl library? Try grep -l iconv /usr/lib/* /usr/local/lib/* ... --Pekka 2009/9/1 Michael Jerris m...@jerris.com: I am chasing down this same issue on my box.  I should have fixes sometime this week

Re: [Sofia-sip-devel] nua: call termination after INFO-timeout

2009-07-07 Thread Pekka Pessi
2009/7/7 Stefan Eckel stefan.ec...@c4b.de: Some time ago I posted a question about handling the timeout problem with INFO messages. See: http://article.gmane.org/gmane.comp.telephony.sofia-sip.devel/3402 We now found a solution, with a simple modification: ... I don’t know whether the

  1   2   3   4   5   6   >