|
From: | Felix Lechner |
Subject: | Re: [osip-dev] Transition to v4 API |
Date: | Fri, 26 Jul 2013 15:41:46 -0700 |
2013/7/26 Felix Lechner <address@hidden>
Hello,Hi -again- Felix,I recently ported Linphone to the new API but have a few questions:Good!1. What is the best way to determine the presence of 'eXosip_t' for 'autoconf'? Linphone ships with a 'exosip.m4' macro, but it needs to be updated. There is no pre-processor declaration for EXOSIP_VERSION, and no 'pkg-config' file (although there is one for 'libosip2'). Should the version be determined by calling eXosip_get_version()?I'm not maintaining anything related to m4, pkg-config, etc... I think I have updatedsome info when going to 4.0. However, nothing verified.In order to detect version 4.0, you should check if the installed librarycontains eXosip_malloc which is specific to 4.0:
/**
* Allocate an eXosip context.
*
* @return a new allocated eXosip_t instance.
*/
struct eXosip_t *eXosip_malloc (void);2. Does the new event EXOSIP_CALL_NOANSWER now also include the old EXOSIP_CALL_TIMEOUT?According to me, EXOSIP_CALL_TIMEOUT is not fired for years by exosip.You can safely remove that code and it won't hurt!EXOSIP_CALL_NOANSWER is not new, and will fire (as before) when you don'treceive any "final answer" within 180 seconds from a SIP proxy.3. What happened to the events EXOSIP_IN_SUBSCRIPTION_RELEASED, EXOSIP_SUBSCRIPTION_UPDATE and EXOSIP_SUBSCRIPTION_CLOSED?They were deleted because they was NOT used. You can safely remove the codethat use them....4. Does the option EXOSIP_OPT_DONT_SEND_101 still exist?Once upon a time I was doing fancy signaling: I was young ;)Now, I'm older and... I have customer... so I removed this fancyoption...101 message are not always dropped in _eXosip_snd_message:if (sip->status_code == 101)return OSIP_SUCCESS;Thank youYou're welcome!AymericFelix Lechner
_______________________________________________
osip-dev mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/osip-dev
--Antisip - http://www.antisip.com
[Prev in Thread] | Current Thread | [Next in Thread] |