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

2010-08-07 Thread Pete Kay
Hi Pekka, Thank you for replying to my email. > > 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. > If you want to se

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

2010-07-30 Thread Pete Kay
Hi, Sorry for one more post to the group. 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. When I get another message from uac, such as ACK, how can I reuse

[Sofia-sip-devel] need help with multi-threaded sip proxy

2010-07-30 Thread Pete Kay
Hi, I have written a very simple multi-threaded sip proxy using cloned task. Basically, I am following the advices from this list as well. In the request_handler, I would create a new cloned task, that will create the b-leg and forward the INVITE to b-leg. then, when uas replies with 180 or 200

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

2010-06-10 Thread Pete Kay
Hi Aleksander, I have read through all your posts on the mailing list and I would like to implement the same 1 listener , multiple worker model that you are mentioning here. I have question about how to use the SU api to sprawn thread for each incoming INVITE. Can you please share with me the st

[Sofia-sip-devel] multiple processes proxy

2010-04-28 Thread Pete Kay
Hi, I am able to setup a single process proxy listening on port 5060. What I would like to do is to have 1 sofia process listening on port 5060, and I can have 4 processes each running the proxy logic. Each process would bind to a specific CPU. This one sofia process would distribute to one of

[Sofia-sip-devel] Sofia stateful Proxy

2010-03-24 Thread Pete Kay
Hi, I am trying to use sofia to implement a stateful SIP proxy. I have a question about the sofia API. When a 200 OK is received, how do I know which INVITE is the 200 OK correlates to? How do I match the corresponding INVITE with the incoming 200 OK? Thanks, Pete -

[Sofia-sip-devel] newbie need help with compiling hello sample

2010-02-26 Thread Pete Kay
Hi , I am getting the following error : [r...@anne-d sofia]# make gcc `pkg-config sofia-sip-ua --cflags --libs` -DCALLER \ -g -O0 -o hello-caller hello.c Package sofia-sip-ua was not found in the pkg-config search path. Perhaps you should add the directory containing `sofia-sip-ua.pc' to