Re: [Sofia-sip-devel] One more question about cloned task
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 how do you handle the UAS side? What kind of task you plan to implement in the cloned task, some kind of db lookup? When I get another message from uac, such as ACK, how can I reuse the same cloned task and the same leg that was previously created or I should recreate it for ACK as well? If you want to see later messages from UAC, you need to insert a Record-Route header into the request which you forward towards the UAS. Where can I store the cloned task and the nta_leg_t object and have it be reused for the next message received from the same UAC? The problem with legs is that you have no control on Call-ID and From/To tags, they are chosen by UAC/AUS. Also, a dialog may loop through your proxy multiple times. It is better to insert a Record-Route URL that you can use to lookup the dialog and the associated state from some kind of hash table. (E.g., insert a hashed identifier of your dialog in user-part of the RR URI, use that to lookup from the hash table). If the RR points to different nta_agent_t instances, you need to insert two Record-Route headers, one used by UAC, another by UAS. With two Record-Route headers you can also easily make difference between requests sent by original UAC and UAS. You have to remove the resulting Route headers when processing the later messages, too. -- Pekka.Pessi mail at nokia.com -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev ___ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel
Re: [Sofia-sip-devel] Multiple transports with single nua_create instance
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 we need to create a separate stack instance to support this ie multiple nu_create calls with unique NUTAG_URL for each instance. Unfortunately, you can only specify two transports in nua_create(), one with NUTAG_URL() another with NUTAG_URL_SIPS(). -- Pekka.Pessi mail at nokia.com -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev ___ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel
Re: [Sofia-sip-devel] Fixed documentation of the detailed client call model
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 -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev ___ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel
Re: [Sofia-sip-devel] Using TLS with sofia
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 sample code to show how to use it? You should have root (cafile.pem) and server certificates ready (agent.pem) in a suitable directory ($HOME/.sip/auth by default). -- Pekka.Pessi mail at nokia.com -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev ___ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel
Re: [Sofia-sip-devel] Using TLS with sofia
Hi, -Original Message- From: ext Pekka Pessi [mailto:ppe...@gmail.com] Sent: Friday, August 06, 2010 5:26 PM To: nauman762-h...@yahoo.co.uk Cc: sofia-sip-devel@lists.sourceforge.net Subject: Re: [Sofia-sip-devel] Using TLS with sofia 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 sample code to show how to use it? You should have root (cafile.pem) and server certificates ready (agent.pem) in a suitable directory ($HOME/.sip/auth by default). IIRC absence of these files was made non-fatal in a patch. Now it's enough if the root CA can be verified by OpenSSL's default verification handler. I'd look into using sips: URIs for registration headers and NUTAG_URL. Best regards, Mikhail -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev ___ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel
[Sofia-sip-devel] (no subject)
I want to initialize a video streaming service (by VLC) by sending a message sip-prompt client to server when I use the following SDP but its not working nua_invite(handle,SIPTAG_CONTENT_TYPE_STR(application/sdp) , SOATAG_USER_SDP_STR(v=0\n o=- 2890844536 28008255796 IN IP4 192.168.200.212 \nc=IN IP4 192.168.200.212 \nt=0 8\na=tool:vlc 1.1.2\na=recevonly\na=type:broadcast\nm=video 52862 RTP/AVP 96\na=rtpmap:96 H264/9\na=fmtp:96\nm=audio 43714 RTP/AVP 97\na=rtpmap:97 mpeg-generic/44100/2\na=fmtp:97\n), TAG_END ()); help me please -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev ___ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel
[Sofia-sip-devel] Initialize video in client with SDP sent to server
I want to initialize a video streaming service (by VLC) by sending a message sip-prompt client to server when I use the following SDP but its not working nua_invite(handle,SIPTAG_CONTENT_TYPE_STR(application/sdp) , SOATAG_USER_SDP_STR(v=0\n o=- 2890844536 28008255796 IN IP4 192.168.200.212 \nc=IN IP4 192.168.200.212 \nt=0 8\na=tool:vlc 1.1.2\na=recevonly\na=type:broadcast\nm=video 52862 RTP/AVP 96\na=rtpmap:96 H264/9\na=fmtp:96\nm=audio 43714 RTP/AVP 97\na=rtpmap:97 mpeg-generic/44100/2\na=fmtp:97\n), TAG_END ()); help me please -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev ___ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel