problem with endianness

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

 



First of all, I would very much want to use the SVN version rather 
than 0.7.0 version, which is few months old. New development should 
always use the SVN version, so that any problems could be fixed 
easily (assuming the problem still exists in the first place!).

Then would it be possible to build/run pjsip without having to 
modify build.mak/config.h? With autoconf, these modifications should 
have been made obsolete, and it should only be used for targets that 
doesn't support autoconf.

About the Invalid URI error, it could be caused by the zero IP 
address, so lets fix this problem first. In the SVN version, local 
IP is detected by:
  - calling gethostbyaddr(gethostname())
  - detecting the default route
  - enumerating IP interfaces and use the first interface

I'm sure one of the above methods would find an IP address to use, 
so please upgrade to SVN trunk.

cheers,
  -benny

Anitha Suresh wrote:
> Hello benny,
>    
>   I am using  ARM9 Processor with kernel 2.6.19 version
>    
>   I actually followed the steps u had given for MIPS Architcture on Linux(Endianness related) 
> for  my ARM Processor
>    
>   I cross compiled using:
> CC=arm-linux-gnu-gcc ./configure --target=arm --host=arm
>    
>   with the following Build.mak
>   export MACHINE_NAME := arm
> export OS_NAME := auto
> export HOST_NAME := unix
> export CC_NAME := gcc
> export TARGET_NAME := arm-unknown-none
> export CROSS_COMPILE := arm-linux-gnu-
> export LINUX_POLL := select
>    
>   ARM processor config is added to config.h as follows:
>   #elif defined (PJ_M_ARMV4)&& PJ_M_ARMV4 != 0
>       #   include <pj/compat/m_armv4.h>
>    
>   Now  without commenting PA_VALIDATE_ENDIANNES iam able to run pjsua properly but iam getting error during making a call:
>    
>    00:41:53.999 os_core_unix.c pjlib 0.7.0 for POSIX initialized
>  00:41:54.000 sip_endpoint.c Creating endpoint instance...
>  00:41:54.016          pjlib select() I/O Queue created (0x1251ac)
>  00:41:54.017 sip_endpoint.c Module "mod-msg-print" registered
>  00:41:54.017 sip_transport. Transport manager created.
>  00:41:54.019 sip_endpoint.c Module "mod-pjsua-log" registered
>  00:41:54.021 sip_endpoint.c Module "mod-tsx-layer" registered
>  00:41:54.021 sip_endpoint.c Module "mod-stateful-util" registered
>  00:41:54.023 sip_endpoint.c Module "mod-ua" registered
>  00:41:54.024 sip_endpoint.c Module "mod-pjsua" registered
>  00:41:54.025 sip_endpoint.c Module "mod-invite" registered
>  00:41:54.026      pasound.c PortAudio sound library initialized, status=0
>  00:41:54.027      pasound.c PortAudio host api count=1
>  00:41:54.027      pasound.c Sound device count=0
>  00:41:54.039          pjlib select() I/O Queue created (0x15eb2c)
>  00:41:54.060 sip_endpoint.c Module "mod-evsub" registered
>  00:41:54.061 sip_endpoint.c Module "mod-presence" registered
>  00:41:54.062 sip_endpoint.c Module "mod-refer" registered
>  00:41:54.063 sip_endpoint.c Module "mod-pjsua-pres" registered
>  00:41:54.064 sip_endpoint.c Module "mod-pjsua-im" registered
>  00:41:54.064 sip_endpoint.c Module "mod-pjsua-options" registered
>  00:41:54.065   pjsua_core.c 1 SIP worker threads created
>  00:41:54.066   pjsua_core.c pjsua version 0.7.0 for arm-unknown-none initialized
>  00:41:54.067   pjsua_core.c SIP UDP socket reachable at 0.0.0.0:5060
>  00:41:54.069    udp0x17f34c SIP UDP transport started, published address is 0.0.0.0:5060
>  00:41:54.070    pjsua_acc.c Account <sip:0.0.0.0:5060;transport=UDP> added with id 0
>  00:41:54.073    tcplis:5060 SIP TCP listener ready for incoming connections at 0.0.0.0:5060
>  00:41:54.074    pjsua_acc.c Account <sip:0.0.0.0:5060;transport=TCP> added with id 1
>  00:41:54.075  pjsua_media.c RTP socket reachable at 93.0.0.0:4000
>  00:41:54.076  pjsua_media.c RTCP socket reachable at 93.0.0.0:4001
>  00:41:54.078  pjsua_media.c RTP socket reachable at 93.0.0.0:4002
>  00:41:54.079  pjsua_media.c RTCP socket reachable at 93.0.0.0:4003
>  00:41:54.081  pjsua_media.c RTP socket reachable at 93.0.0.0:4004
>  00:41:54.082  pjsua_media.c RTCP socket reachable at 93.0.0.0:4005
>  00:41:54.084  pjsua_media.c RTP socket reachable at 93.0.0.0:4006
>  00:41:54.084  pjsua_media.c RTCP socket reachable at 93.0.0.0:4007
>  00:41:54.085  pjsua_media.c Opening null sound device..
>   >>>>
> Account list:
>   [ 0] <sip:0.0.0.0:5060;transport=UDP>: does not register
>        Online status: Online
>  *[ 1] <sip:0.0.0.0:5060;transport=TCP>: does not register
>        Online status: Online
>    
>   This is the error which occurs during call
>  01:15:16.267   pjsua_call.c Making call with acc #1 to sip:192.168.2.15
>  01:15:16.268   pjsua_call.c Dialog creation failed: Invalid URI (PJSIP_EINVALIDURI) [status=171]
>    
>   U can see that the SIP UDP socket reachable at 0.0.0.0:5060
> It is not taking the inet address.and the RTP socket address is also different.
>    
>   Please let me know what is the problem...
>    
>   Thanks
> Anitha




[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