> Hello all,
>
> I'm doing an application which send several invites with 1 nua. I send all
> the invites and wait for the different responses. First, is it possible to do
> that? or must I send the next invite after the result of the previous?
>
> In fact, when I receive the different remote sdp (during nua_i_state), I
> don't suceed to know from which destination it comes from. In nua_i_state
> function, I didn't find any tag which permits to know the destination.
>
> Thank you very much for helping me.
>
> Jean
I solved the problem using nua_handle_remote() which get the remote address
(From/To header) of operation handle :
sip_to_t const * nua_handle_remote (nua_handle_t const *nh)
I access remote sdp and remote adress in my app_i_state :
void app_i_state(int status,
char const *phrase,
nua_t *nua,
nua_magic_t *magic,
nua_handle_t *nh,
nua_hmagic_t *hmagic,
sip_t const *sip,
tagi_t tags[])
{
...
/* if state is ready*/
if (state==8) {
char const *remote_sdp;
tl_gets(tags,
SOATAG_REMOTE_SDP_STR_REF(remote_sdp),
TAG_END());
printf("remote sdp : \n%s\n", remote_sdp);
sip_to_t *mysipto=nua_handle_remote(nh);
printf("username : %s\n", mysipto->a_url->url_user);
...
}
_________________________________________________________________
Retrouvez vos e-mails Hotmail sur votre mobile
http://www.messengersurvotremobile.com/?d=hotmail
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Sofia-sip-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel