linphone-users
[Top][All Lists]
Advanced

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

Re: [Linphone-users] not listening on port 5060 on Android


From: Simon Morlat
Subject: Re: [Linphone-users] not listening on port 5060 on Android
Date: Fri, 15 Apr 2011 11:46:16 +0200

In order to avoid port conflicts with other SIP application,
linphone-android does not use port 5060, but instead a random port
choosed at startup. This port is used to send and receive data.
I have no idea why your asterisk thinks linphone is listening in port
5060. Obviously it should not.
If you enable debug mode in linphone-android, you will see the register
message and this should confirm that linphone does not register with
port 5060.

SImon

Le mercredi 13 avril 2011 à 10:18 -0400, Brian J. Murrell a écrit :
> I'm using linphone 1.1.1 on Android and registering (or trying to at
> least) with my Asterisk PBX.  While I seem to be able to place outgoing
> calls from it, incoming calls fail to be received due to linphone not
> being bound to port 5060 within seconds of registering.
> 
> Here is what Asterisk sees:
> 
>     -- Registered SIP 'xxx' at 10.75.22.244 port 2518
> [2011-04-13 10:12:46] NOTICE[4091]: chan_sip.c:18479
> handle_response_peerpoke: Peer 'xxx' is now Reachable. (191ms / 2000ms)
>     -- Registered SIP 'xxx' at 10.75.22.244 port 5060
> [2011-04-13 10:12:51] NOTICE[4091]: chan_sip.c:23145 sip_poke_noanswer:
> Peer 'xxx' is now UNREACHABLE!  Last qualify: 201
> 
> Here is the traffic dump:
> 
> 10:12:46.530971 IP 10.75.22.244.2518 > pbx.5060: SIP, length: 379
> 10:12:46.568758 IP 10.75.22.244.2518 > pbx.5060: SIP, length: 4
> 10:12:46.568896 IP pbx.5060 > 10.75.22.244.2518: SIP, length: 503
> 10:12:46.723573 IP 10.75.22.244.2518 > pbx.5060: SIP, length: 543
> 10:12:46.723653 IP 10.75.22.244.2518 > pbx.5060: SIP, length: 381
> 10:12:46.725805 IP pbx.5060 > 10.75.22.244.2518: SIP, length: 537
> 10:12:46.725930 IP pbx.5060 > 10.75.22.244.2518: SIP, length: 525
> 10:12:46.726145 IP pbx.5060 > 10.75.22.244.2518: SIP, length: 505
> 10:12:46.916693 IP 10.75.22.244.2518 > pbx.5060: SIP, length: 423
> 10:12:46.916774 IP 10.75.22.244.2518 > pbx.5060: SIP, length: 545
> 10:12:46.918139 IP pbx.5060 > 10.75.22.244.2518: SIP, length: 537
> 10:12:46.918229 IP pbx.5060 > 10.75.22.244.2518: SIP, length: 527
> 10:12:47.118664 IP 10.75.22.244.2518 > pbx.5060: SIP, length: 423
> 10:12:47.118747 IP 10.75.22.244.2518 > pbx.5060: SIP, length: 381
> 10:12:47.119362 IP pbx.5060 > 10.75.22.244.2518: SIP, length: 505
> 10:12:47.217350 IP 10.75.22.244.2518 > pbx.5060: SIP, length: 546
> 10:12:47.219136 IP pbx.5060 > 10.75.22.244.5060: SIP, length: 537
> 10:12:47.219252 IP pbx.5060 > 10.75.22.244.2518: SIP, length: 528
> 10:12:47.221172 IP 10.75.22.244 > pbx: ICMP 10.75.22.244 udp port 5060
> unreachable, length 556
> 10:12:48.218376 IP pbx.5060 > 10.75.22.244.5060: SIP, length: 537
> 10:12:48.221168 IP 10.75.22.244 > pbx: ICMP 10.75.22.244 udp port 5060
> unreachable, length 556
> 10:12:49.218508 IP pbx.5060 > 10.75.22.244.5060: SIP, length: 537
> 10:12:49.293316 IP 10.75.22.244 > pbx: ICMP 10.75.22.244 udp port 5060
> unreachable, length 556
> 10:12:50.218913 IP pbx.5060 > 10.75.22.244.5060: SIP, length: 537
> 10:12:50.317158 IP 10.75.22.244 > pbx: ICMP 10.75.22.244 udp port 5060
> unreachable, length 556
> 10:12:51.219183 IP pbx.5060 > 10.75.22.244.5060: SIP, length: 537
> 10:12:51.341192 IP 10.75.22.244 > pbx: ICMP 10.75.22.244 udp port 5060
> unreachable, length 556
> 10:12:51.520166 ARP, Request who-has pbx tell 10.75.22.244, length 28
> 10:12:51.520465 ARP, Reply pbx is-at 00:1f:c6:c4:92:6a (oui Unknown),
> length 46
> 
> So as you can see, there is a successful registration but very shortly
> after the registration, linphone is no longer bound to port 5060.
> 
> ADB's logcat shows:
> 
> I/ActivityManager( 1872): Starting activity: Intent {
> act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER]
> flg=0x10200000 cmp=org.linphone/.LinphoneActivity bnds=[440,282][537,365] }
> I/SurfaceFlinger( 1872):
> I/SurfaceFlinger( 1872): SurfaceFlinger::createSurface() :
> layer->mIdentity=129, LayerName= Starting org.linphone
> I/SurfaceFlinger( 1872): SurfaceFlinger::createSurface() :
> layer->clientIndex=1, surfaceHandle->mToken=0x1
> W/Resources( 2546): Converting to string: TypedValue{t=0x12/d=0x0 a=2
> r=0x7f090007}
> D/Linphone( 2546):  ==== Phone information dump ====
> D/Linphone( 2546): DEVICE=gen7
> D/Linphone( 2546): MODEL=openAOS-froyo
> D/Linphone( 2546): SDK=8
> I/Linphone( 2546): new state [GlobalStartup]
> I/mediastreamer( 2546): Registering all filters...
> I/mediastreamer( 2546): Registering all soundcard handlers
> I/mediastreamer( 2546): Card ANDROID SND: Android Sound card added
> I/mediastreamer( 2546): Loading plugins
> W/mediastreamer( 2546): no loadable plugin support: plugins cannot be
> loaded.
> I/mediastreamer( 2546): ms_init() done
> W/mediastreamer( 2546): no loadable plugin support: plugins cannot be
> loaded.
> I/mediastreamer( 2546): linphone_core_set_playback_gain_db(): no active
> call.
> I/mediastreamer( 2546): MTU is supposed to be 1300, rtp payload max size
> will be 1240
> I/mediastreamer( 2546): DNS resolution with 0.0.0.0:2518
> I/mediastreamer( 2546): getaddrinfo returned the following addresses:
> I/mediastreamer( 2546): 0.0.0.0 port 2518
> I/mediastreamer( 2546): eXosip: Reseting timer to 10s before waking up!
> I/Linphone( 2546): Ready
> I/Linphone( 2546): new state [GlobalOn]
> I/mediastreamer( 2546): linphone_core_set_playback_gain_db(): no active
> call.
> I/Linphone( 2546): new state [RegistrationProgress]
> I/SurfaceFlinger( 1872):
> I/SurfaceFlinger( 1872): SurfaceFlinger::createSurface() :
> layer->mIdentity=130, LayerName= org.linphone/org.linphone.LinphoneActivity
> I/SurfaceFlinger( 1872): SurfaceFlinger::createSurface() :
> layer->clientIndex=0, surfaceHandle->mToken=0x0
> I/Linphone( 2546): new state [RegistrationProgress]
> I/ActivityManager( 1872): Displayed activity
> org.linphone/.LinphoneActivity: 494 ms (total 494 ms)
> W/IInputConnectionWrapper( 2546): showStatusIcon on inactive InputConnection
> I/Linphone( 2546): new state [RegistrationOk]
> I/Linphone( 2546): Registration on sip:pbx successful.
> D/dalvikvm( 2200): GC_EXPLICIT freed 1002 objects / 50296 bytes in 52ms
> 
> Any ideas?
> 
> Cheers,
> b.
> 
> _______________________________________________
> Linphone-users mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/linphone-users





reply via email to

[Prev in Thread] Current Thread [Next in Thread]