[Sofia-sip-devel] setting uri with file name

2010-03-29 Thread Vikas Bhat
Hi All,
My objective is to set URI with file name appended in *URLTAG_URL(pUrl) of
SOFIA STACK API nta_outgoing_tcreate.*
Below is the URI creaion procedure.

su_home_t home[1] = { SU_HOME_INIT(home) };
char buffer[200];
URI uri= m_pRequest-GetURI();
Content *pContent = uri.GetContent();
sprintf(buffer,sip:%...@%s:%d,pContent-url.GetUser(),
pContent-url.GetHost(), pContent-url.GetPort());

the buffer value here is a...@ip:portdef/ann.wav

url_t *pUrl= url_make(home,buffer);

After creating uri using  the above mentioned steps and putiing the value in
stack api below

orq=nta_outgoing_tcreate(
   URLTAG_URL(pUrl),
);


The stack is receiving url with filename/path truncated.
i:e stack receives just a...@ip:port

Can you guide me how to append the wave file name in above scenerio.


Thanks
Vikas Bhat
**
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel


[Sofia-sip-devel] Null Callid and To Tag

2010-07-26 Thread Vikas Bhat
Hi ALL,
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.
Can anybody guide me if i need to use any particular version of SOFIA STACK
for getting the above functionality or Do i need to change any stack file.


Thanks
Vikas Bhat
--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/___
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-08-05 Thread Vikas Bhat
Hi
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.

is there any stack configuration to be enabled from SOFIA STACK side to
Check such scenerios and respond appropriately.

Thanks
Vikas Bhat
On Wed, Aug 4, 2010 at 6:55 PM, Pekka Pessi ppe...@gmail.com wrote:

 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 received
 from network if CallID header is missing.

 On client side, it generates a CallID automatically, if application
 has not provided one. Likewise, it generates a random To tag if
 application has not provided one.

 The To tag is always empty or missing in initial requests; do you
 propose that a Sofia should automatically try to clear any call if a
 response to an INVITE request contains empty/null To tag?

 --
 Pekka.Pessi mail at nokia.com

--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm___
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel


Re: [Sofia-sip-devel] Prack

2011-03-18 Thread Vikas Bhat
Hi,
i am implenting early dialog in Sofia sip application using prack.
the application is stateless using NTA modul.

my application send invite with Supported header,receives 183 with RSeq.
then the applcation tries to send the PRACK message as shown below but it
fails

orq=nta_outgoing_prack(leg,  //leg created before sending the invite
   (nta_outgoing_t *)dialogue-orq,   // this is orq of INVITE message send
earlier using nta_outgoing_tcreate
   (nta_response_f *)sofia_sip_response, //call back function for
receiving response
   (nta_outgoing_magic_t*)dialogue,  //dialogue pointer that
is created after sending initial INVITE
   NULL,
   NULL,
   NTATAG_STATELESS(1),
  SIPTAG_RACK(pRackHdr), //added rack header
  TAG_END());

Kindly guide me to implement Prack .

Thanks
Vikas
--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d___
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel