Re: [Sofia-sip-devel] SOA_TAG_ACTIVE_AUDIO meaning

2009-01-16 Thread Pekka Pessi
2009/1/15 Inca Rose incar...@gmail.com: I don't actually understand when the SOA_TAG_AUDIO_ACTIVE is present, and if it present what it represents. You are not alone. ;) For example in an outgoing INVITE is is present in the first callback ( INVITE Sent ) with active_audio=3. I suppose this

[Sofia-sip-devel] Recent automake changes

2009-01-16 Thread Pekka Pessi
I'm feeling a bit uneasy with this patch. If anyone developing with Darcs version has any kind of problems with automake or building Sofia SIP with this patch please report them. Tue Jan 13 18:10:10 EET 2009 Pekka Pessi first.l...@nokia.com * rules/silent.am: silence. at last. M

Re: [Sofia-sip-devel] Multiple WWW-Authenticate headers and comparing au_scheme

2009-01-19 Thread Pekka Pessi
2008/12/30 Andrew Rechenberg Lists flux...@sfg.com: Good day, if (sip-sip_www_authenticate-au_scheme == NTLM) { do something ... } I've also tried a NULL terminated comparison (NTLM\0) and just == N and neither of those work either. Am I missing something simple? Try su_casematch().

Re: [Sofia-sip-devel] Multiple WWW-Authenticate headers and comparing au_scheme

2009-01-21 Thread Pekka Pessi
2009/1/19 Andrew Rechenberg Lists flux...@resurgent.com: Somehow this message was a dup ... sorry :( Any word on the sub_alloc() question I posted on Friday? It looks like you have not allocated enough memory for gssapi response.. -- Pekka.Pessi mail at nokia.com

Re: [Sofia-sip-devel] Multipart payload handling

2009-01-21 Thread Pekka Pessi
2009/1/20 Aleksander Morgado sofia-sip-de...@aleksander.es: I'm getting a SIP INVITE with a multipart payload: Content-Type: multipart/mixed;boundary=MessageBoundary I supposed that sofia-sip would split the payload into different msg_multipart_t accessible in sip-sip_multipart, but it

Re: [Sofia-sip-devel] confused about nua_subscribe behavior...

2009-01-21 Thread Pekka Pessi
2009/1/21 Matthew Kaufman matt...@matthew.at: I'm relatively new to sofia and nua, so I'm sure there's something I need to do beyond keeping a reference to the nua_handle (which I've tried) to keep it alive? No, it should be enough to keep the handle around. However, it looks to me that you

Re: [Sofia-sip-devel] Two nua issues

2009-01-26 Thread Pekka Pessi
2009/1/25 jonathan augenstine jaugenst...@gmail.com: I have two issues that I am struggling with and need some input. The application I am developing receives an INVITE, does a database lookup, and redirects the INVITE using a 302 Temporarily Moved response. My first issue is the sending of

Re: [Sofia-sip-devel] Call-Id Header Generation

2009-01-26 Thread Pekka Pessi
2009/1/24 Jerry Richards jer...@tonecommander.com: By the way, I realize I can generate such an ID using the sip_call_id_create() with the second parameter being the host address. I guess my question is, why doesn't sofia-sip automatically generate an address of the form loca...@host?

Re: [Sofia-sip-devel] Disable automatic responses

2009-01-26 Thread Pekka Pessi
2009/1/23 jonathan augenstine jaugenst...@gmail.com: I a SIP application I am developing and it is unrelated to a VoIP call. I want to disable the automatic 100 - Trying response that is sent by the stack, but my search of the documentation has been unsuccessful in locating this information.

Re: [Sofia-sip-devel] Handling new requests and in-dialog requests with NTA

2009-01-26 Thread Pekka Pessi
2009/1/21 Saúl Ibarra sag...@gmail.com: I've just started with NTA and I'm a little confused. I've created a default call leg with NTATAG_NO_DIALOG(1) but i'm not really sure that's what I want. Shouldn't I create a new dialog for incomming INVITE requests? Yes. And here comes another

Re: [Sofia-sip-devel] Port Number in Contact Header

2009-01-27 Thread Pekka Pessi
2009/1/27 Jerry Richards jer...@tonecommander.com: I noticed sofia-sip leaves out the port number in the contact header. The only way to include the port number in the Contact Header is to use the SIPTAG_CONTACT_HEADER_STR() tag. I'm just wondering if the sofia-sip default should be to

Re: [Sofia-sip-devel] Question on adding code to NTA for MS OCS SRV resolution

2009-02-05 Thread Pekka Pessi
2009/1/29 Andrew Rechenberg Lists flux...@resurgent.com: I'm wondering how I should add this code to Sofia. I think I should be adding it to nta.c in const sip_dnstports[] and possibly in tports_sips[]. Anywhere else I need to add code? Any suggestions on what I should add? Can I add

Re: [Sofia-sip-devel] Stack crash when the IP on the device changes

2009-02-11 Thread Pekka Pessi
2009/2/11 Inca Rose incar...@gmail.com: I'm experiencing a crashing when the IP on the machine where the Sofia SIP stack runs changes. I am getting the following error : Assertion failed: (su_port_own_thread(self)), function su_kqueue_port_register, file

Re: [Sofia-sip-devel] NTLM patch questions

2009-02-11 Thread Pekka Pessi
2009/2/4 Andrew Rechenberg Lists flux...@resurgent.com: I have the NTLM code in Sofia working about 95% now (with regard to authenticating to a Microsoft Office Communications Server 2007) but I have some questions as to the proper places to put things before I submit a patch (multiple patches

Re: [Sofia-sip-devel] Question on adding code to NTA for MS OCS SRV resolution

2009-02-11 Thread Pekka Pessi
2009/2/6 Andrew Rechenberg Lists flux...@resurgent.com: OK, I've added code to nta.c for the SRV records, however this line is tripping me up: if (strcmp(tpname, *)) /* Looking for only one transport */ break; I've dug through the code and can't find out how to set this tpname. Is there

Re: [Sofia-sip-devel] Authentication-Info, Allow-Events, and Contact header parsing

2009-02-12 Thread Pekka Pessi
2009/2/3 Andrew Rechenberg Lists flux...@resurgent.com: My Sofia-based application is talking to a Microsoft OCS 2007 server and I believe, in true MS fashion, that certain headers are not quite in adherence to the RFCs. Could it be that Sofia is not parsing those headers as a result of them

Re: [Sofia-sip-devel] tport_listen patch

2009-02-12 Thread Pekka Pessi
2009/2/11 Della Betta Filippo filippo.dellabe...@telecomitalia.it: tport_listen, when the address is already in use returns error, but fails to set errno. I suggest the attached patch to overcome this bug. Thanks. Applied. -- Pekka.Pessi mail at nokia.com

Re: [Sofia-sip-devel] Using STUN

2009-02-12 Thread Pekka Pessi
2009/2/11 Bengt Werstén bengt.wers...@enea.com: We have got sofia-SIP to work when no NAT is involved but now we need a NAT solution using STUN. So far I have added the STUN define and changed my register from: I think the STUN code was never really polished, the most of the

Re: [Sofia-sip-devel] do SDP negotiation in application level

2009-02-12 Thread Pekka Pessi
2009/2/12 liu yang yangliu@gmail.com: Do we have API provided to negotiate session capability in application level? Let's say, is there one function which takes two parameters of type soa_session_t, and return whether they are compatible with each other? Not really. What you can do is to

Re: [Sofia-sip-devel] sofia 1.12.9 : SOA module : User specified unicast_addr, owner id , session id of o= not updated as local SDP

2009-02-12 Thread Pekka Pessi
2009/2/8 liu yang yangliu@gmail.com: I found a weird problem that unicast_addr, onwer id session id specified by application via SOATAG_USER_SDP_STR would be changed as other value forcely by sofia internally. Went through the stack, I caught the spotted code. File : soa_static.c

Re: [Sofia-sip-devel] IPv6 Link Address Bind Fail

2009-02-12 Thread Pekka Pessi
2009/2/12 Jerry Richards jer...@tonecommander.com: Thank You. Adding the following line just prior to the bind() call in tport_bind_socket() did the trick. The bind succeeds when passing it the IPv6 Link Address or the IPv6 Global Address. su-su_sin6.sin6_scope_id = (unsigned

Re: [Sofia-sip-devel] Stack crash when the IP on the device changes

2009-02-12 Thread Pekka Pessi
2009/2/12 Inca Rose incar...@gmail.com: I just patch the code with your two patches from last night and here are the results: -- It takes the right case in the switch ( TRY_FULL or ONLY_INFO ) -- if NUA_NW_DETECT_TRY_FULL is set, the stack crash again with: Assertion failed:

Re: [Sofia-sip-devel] SIP Parser

2009-02-13 Thread Pekka Pessi
2009/2/13 Della Betta Filippo filippo.dellabe...@telecomitalia.it: I noticed some strange behavior in extract_first of msg_parser.c. It seems that a request line that begins with LWS, or ends after CRLF is a valid request line. The followings are all valid according sofia-sip parser

[Sofia-sip-devel] Away next week

2009-02-13 Thread Pekka Pessi
Just GYI, I'm going to spend next week way from e-mail. Don't panic. -- Pekka.Pessi mail at nokia.com -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in

Re: [Sofia-sip-devel] No BYE sent after error in re-INVITE

2009-02-23 Thread Pekka Pessi
2009/2/19 Fabio Margarido fabiomargar...@gmail.com: I'm observing some odd behavior from Sofia in the following scenario: I have an answered call and receive a re-INVITE; when I generate an error for the re-INVITE (480, for instance) and then try to send a BYE and destroy the leg in the

Re: [Sofia-sip-devel] TCP Source Port 3072?

2009-02-26 Thread Pekka Pessi
2009/2/26 Jerry Richards jer...@tonecommander.com: Hello All, When I configure the sofia transport=udp, then I see SIP UDP packets sent with source port 5060 and destination port 5060. When the only change I make is transport=tcp, then I see SIP TCP packets sent with source port 3072 and

Re: [Sofia-sip-devel] TCP Source Port 3072?

2009-02-26 Thread Pekka Pessi
be a bit hard, you can try to bind to tp_pri-tp_addr in tport_tcp_init_secondary(). bind() might succeed or then not, depending on how the reuseraddr is implemented on your system. --Pekka -Original Message- From: Pekka Pessi [mailto:ppe...@gmail.com] Sent: Thursday, February 26, 2009

Re: [Sofia-sip-devel] Loop through all headers in a message

2009-02-26 Thread Pekka Pessi
2009/2/26 Fabio Margarido fabiomargar...@gmail.com: I'd like to know what's the best way to check if a header is present (and get its contents) in a sip_t (or msg_t) structure by name (as a string) or if there is a way to loop through all the headers in a sip_t structure, checking if each

Re: [Sofia-sip-devel] TCP Source Port 3072?

2009-02-26 Thread Pekka Pessi
use for a server is practically impossible.) --Pekka -Original Message- From: Pekka Pessi [mailto:ppe...@gmail.com] Sent: Thursday, February 26, 2009 12:15 PM To: Jerry Richards Cc: sofia-sip-devel@lists.sourceforge.net Subject: Re: [Sofia-sip-devel] TCP Source Port 3072? 2009/2

Re: [Sofia-sip-devel] Loop through all headers in a message

2009-03-02 Thread Pekka Pessi
2009/2/27 Fabio Margarido fabiomargar...@gmail.com: On Thu, Feb 26, 2009 at 18:21, Pekka Pessi ppe...@gmail.com wrote: You can get msg_href_t by name with msg_find_hclass(), like  msg_href_t *href = msg_find_hclass(msg_mclass(msg), name, NULL);  msg_header_t **slot = (char *)sip + href

Re: [Sofia-sip-devel] Move documentation from *.c to *.h

2009-03-02 Thread Pekka Pessi
2009/3/2 Stefano Sabatini ssabat...@reilabs.com: Is it OK what in subject? I think the rationale is quite obvious, docs should be documented in the interface rather than in the implementation, also this avoids duplication. I think the documentation should as close to implementation as

Re: [Sofia-sip-devel] how to ignore 302 redirect responses (NUA)

2009-03-02 Thread Pekka Pessi
2009/2/26 techsgin techs...@gmail.com: We would like to know how to ignore 302 redirect responses. It is not possible to disable only 302 recursion, but you can limit error recursion in general with NUTAG_RETRY_COUNT(0). -- Pekka.Pessi mail at nokia.com

Re: [Sofia-sip-devel] srand / rand win32 problem

2009-03-03 Thread Pekka Pessi
2009/3/2 Della Betta Filippo filippo.dellabe...@telecomitalia.it:  I noticed that su_random implementation on windows is not working correctly since srand() must be called per-thread (see http://msdn.microsoft.com/en-us/library/f0d4wb4t.aspx). I suggest a patch like that attached to overcome

Re: [Sofia-sip-devel] How to get the state of a nua_handle

2009-03-03 Thread Pekka Pessi
2009/3/3 Stefano Sabatini ssabat...@reilabs.com: I was investigating about how to get the state of a nua_handle, couldn't find nothing about it. The current state is not very well defined, nor it is kept in handle. I also wonder if it is possible for example to extract other informations

Re: [Sofia-sip-devel] Authentication

2009-03-03 Thread Pekka Pessi
2009/3/3 Stuart Whelan stu...@somepointinthefuture.co.nz:  I have a registrar that is embedded in my application, and I would like to add authentication to it. Would anyone be willing to throw up a quick sample or example that shows what steps to go through to validate a register request

Re: [Sofia-sip-devel] Retrying UDP does not send message to network

2009-03-04 Thread Pekka Pessi
2009/1/29 Fabio Margarido fabiomargar...@gmail.com: I'm having a problem when I try to send a large INVITE with Sofia. When the stack detects that my INVITE exceeds the MTU and the default transport is UDP, it correctly tries to send it via TCP. However, if the TCP connection fails, when sofia

Re: [Sofia-sip-devel] Short headers inside multipart body not parsed

2009-03-05 Thread Pekka Pessi
2009/3/4 Fabio Margarido fabiomargar...@gmail.com: the attached set of patches against current darcs fixes the issue of parsing headers in compact form inside a multipart payload. I've also tried to include some tests in test_msg.c, but don't know if they're enough. Thanks. I've applied the

Re: [Sofia-sip-devel] Building sofia-sip with mingw

2009-03-06 Thread Pekka Pessi
2009/3/6 Jonas Jalminger jo...@jalminger.com: Building sofia-sip on Windows using mingw/msys is hard. I have not seen too many posts regarding this so I will share my experience so far. Thanks for sharing. I started by doing an autreconf in the top directory. I'm afraid that this is a

Re: [Sofia-sip-devel] Variable number of tag parameters

2009-03-09 Thread Pekka Pessi
2009/3/9 Fabio Margarido fabiomargar...@gmail.com: I'd like to know it there is a way for me to pass a variable number of tagged parameters for Sofia functions. For example, I have an array with an unknown number of strings that represent headers, and I'd like to call nua_invite() with a

Re: [Sofia-sip-devel] Variable number of tag parameters

2009-03-09 Thread Pekka Pessi
...oops, too fast clickin... 2009/3/9 Fabio Margarido fabiomargar...@gmail.com: I'd like to know it there is a way for me to pass a variable number of tagged parameters for Sofia functions. For example, I have an array with an unknown number of strings that represent headers, and I'd like to

Re: [Sofia-sip-devel] Variable number of tag parameters

2009-03-09 Thread Pekka Pessi
2009/3/9 Aleksander Morgado sofia-sip-de...@aleksander.es:   nua_invite(nh, ...other tags..., TAG_NEXT(tags)); Isn't TAG_END() needed here at the end? Or is it implicitly taken from the tag list? The NULL pointer at tags[n_headers].t_tag is used as sentinel. NULL is as good as TAG_END() --

Re: [Sofia-sip-devel] Building sofia-sip with mingw

2009-03-13 Thread Pekka Pessi
2009/3/13 Della Betta Filippo filippo.dellabe...@telecomitalia.it: Hm, wonder what was the reason to drop the extern in first place? What do you mean ? Sorry I don't get it :( At some point in Sofia history, there was extern there. But it has been removed, and I wonder (aloud) why. generated

Re: [Sofia-sip-devel] a=sendrecv Not sent during SIP INVITE

2009-04-29 Thread Pekka Pessi
2009/4/24 Saurav SAHU saurav.s...@st.com: I am using Sofia-sip 1.12.10 for running my applciation. In my application with Sofia-sip 1.12.10, I would like to send an INVITE message with SDP attribute parameter a=sendrecv. ... However, the problem is that we do not observe SDP attribute

Re: [Sofia-sip-devel] TCP UAS resource leak [win]

2009-04-29 Thread Pekka Pessi
2009/4/29 Arsen Chaloyan achalo...@yahoo.com: Is it leaking sockets? Yes, at least netstat clearly shows it. Does it help to use tport_shutdown0(self, tport_has_queued(self) ? 0 : 2); instead of tport_shutdown0(self, 0); Yes, it helps, at least it fixes the reported issue. OK, I'll push the

Re: [Sofia-sip-devel] Broken session timer behavior when initial INVITE has multipart/mixed payload

2009-04-29 Thread Pekka Pessi
2009/4/29 Pekka Pessi ppe...@gmail.com: The idea was to make session timer work behind the back of application.  Now NUTAG_AUTOACK() behaves like NUTAG_AUTOANSWER(), the re-INVITE auto-ACKs unless you explicitly forbid it. I'll add a mention of it to the NUTAG_AUTOACK() documentation.. Looks

Re: [Sofia-sip-devel] How to avoid m= audio 0 RTP/AVP 19 being prepended to m= image 9000 udptl t38

2009-04-29 Thread Pekka Pessi
2009/4/27 Kaustubh Madhav PATWARDHAN kaustubh.patward...@st.com: With this I am expecting to see:- m= image 9000 udptl t38   a= T38MaxBitrate:14400   a=T38FaxRateManagement:transferredTCF But when I see in the network capture file, I am seeing this request incorporates a request for media

Re: [Sofia-sip-devel] Regarding destroying the irq, orq and nta_leg

2009-04-30 Thread Pekka Pessi
2009/4/29 Krishna Kishore G gki...@gmail.com: Hi,   I am trying to build a b2bua using NTA. I need some clarifications regarding the destroying of objects like nta_icoming etc.  For intial request i get a call back with irq,leg,sip For example: static int proxy_request(union

Re: [Sofia-sip-devel] Session-Expires

2009-05-12 Thread Pekka Pessi
2009/4/29 Linus Surguy li...@magrathea-telecom.co.uk: We have a b2bua application where session timers are used on the outbound leg. The session timer functionality is requested by the far end with a response in the 200 OK. Require: timer  Session-Expires: 900;refresher=uac These session

Re: [Sofia-sip-devel] tport.c:3155: tport_tsend: Assertion `self' failed.

2009-05-13 Thread Pekka Pessi
2009/5/8 Markus Bucher buch...@in.tum.de: Ok, I found what was wrong. I had a Via-Header to describe that the Message was routed on an P2P-network: Via: SIP/2.0/IGOR 3ad326ea83e06744319ec4711a0c025b74327d01 The problem is that Sofia tries to send the message to this host, which it

Re: [Sofia-sip-devel] Require: 100rel in 180 Ringing Message

2009-05-15 Thread Pekka Pessi
2009/5/15 Jerry Richards jer...@tonecommander.com: If I invoke nua_respond(nh, 180, Ringing, SIPTAG_REQUIRE_STR(100rel)) alone, then sofia doesn't send out the 180 Ringing message at all. Does your client indicate that it supports 100rel? If not, then Sofia eats your 180. -- Pekka.Pessi mail

Re: [Sofia-sip-devel] TAGS Seg Fault

2009-06-25 Thread Pekka Pessi
2009/6/21 Miguel Goncalves mig...@netvisao.pt: ...            char *header;            header = sip_header_as_string( cli-home, (void*) sip-sip_content_type);            printf(\nCONTENT TYPE - %s\n, header);        } but i just keep getting : INVITE : 200 OK CONTENT TYPE - (null) can

Re: [Sofia-sip-devel] SIPTAG_HEADER_STR(Expires: 240) in nua_invite() Causes 900 Internal Error

2009-06-25 Thread Pekka Pessi
2009/6/24 Jerry Richards jer...@tonecommander.com: If I include an Expires: 240 header line in my nua_invite() call, it causes sofia-sip to generate the following error and the INVITE is not sent. This happens if I use SIPTAG_HEADER_STR(Expires: 240) or SIPTAG_EXPIRES_STR(240). nua_r_invite

Re: [Sofia-sip-devel] STUN integration

2009-07-02 Thread Pekka Pessi
2009/6/30 Inca Rose incar...@gmail.com: I know the STUN code is not complete or is not 100% integrated on NUA or NTA. I would like to take a look and see if I can finish this work by integrating the missing parts. I have done similar work on my company's own SIP Stack and STUN Stack. All

Re: [Sofia-sip-devel] SIP reinvite example

2009-07-02 Thread Pekka Pessi
2009/6/29 jonathan augenstine jaugenst...@gmail.com: I have been trying to find documentation or examples of how to bridge two calls and then transfer the media to the new endpoint.  Basically, the server places a call to a SIP URI and the call is established with endpoint A.  Then the server

Re: [Sofia-sip-devel] sofia-sip debugging with DUMA

2009-07-03 Thread Pekka Pessi
2009/6/29 Bernhard Suttner bernhard.sutt...@comdasys.com: I am trying to find a certain bug in our application and tried D.U.M.A. ( http://duma.sourceforge.net/ , based on efence). If I run the application, I get the following error: Program terminated with signal 11, Segmentation fault.

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

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] 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

[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] 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(

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] 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] 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] [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] [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 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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

<    1   2   3   4   5   6   >