Thanks for your response. I think I will stay with my own send function. It work well, and I'll may be need managed multiple network interface for dispatching message. regards, C?dric. Date: Wed, 26 Nov 2008 18:54:24 +0800From: gangban.lau@gmail.comTo: pjsip at lists.pjsip.orgSubject: Re: Why pjsip_endpt_send_request_stateless function don't use header Route as target to send the SIP message ?pjsip_endpt_send_stateless() func will call pjsip_process_route_set() to get right destination.But I didn't try this func() yeah.regards,Gang On Wed, Nov 26, 2008 at 3:22 AM, cedric leveque <levequecedric at hotmail.com> wrote: Thanks for you're response. But in pjsip doc we can read that the pjsip_endpt_send_request_stateless function get the target to send message thanks to Request Line and Route Header.So May be there is a bug. I have passed on version 1.0 but I always have the same problems.It seems that high level API like PJSUA or PJSIPUA don't use this function, but pjsip_transport_send. So may be only few users use this function, and this bug has not been see before.I create an INVITE message with a route (because of an outbound proxy) adding in the tdata.Same operation but for response (pjsip_endpt_send_response2) works fine, may be because of the via header ? I have rewrite my own function for sending message. In fact I don't need application obtain target from Request Line or Header Route because I know it thanks to an other Way. So I just use pjsip_endpt_acquire_method and pjsip_transport_send. I can't use pjsip high level API because I need to control all message I received and send. Module as Invite Session managed some message like Prack and don't give me the hand on this. Dialog are too rigid, I need more possibility to modify session. For example, dialog not allow modification of the route setting after initialisation. But my application need to modify it.During a session SIP my application make a hard hand-over. I need to keep session active and modify the route use for this dialog because application send message to an outbound proxy in destination of the callee. So I manage message out of dialog and transaction, and I create my own dialog. regards,C?dric. Date: Wed, 26 Nov 2008 00:50:13 +0800From: gangban.lau@gmail.comTo: pjsip at lists.pjsip.orgSubject: Re: Why pjsip_endpt_send_request_stateless function don't use header Route as target to send the SIP message ?maybe you need take a look at pjsip doc. if you want pjsip stack to handle route set directly, you had better to use pjsip-ua apiOr use high level pjsua api.regards,Gang On Mon, Nov 24, 2008 at 4:25 PM, cedric leveque <levequecedric at hotmail.com> wrote: Why pjsip_endpt_send_request_stateless function don't use header Route as target to send the SIP message ? C?dric. From: levequecedric@hotmail.comTo: pjsip at lists.pjsip.orgDate: Thu, 20 Nov 2008 12:25:36 +0100Subject: pjsip_endpt_send_request_stateless and Route.Hi, I create an INVITE message with pjsip_endpt_create_request and I send it with pjsip_endpt_send_request_stateless. It's work. When I had a route (Route: sip:172.16.0.4:5070;lr) before sending message, pjsip_endpt_create_request doesn't calculate the right target and send the message to the target of the Request line (INVITE sip:172.16.0.4:5065 SIP/2.0) But pjsip_endpt_create_request should choose route as target ? No ? Is it a bug ? I use PJSIP version 0,9 Thanks by advance for yours responses. Regards,C?dric. Discutez sur Messenger o? que vous soyez ! Mettez Messenger sur votre mobile ! Qui vous permet d'enregistrer la TV sur votre PC et lire vos emails sur votre mobile ? la r?ponse en vid?o la r?ponse en vid?o_______________________________________________Visit our blog: http://blog.pjsip.orgpjsip mailing listpjsip at lists.pjsip.orghttp://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org Qui vous permet d'enregistrer la TV sur votre PC et lire vos emails sur votre mobile ? la r?ponse en vid?o la r?ponse en vid?o_______________________________________________Visit our blog: http://blog.pjsip.orgpjsip mailing listpjsip at lists.pjsip.orghttp://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org _________________________________________________________________ T?l?phonez gratuitement ? tous vos proches avec Windows Live Messenger? !? T?l?chargez-le maintenant ! http://www.windowslive.fr/messenger/1.asp -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20081126/55b4ee6d/attachment-0001.html>