Thanks for the reply Michael Should I check out the master branch or some other branch of freeswitch repo?
I tried compiling sofia-sip from the master branch. I am getting compilation errors like the following one. ../../libsofia-sip-ua/su/sofia-sip/su_log.h:107:98: error: expected expression before ')' token #define su_llog(_l, _ll, _f, ...) _su_llog(_l, _ll, __FILE__, __func__, __LINE__, _f, __VA_ARGS__) I tried with the cross-compiler and also with UBUNTU's native x86_64 compiler. Both complain whenever they reach such macros(__VA_ARGS__). I tried replacing such macros with blank ones, but then some other issues appears somewhere else and so on. This is how i am compiling step 1 >>> sh ./autogen.sh step 2 >>> sh ./configure step 3 >>> sh make Please let me know if i missed something. Thanks and Regards, Anand Mistry Engineer | PES [https://gallery.einfochips.com/Sign.png] Product Engineering Services Software | Embedded | Semiconductor Frost & Sullivan Company of the Year 2013-2014 ________________________________ From: Michael Jerris <m...@jerris.com> Sent: 07 January 2016 19:56 To: Anand Mistry Cc: Alexsander Petry; sofia-sip-devel@lists.sourceforge.net Subject: Re: [Sofia-sip-devel] nta outgoing create: invalid URI this issue sounds really familiar but I looked yesterday and could not find where we hit it or fixed it in the past. Just to eliminate could you try the Sofia-sip code from inside the FreeSWITCH codebase and see if it resolves this issue or not, we have a variety of patches in that codebase On Thursday, January 7, 2016, Anand Mistry <anand.mis...@einfochips.com<mailto:anand.mis...@einfochips.com>> wrote: Hello Alex, Thanks for the the quick reply. Please find the answers below > If you just tried the old .so, try to compile the code again with the old > compiler (GCC 4.7.2). It is freshly compiled. > Try to add some SU_DEBUG_3 call to measure where invalid becomes < 0. I've found out that the only call which is executed is the following one invalid = nta_tpn_by_url(home, orq->orq_tpn, &scheme, &port, (url_string_t *)sip->sip_request->rq_url); > Try to initialize invalid with 0. Tried that, got same results. > If nothing helps, turn on all log levels and let me know. I've attached the logs to the mail. In order to give more clearity, i am sharing my findings till now. It seems that the sip->sip_request pointer is over-written by the call to msg_header_add() This is the call chain which produces differing results session_include_description() ---> sip_header_insert(msg, sip, (sip_header_t *)pl) < 0) ---> msg_header_add() Also please refer to the following attached files for more info. new_log - logs of new toolchain binaries old_logs - logs of old toolchain binaries msg_header_insert.txt - changes made to function outgoing_create.txt - changes made to function session_inclde_description.txt - changes made to function Notable points : please note the change in address of sip->sip_request #### session_include_description2 sip=90045c sip->msg_request=900798 Thanks and Regards, Anand Mistry Engineer | PES [https://gallery.einfochips.com/Sign.png] Product Engineering Services Software | Embedded | Semiconductor Frost & Sullivan Company of the Year 2013-2014 ________________________________ From: Alexsander Petry <alexsanderpe...@gmail.com> Sent: 06 January 2016 20:53 To: sofia-sip-devel@lists.sourceforge.net Subject: Re: [Sofia-sip-devel] nta outgoing create: invalid URI If you just tried the old .so, try to compile the code again with the old compiler (GCC 4.7.2). By the sofia code (libsofia-sip-ua/nta/nta.c), "nta outgoing create: invalid URI" message appears when "invalid < 0", and invalid is assigned in three places: invalid = tport_name_dup(home, orq->orq_tpn, tpn); invalid = nta_tpn_by_url(home, orq->orq_tpn, &scheme, &port, route_url); invalid = nta_tpn_by_url(home, orq->orq_tpn, &scheme, &port, (url_string_t *)sip->sip_request->rq_url); Try to add some SU_DEBUG_3 call to measure where invalid becomes < 0. And... invalid is not initialized! Look.. int invalid, resolved = 0, stateless = 0, user_via = agent->sa_user_via; Try to initialize invalid with 0. If nothing helps, turn on all log levels and let me know. On Wed, Jan 6, 2016 at 10:32 AM, Anand Mistry <anand.mis...@einfochips.com> wrote: Hello, I am working on this issue for a quite long time. Still I am unable to fix this. And I need some help. Recently we updated our build system (compiler, automake, etc.). However we kept the same sofia-sip library version (1.12.10). It compiles well. But it gives the following error whenever we try to place a call. nta outgoing create: invalid URI For testing, we are using the sofsip_cli client (http://sourceforge.net/projects/sofia-sip/files/sofsip-cli/). We checked the URI, it is correct. The URI we used is "<sip:toto@10.102.2.180>". It works if we use the older sofia-sip library ".so" files, with those compiled using previous compiler, but facing problem when using the newer ones. Has anybody faced this problem before? What is the solution/workaround? Please help. We also tried to use the latest version of sofia-sip library, but found the same results. Additional information: - Target system = ARM based custom board - Previous compiler = GCC (4.7.2) - Current compiler = GCC (4.9.1) Thanks and Regards, Anand Mistry Engineer | PES [https://gallery.einfochips.com/Sign.png] Product Engineering Services Software | Embedded | Semiconductor Frost & Sullivan Company of the Year 2013-2014 ************************************************************************************************************************************************************* eInfochips Business Disclaimer: This e-mail message and all attachments transmitted with it are intended solely for the use of the addressee and may contain legally privileged and confidential information. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, copying, or other use of this message or its attachments is strictly prohibited. If you have received this message in error, please notify the sender immediately by replying to this message and please delete it from your computer. Any views expressed in this message are those of the individual sender unless otherwise stated. Company has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email. ************************************************************************************************************************************************************* ------------------------------------------------------------------------------ _______________________________________________ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel -- Alexsander Petry
------------------------------------------------------------------------------
_______________________________________________ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel