[Sofia-sip-devel] building simple redirect server - nua or nta ?

2009-12-25 Thread Dave Horton
I'm just getting familiar with the sofia sip stack, and the first client app that I want to build is a very simple (from a sip standpoint anyways) redirect server. I'll receive INVITEs and generate 3XX responses with one or more Contact headers. Performance is critical in terms of supporting c

[Sofia-sip-devel] question on lifetime of msg_t, sip_t objects after stateless callback

2010-01-03 Thread Dave Horton
Hi - I am writing a fairly simply stateless redirect server. It is multithreaded, where the main thread creates the root task and runs the thread loop, and receives incoming SIP invites. If I simply respond to the INVITE with nta_msg_treply in the main thread, everything works. However, if

Re: [Sofia-sip-devel] question on lifetime of msg_t, sip_t objects after stateless callback

2010-01-04 Thread Dave Horton
Thanks Aleksander, I had actually seen your thread from some time ago and it was what inspired me to take this general approach. So thanks twice! I have figured out some of my problem, and also have a few questions about some of the suggestions below. First, after fiddling with my code, I see

Re: [Sofia-sip-devel] question on lifetime of msg_t, sip_t objects after stateless callback

2010-01-04 Thread Dave Horton
Hi Aleksander, I did a few tests, and this is what I learned: 1) Sending the provisional response definitely seems to mark the message for deletion, reclamation, whatever. I did a simple test of trying to send a final response from the main loop right after sending a 100 Trying and got the sa

Re: [Sofia-sip-devel] question on lifetime of msg_t, sip_t objects after stateless callback

2010-01-04 Thread Dave Horton
>>There aren't successful INVITEs? What is it exactly what your app is doing? Sorry, I was classifying any non-200 response as non-success. Mainly I am returning 300 Multiple Choices responses. On Jan 4, 2010, at 11:59 AM, Aleksander Morgado wrote: > Hi Dave, > > > 1) Sending the provision

[Sofia-sip-devel] simple UAS crashing in freeaddrinfo - is this a threading problem of some kind?

2010-01-07 Thread Dave Horton
Per an earlier thread, I am building a very simple multithreaded UAS redirect server. (Note: in my earlier thread I was running it in stateless mode, but now I am running in stateful mode). The simple scenario is an INVITE that gets handed to a different worker thread, a short time later the m

Re: [Sofia-sip-devel] simple UAS crashing in freeaddrinfo - is this a threading problem of some kind?

2010-01-08 Thread Dave Horton
My bad. I was accessing message data associated with an su_msg_r object after that memory had been automatically reclaimed by the system. I fixed that and all good now. Thanks again for the help, Aleksander. Dave On Jan 8, 2010, at 6:04 AM, Aleksander Morgado wrote: > Hi Dave, > > Per an ea

Re: [Sofia-sip-devel] question on lifetime of msg_t, sip_t objects after stateless callback

2010-01-09 Thread Dave Horton
Just to follow up on this. I modified the code to run in stateful mode and did not encounter the problems I had in stateless. I also see that in stateful mode the stack does generate a 100 Trying if the N1 timer expires, and that it also handles an incoming CANCEL of a transaction by sending a

[Sofia-sip-devel] sample code for proxy server using nta?

2012-12-21 Thread Dave Horton
Can anyone point me to an example, simple or otherwise, showing how to build a sip proxy service using nta (stateless or stateful) ? -- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access P

[Sofia-sip-devel] case of nta not resending ACK when get 200 OK retransmitall

2013-09-15 Thread Dave Horton
I am building a user agent client using nta in stateful mode. I have noticed when I send a successful INVITE, after I generate the ACK for the 200 OK if the remote side happens to retransmit the 200 OK (i.e., perhaps the ACK got lost) that the sofia stack is not resending the ACK. I am wonde

[Sofia-sip-devel] status of sofia sip

2013-11-17 Thread Dave Horton
I've been using sofia sip quite happily for a few years in various projects, but I am wondering about whether it is still being actively supported. I'm heading into a new project where I will need a lot of 3GPP headers that don't appear to have been implemented in sofia sip, and I've also come

Re: [Sofia-sip-devel] status of sofia sip

2013-11-18 Thread Dave Horton
looking at. Dave On Nov 18, 2013, at 5:33 AM, Andreas Wehrmann wrote: On 11/17/2013 04:53 PM, Dave Horton wrote: > I've been using sofia sip quite happily for a few years in various projects, > but I am wondering about whether it is still being actively supported. I'm >

Re: [Sofia-sip-devel] status of sofia sip

2013-11-18 Thread Dave Horton
t 11:37 AM, Andreas Wehrmann wrote: On 11/18/2013 10:04 AM, Dave Horton wrote: > Hi Andreas - > > Yes, I went back and read your question. Looks like it never really got > answered, and then sidetracked into a specific bug fix discussion. And while > it would be great to get f

Re: [Sofia-sip-devel] nua_invite to IP Adress (DNS problem)

2013-11-27 Thread Dave Horton
Can you set TPORT_LOG=1 and show us the SIP trace of the failed call? On Nov 27, 2013, at 9:09 AM, Alexander Heinrich wrote: I thought that, too So I downloaded a SIP App from the Appstore and tried to call the Mac App with the SIP App and it worked. The Mac App is downloaded from the web. I

Re: [Sofia-sip-devel] nua_invite to IP Adress (DNS problem)

2013-11-27 Thread Dave Horton
Are you actually listening for RTP packets on the port you are advertising in the INVITE (2) ? If not, and the SIP signaling you are generating otherwise looks ok, I would suspect that the Mac app experiences failure in sending initial RTP to that port (receives ICMP destination unreachable

[Sofia-sip-devel] strange bug surfaces on Fedora 20 and Mint using SIPTAG_PAYLOAD_STR

2014-04-24 Thread Dave Horton
I recently came across a problem that manifested only on Fedora 20 and Mint (not on Ubunto or Centos 6.x). When using SIPTAG_PAYLOAD_STR to add a body to an outgoing SIP message, the message goes out without any body; i.e., it's as if that tag was silently ignored. My program would also subsqu

Re: [Sofia-sip-devel] strange bug surfaces on Fedora 20 and Mint using SIPTAG_PAYLOAD_STR

2014-04-24 Thread Dave Horton
return (msg_header_t **)((char *)mo + mc->mc_unknown[0].hr_offset); +if (hc->hc_hash == mc->mc_error[0].hr_class->hc_hash) return (msg_header_t **)((char *)mo + mc->mc_error[0].hr_offset); +if (hc->hc_hash == mc->mc_multipart[0].hr_class->hc_hash) return (msg_header_

Re: [Sofia-sip-devel] strange bug surfaces on Fedora 20 and Mint using SIPTAG_PAYLOAD_STR

2014-04-24 Thread Dave Horton
good patches back into the sofia-sip tree, but i never seem to find the time. That being said, if you want to put some time in to that, I'd be happy to do the actual pushes to gitorious tree, just let me know. Mike On Apr 24, 2014, at 10:56 AM, Dave Horton wrote: Thanks, that looks e

[Sofia-sip-devel] obtaining sip message as string

2014-07-24 Thread Dave Horton
Hopefully this is a quick question for someone I've been using nta and dealing with the parsed message structures that it provides. But now I have a need to get a representation of an incoming (or sent) SIP message as a string; e.g. just as it came (or went) over the wire, and a quick scan

Re: [Sofia-sip-devel] Administrator needed

2014-08-02 Thread Dave Horton
I have a github repo (with history from gitorious) for sofia that I am using for my own projects, would be happy to have PRs or maintainers https://github.com/davehorton/sofia-sip On Aug 2, 2014, at 5:36 AM, Luca Olivetti wrote: El 02/08/14 05:26, Nikos Balkanas ha escrit: > Ther is no ad

Re: [Sofia-sip-devel] Sofia-sip-devel Digest, Vol 96, Issue 2

2017-07-12 Thread Dave Horton
Just as an FYI, I forked sofia a while back from freeswitch, mainly because my use of sofia is heavily nta-based while freeswitch is nua-based, and I needed various enhancements / fixes. Anyone is welcome to use / contribute if they like https://github.com/davehorton/sofia-sip