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
Try modifying "rem_addr" variable in transport_udp file.
On Wed, Sep 19, 2012 at 1:23 PM, John Nash john.nash778@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@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
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@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@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@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
I got this problem too, and I found any in dialog request include ACK, UPDATE and reinvite request will try to send to ip address which resolved by DNS from dialog route set's first route server. although I set the outbound to another ip, is it a bug?
Furthermore, I use TCP connect to server and send INVITE, but all above in dialog request (ACK, UPDATE etc) will still use udp ip which from wrong dns result, if I disable udp, then pjsip will not send any in dialog request any more, is it right behavior? Thanks!
At 2012-09-20 13:08:41,"John Nash" john.nash778@gmail.com wrote:
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@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@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@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org