Re: [Sofia-sip-devel] [sofia-sip-devel] digest authorization using HA1 directly

2011-01-26 Thread Pekka Pessi
Hi Paulo,

2011/1/13 Paulo Vicentini vicentini.pa...@gmail.com:
 Attached is hack to use HA1 with sofia-sip
 Example:
 nua_authenticate(nh, SIPTAG_EXPIRES_STR(3600), NUTAG_AUTH(authentication),
 TAG_END())

 where authentication is string: Digest-HA1:realm:user:HA1

I did it in a more complex way, so you should have

HA1+Digest:realm:user:HA1+hash

For example

HA1+Digest:ims3.so.noklab.net:user1:HA1+c0890ff7a4fadc50c45f392ec4312965

-- 
Pekka.Pessi mail at nokia.com

--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
___
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel


Re: [Sofia-sip-devel] Multi home and sofia-sip

2011-01-26 Thread mikhail.zabaluev
Hi,

 -Original Message-
 From: ext Inca Rose [mailto:incar...@gmail.com]
 Sent: Friday, January 21, 2011 3:50 PM
 To: Pekka Pessi
 Cc: sofia-sip-devel@lists.sourceforge.net
 Subject: Re: [Sofia-sip-devel] Multi home and sofia-sip
 
 Also there is no way to check from which NIC the proxy is reachable,
 imagine a VPN situation where the proxy is only
 reachable from the VPN but not from the real NIC.

This is not fully solvable on Linux, I believe. You can read the routing table, 
but it can change between the moment you read it and the moment you try to send 
a message.
I think a practical approach is to see which interface has the default gateway 
route, and treat it as the source interface for purposes of Via/Contact/etc. 
This will cover the majority of UA cases with VPN and otherwise. The change 
detection is still needed, though, at least after transport timeouts or 
transactions timing out with no responses.

In fact, the IP binding announced in headers should not matter for modern day 
proxies, as long as they use symmetric response routing as indicated by the UA, 
and the UA updates the registration contact based on the reflected address. 
Unfortunately, in some cases the proxies are too picky.

-- 
  Mikhail
--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
___
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel


Re: [Sofia-sip-devel] Sip messages truncated

2011-01-26 Thread Pekka Pessi
Hi Philippe,

2011/1/21 Philippe Maymat pmay...@keyyo.com:
 Since I allowed th multidialog sent in Notify, I received fragmented
 messages and it seems that the message is truncated by th sofia SIP
 stack because ethereal show all informations.

Check the Content-Length from the ethereal, is it correct? It would
help if you could save the problematic message from ethereal and send
it on the list, too.

-- 
Pekka.Pessi mail at nokia.com

--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
___
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel


Re: [Sofia-sip-devel] Multi home and sofia-sip

2011-01-26 Thread Pekka Pessi
Hi Inca,

2011/1/21 Inca Rose incar...@gmail.com:
  What about the selection of Contact and Via and Transport on a multi-home 
 environment ?
 I remember that the selection was not consistent, for example sending the 
 packet from NIC1 while selecting Via / Contact from NIC2.

This is a problem that has no generic solution, at least not in Linux.
Can you bind sockets or applications to a NIC in iOS?

 Also there is no way to check from which NIC the proxy is reachable, imagine 
 a VPN situation where the proxy is only
 reachable from the VPN but not from the real NIC.

 Where can I add iOS implementation for the Network change detection ??

See nua_register.c/nua_network_changed_cb() and su_os_nw.c and
su_root_add_network_changed()

-- 
Pekka.Pessi mail at nokia.com

--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
___
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel