[Sofia-sip-devel] make call with sofia sip
hello please how can i make call with sofia sip?? please help me-- 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] how make video conference call
hello please how can i make call(video conference) with sofia sip? thank you -- 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] how make video conference call
Dne 10.8.2010 10:28, peter hanshon napsal(a): hello please how can i make call(video conference) with sofia sip? thank you Hello Peter, sofia is a library for handling SIP signaling. It can help you to establish calls, negotiate codecs, etc. What it does not help you with is the media part of calls (sending, recieving, mixing audio and video streams). You can take a look for example here: http://wiki.opensource.nokia.com/projects/SofiaTutorial It might help you with your first steps, but be sure that to make call(video conference) you will have to jump through lot of hoops. Regards Martin -- 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] how make video conference call
Dne 10.8.2010 11:10, peter hanshon napsal(a): Thank you sir for you response I have another problem, so i want to initialize a video streaming service (by VLC) by sending a message sip client(want to watch video) to server(server of video) 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 \n c=IN IP4 192.168.200.212 \n t=0 8\n a=tool:vlc 1.1.2\n a=recevonly\n a=type:broadcast\n m=video 52862 RTP/AVP 96\n a=rtpmap:96 H264/9\n a=fmtp:96\n m=audio 43714 RTP/AVP 97\n a=rtpmap:97 mpeg-generic/44100/2\n a=fmtp:97\n), TAG_END ()); Hello Peter, you will have to try much harder when asking questions here. It would take a crystal ball to guess where the problem might be. There are lot of people out there willing to help, but you must give us better chance. If you want any assistance, include following details: - Your setup (i.e. who is client, who is server, what are their addresses) - Debug outputs and sofia messages (check this http://wiki.freeswitch.org/wiki/Sofia#Debugging_Sofia-SIP) - Relevant pieces of code (single call to function is not enough) - What you have already tried Without these, no one will bother trying. Also, please always include mailing list address in To or Cc. Regards Martin -- 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] rtp sofiasip
hello does sofia sip support and manage rtp because i make call but it haven't flow rtp thank you -- 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] rtp sofiasip
Dne 10.8.2010 12:04, peter hanshon napsal(a): hello does sofia sip support and manage rtp because i make call but it haven't flow rtp thank you Dear God, Peter! Please read the mails I have sent you or at least some documentation. Sofia does not handle any rtp, it can only negotiate all that is necessary for successful rtp connection, like codecs, addresses, ports, etc. You have to use another library to do the audio/video for you. Martin -- 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] sofia-sip not sending correct Via headers in 200 OK to NOTIFY request
Hi, Would highly appreciate if someone can tell me if this issue is resolved in sofia-sip stack or not. Thanks On Aug 8, 2010, at 2:49 AM, Gaurav Srivastva wrote: Hi, The notify request to the subscription is being responded to by Sofia-Sip stack with one Via header from the SIP request missing. In the NOTIFY, the Via header is, Via: SIP/2.0/UDP ift-uca.mitel.com:5060;branch=z9hG4bK693c3fbd3b6fa114ad984c7a522a1964.1,SIP/2.0/UDP 172.16.14.209:6015;branch=z9hG4bK86266194643563 In the 200 OK response, the Via header being sent is, Via: SIP/2.0/UDP ift-uca.mitel.com:5060;branch=z9hG4bK693c3fbd3b6fa114ad984c7a522a1964.1;received=172.16.14.209 I'm using nua to send the subscribe request. handle = nua_handle(appl-nua, NULL, SIPTAG_FROM(from_header), SIPTAG_TO(to_header), SIPTAG_ROUTE(route_header), SIPTAG_CONTACT(contact_header), TAG_END()); if(handle) { nua_subscribe(handle, SIPTAG_EXPIRES_STR(3600), SIPTAG_EVENT_STR(presence), SIPTAG_ACCEPT_STR(application/pidf+xml), TAG_END()); } The platform is OSX and xcode IDE. Can someone tell me what I'm doing wrong or is this a bug in sofia-sip stack? Thanks Gaurav -- 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 -- 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] One more question about cloned task
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 considered using su_msg_send() and su_msg_reply() to talk with the DB thread instead of multi-threaded agent? Please note that while nta functions are thread-safe, the nta objects are not. 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. I am looking at http://sofia-sip.sourceforge.net/refdocs/sip/group__sip__record__route.html which shows how to creat a record_route structure. How do I add it to the outgoing sip message? Which api should I use? That depends on how you plan to do the forwarding. E.g., sip_record_route_t *rr = sip_record_route_format(msg_home(msg), ...); msg_header_insert(mg, NULL, (msg_header_t *)rr); Also, should I store both UAC-related RR and UAS-related RR in the RR-URI's user part? User part is easiest, I think. In the hash table you suggested, should I use an UUID to represent each leg ( one for UAC and the other one for UAS) and then store the leg corrspond to each UUID? I would not use legs: if you process same request twice (say, one of your users forwards his calls to another user) the legs cannot make difference between loops. I'd process each incoming request either statelessly or with default leg, and look for the UUID from the topmost route. Also, I don't understand why it matter whether I am using one or two nta_agent_t. I still need two UUID ( one for each leg ) regardless of whether I use one or two nta_agent_t right? Or am I missing something? Well, in principle you could do with one UUID and RR if you used one agent. You have to remove the resulting Route headers when processing the later messages, too. Which API can I use to remove the Route header and when you say later messages, what are you referring to? When should the Route header be removed? The RFC 3216 sections 16.4 and 16.12 describes how the Route header should be processed. Basically, when you receive a request with Route header, you should forward request based on topmost Route instead of request-URI. If topmost Route URI belongs to your proxy, you remove it. The lr URI parameter complicates matters, however. -- 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] Null Callid and To Tag
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 should check for bad requests even in stateless mode. is there any stack configuration to be enabled from SOFIA STACK side to Check such scenerios and respond appropriately. See, e.g., the documentation of NTATAG_BAD_REQ_MASK(): http://sofia-sip.sourceforge.net/refdocs/nta/nta__tag_8h.html#23d0ebce6f3a594c5547e0ff72fc5777 -- 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] sofia-sip not sending correct Via headers in 200 OK to NOTIFY request
Thanks for the update. Following is the log from the application showing the problem (check the Via in 200 OK). Another issue I'm seeing is that the User-Agent headr in 200 OK response is different from the one in the SUBSCRIBE message. recv 1559 bytes from udp/[172.16.4.161]:5060 at 20:49:02.635526: NOTIFY sip:mamah...@172.16.11.242:5060;transport=udp SIP/2.0 Via: SIP/2.0/UDP acs-core1.intl.com:5060;branch=z9hG4bKd550206f22aacf124787628c15a9cc50.1,SIP/2.0/UDP 172.16.4.161:6015;branch=z9hG4bK1854423756626772 Max-Forwards: 69 From: sip:mamah...@node99.acs-core1.intl.com;tag=401559811623600 To: sip:mamah...@node99.acs-core1.intl.com:5060;tag=503Ny97jjQH5S Call-ID: 8c98c482-1f63-122e-129a-000bdbd50d90 CSeq: 2 NOTIFY Content-Type: application/pidf+xml Event: presence.account;x-intl-include=im-telephony-account-hotdesk Subscription-State: active Contact: sip:b544219e-1dd1-11b2-8fc7-b23336626566+b5442...@172.16.4.161:6015;transport=udp Content-Length: 862 tport_deliver(0x9242378): msg 0x9248778 (1559 bytes) from udp/172.16.4.161:5060/sip next=(nil) nta: received NOTIFY sip:mamah...@172.16.11.242:5060;transport=udp SIP/2.0 (CSeq 2) nta: Via check: received=172.16.4.161 nta: canonizing sip:mamah...@172.16.11.242:5060 with contact nta: NOTIFY (2) going to existing leg nua: nua_stack_process_request: entering nua(0x9243658): nua_notify_server_preprocess: active () nua: nua_application_event: entering tport_tsend(0x9242378) tpn = UDP/172.16.4.161:5060 tport_resolve addrinfo = 172.16.4.161:5060 tport_by_addrinfo(0x9242378): not found by name UDP/172.16.4.161:5060 tport_vsend returned 558 send 558 bytes to udp/[172.16.4.161]:5060 at 20:49:02.636002: SIP/2.0 200 OK Via: SIP/2.0/UDP acs-core1.intl.com:5060;branch=z9hG4bKd550206f22aacf124787628c15a9cc50.1;received=172.16.4.161 From: sip:mamah...@node99.acs-core1.intl.com;tag=401559811623600 To: sip:mamah...@node99.acs-core1.intl.com:5060;tag=503Ny97jjQH5S Call-ID: 8c98c482-1f63-122e-129a-000bdbd50d90 CSeq: 2 NOTIFY Contact: sip:mamah...@172.16.11.242:5060 User-Agent: sofia-sip/1.12.10 Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE Supported: timer, 100rel Content-Length: 0 nta: sent 200 OK for NOTIFY (2) nua: nua_application_event: entering Thanks - Original Message - From: Pekka Pessi ppe...@gmail.com To: Gaurav Srivastva gaurav...@yahoo.com Cc: sofia-sip-devel@lists.sourceforge.net Sent: Tuesday, August 10, 2010 10:44 AM Subject: Re: [Sofia-sip-devel] sofia-sip not sending correct Via headers in 200 OK to NOTIFY request 2010/8/10 Gaurav Srivastva gaurav...@yahoo.com: Would highly appreciate if someone can tell me if this issue is resolved in sofia-sip stack or not. Are you sure there is no other Via header down the response? ;-o I've never seen the bug on Linux, but I've added test cases for it in nta and nua just in case you manage to compile git head on OSX (patches on any of the problems encountered are welcome). --Pekka On Aug 8, 2010, at 2:49 AM, Gaurav Srivastva wrote: The notify request to the subscription is being responded to by Sofia-Sip stack with one Via header from the SIP request missing. In the NOTIFY, the Via header is, Via: SIP/2.0/UDP ift-uca.mitel.com:5060;branch=z9hG4bK693c3fbd3b6fa114ad984c7a522a1964.1,SIP/2.0/UDP 172.16.14.209:6015;branch=z9hG4bK86266194643563 In the 200 OK response, the Via header being sent is, Via: SIP/2.0/UDP ift-uca.mitel.com:5060;branch=z9hG4bK693c3fbd3b6fa114ad984c7a522a1964.1;received=172.16.14.209 I'm using nua to send the subscribe request. handle = nua_handle(appl-nua, NULL, SIPTAG_FROM(from_header), SIPTAG_TO(to_header), SIPTAG_ROUTE(route_header), SIPTAG_CONTACT(contact_header), TAG_END()); if(handle) { nua_subscribe(handle, SIPTAG_EXPIRES_STR(3600), SIPTAG_EVENT_STR(presence), SIPTAG_ACCEPT_STR(application/pidf+xml), TAG_END()); } The platform is OSX and xcode IDE. Can someone tell me what I'm doing wrong or is this a bug in sofia-sip stack? Thanks Gaurav -- 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] sofia-sip not sending correct Via headers in 200 OK to NOTIFY request
Oh. BTW, this issue is happening in linux as well (the previous captures are from centos5 server). - Original Message - From: Pekka Pessi ppe...@gmail.com To: Gaurav Srivastva gaurav...@yahoo.com Cc: sofia-sip-devel@lists.sourceforge.net Sent: Tuesday, August 10, 2010 10:44 AM Subject: Re: [Sofia-sip-devel] sofia-sip not sending correct Via headers in 200 OK to NOTIFY request 2010/8/10 Gaurav Srivastva gaurav...@yahoo.com: Would highly appreciate if someone can tell me if this issue is resolved in sofia-sip stack or not. Are you sure there is no other Via header down the response? ;-o I've never seen the bug on Linux, but I've added test cases for it in nta and nua just in case you manage to compile git head on OSX (patches on any of the problems encountered are welcome). --Pekka On Aug 8, 2010, at 2:49 AM, Gaurav Srivastva wrote: The notify request to the subscription is being responded to by Sofia-Sip stack with one Via header from the SIP request missing. In the NOTIFY, the Via header is, Via: SIP/2.0/UDP ift-uca.mitel.com:5060;branch=z9hG4bK693c3fbd3b6fa114ad984c7a522a1964.1,SIP/2.0/UDP 172.16.14.209:6015;branch=z9hG4bK86266194643563 In the 200 OK response, the Via header being sent is, Via: SIP/2.0/UDP ift-uca.mitel.com:5060;branch=z9hG4bK693c3fbd3b6fa114ad984c7a522a1964.1;received=172.16.14.209 I'm using nua to send the subscribe request. handle = nua_handle(appl-nua, NULL, SIPTAG_FROM(from_header), SIPTAG_TO(to_header), SIPTAG_ROUTE(route_header), SIPTAG_CONTACT(contact_header), TAG_END()); if(handle) { nua_subscribe(handle, SIPTAG_EXPIRES_STR(3600), SIPTAG_EVENT_STR(presence), SIPTAG_ACCEPT_STR(application/pidf+xml), TAG_END()); } The platform is OSX and xcode IDE. Can someone tell me what I'm doing wrong or is this a bug in sofia-sip stack? Thanks Gaurav -- 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] sofia-sip not sending correct Via headers in 200 OK to NOTIFY request
The Via headers on Linux are sent correctly if TPORT_LOG is not defined. If I define this variable then the problem starts happening. Odd.. On Aug 10, 2010, at 10:44 AM, Pekka Pessi wrote: 2010/8/10 Gaurav Srivastva gaurav...@yahoo.com: Would highly appreciate if someone can tell me if this issue is resolved in sofia-sip stack or not. Are you sure there is no other Via header down the response? ;-o I've never seen the bug on Linux, but I've added test cases for it in nta and nua just in case you manage to compile git head on OSX (patches on any of the problems encountered are welcome). --Pekka On Aug 8, 2010, at 2:49 AM, Gaurav Srivastva wrote: The notify request to the subscription is being responded to by Sofia-Sip stack with one Via header from the SIP request missing. In the NOTIFY, the Via header is, Via: SIP/2.0/UDP ift-uca.mitel.com:5060;branch=z9hG4bK693c3fbd3b6fa114ad984c7a522a1964.1,SIP/2.0/UDP 172.16.14.209:6015;branch=z9hG4bK86266194643563 In the 200 OK response, the Via header being sent is, Via: SIP/2.0/UDP ift-uca.mitel.com:5060;branch=z9hG4bK693c3fbd3b6fa114ad984c7a522a1964.1;received=172.16.14.209 I'm using nua to send the subscribe request. handle = nua_handle(appl-nua, NULL, SIPTAG_FROM(from_header), SIPTAG_TO(to_header), SIPTAG_ROUTE(route_header), SIPTAG_CONTACT(contact_header), TAG_END()); if(handle) { nua_subscribe(handle, SIPTAG_EXPIRES_STR(3600), SIPTAG_EVENT_STR(presence), SIPTAG_ACCEPT_STR(application/pidf+xml), TAG_END()); } The platform is OSX and xcode IDE. Can someone tell me what I'm doing wrong or is this a bug in sofia-sip stack? Thanks Gaurav -- 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