PjsUA BYE issue when using Outbound proxy‏

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Yes I found the line where I found rem_addr..
status = pj_ioqueue_sendto(tp->key,(pj_ioqueue_op_key_t*) &tdata->op_key,
aCipher,&aCipherLength, 0, rem_addr, addr_len);

I changed address using below method...

pj_sockaddr_init(pj_AF_INET(), &default_addr,pj_cstr(&s, <OutBoundIP>),
<OutBoundPort>);
rem_addr = &default_addr;
addr_len = sizeof(pj_sockaddr_in);
status = pj_ioqueue_sendto(tp->key,(pj_ioqueue_op_key_t*) &tdata->op_key,
aCipher,&aCipherLength, 0, rem_addr, addr_len);

This compiles fine but I wonder if this is correct way to change as I see
strange problems when i run the exe...

1- In windows XP (Service Pack2) It works fine (Which i am using to
compile).
2- In Vista machine i get error when it tries to send message but if i used
"Compatibility Mode" it works fine.

Note: When I do not change this address and just use outbound proxy
application works in Vista as well

Regards,

J. Nash



On Thu, Sep 20, 2012 at 12:38 AM, varun v <varun.v2021 at gmail.com> wrote:

> Try modifying "rem_addr" variable in transport_udp file.
>
> On Wed, Sep 19, 2012 at 1:23 PM, John Nash <john.nash778 at gmail.com> wrote:
>
>> I am using pjsua lib in version 1.14.2.
>>
>> In my scenario i am using Outbound proxy by assigning value to
>> ua_cfg.outbound_proxy[0] as following
>> ua_cfg.outbound_proxy[0] = "sip:<IP:port>;lr;hide"
>>
>> Now I expect pjsua to send all messages/responses Ack etc to OutBound
>> Proxy server I set but in cases of some Proxy Pjsua is trying to send BYE
>> to another address (It picks that address from the Contact of 200 OK...It
>> uses contact address in Request URI of BYE which is ok...but it also uses
>> that address to actually send packet)
>>
>> What kind of changes or hack i can do to make pjsip send all messages to
>> Outbound proxy only.
>>
>> Regards,
>>
>> Nash
>>
>> _______________________________________________
>> Visit our blog: http://blog.pjsip.org
>>
>> pjsip mailing list
>> pjsip at lists.pjsip.org
>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>>
>>
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20120920/9d0d5277/attachment-0001.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux