Louisgdm / siphon

Automatically exported from code.google.com/p/siphon
0 stars 0 forks source link

iphone receives bad destination , only register messages destined for this server are accepted #329

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. setup siphon account in settings
2. open application
3. received bad request 400 

What is the expected output? What do you see instead?

be able to login, but got a bad request when connecting to server

What version of the product are you using? On what operating system?
3.1.2  iphone os / 2.1 siphon 

Please provide any additional information below.

Iphone is jail broken.

Original issue reported on code.google.com by dcecch...@gmail.com on 20 Nov 2009 at 4:24

GoogleCodeExporter commented 8 years ago
could you define log level to detailled ?
And post here the log file, it is written in /var/mobile/Library/Siphon

Original comment by samuelv0...@gmail.com on 24 Nov 2009 at 10:25

GoogleCodeExporter commented 8 years ago
11:28:27.376 sip_endpoint.c  Module "mod-pjsua-log" registered
 11:28:27.377 sip_endpoint.c  Module "mod-tsx-layer" registered
 11:28:27.377 sip_endpoint.c  Module "mod-stateful-util" registered
 11:28:27.378 sip_endpoint.c  Module "mod-ua" registered
 11:28:27.379 sip_endpoint.c  Module "mod-100rel" registered
 11:28:27.380 sip_endpoint.c  Module "mod-pjsua" registered
 11:28:27.381 sip_endpoint.c  Module "mod-invite" registered
 11:28:27.462          pjlib  select() I/O Queue created (0x82fa14)
 11:28:27.465   conference.c  Creating conference bridge with 254 ports
 11:28:27.466   conference.c  Sound device successfully created for port 0
 11:28:27.467 sip_endpoint.c  Module "mod-evsub" registered
 11:28:27.468 sip_endpoint.c  Module "mod-presence" registered
 11:28:27.469        evsub.c  Event pkg "presence" registered by mod-presence
 11:28:27.469 sip_endpoint.c  Module "mod-refer" registered
 11:28:27.469        evsub.c  Event pkg "refer" registered by mod-refer
 11:28:27.470 sip_endpoint.c  Module "mod-pjsua-pres" registered
 11:28:27.470 sip_endpoint.c  Module "mod-pjsua-im" registered
 11:28:27.471 sip_endpoint.c  Module "mod-pjsua-options" registered
 11:28:27.471   pjsua_core.c  1 SIP worker threads created
 11:28:27.471   pjsua_core.c  pjsua version 1.0.3-trunk for arm-apple-darwin9 initialized
 11:28:27.492   pjsua_core.c  SIP UDP socket reachable at 25.209.76.245:5060
 11:28:27.493    udp0x857c00  SIP UDP transport started, published address is
25.209.76.245:5060
 11:28:27.502  pjsua_media.c  RTP socket reachable at 25.209.76.245:4000
 11:28:27.503  pjsua_media.c  RTCP socket reachable at 25.209.76.245:4001
 11:28:27.512  pjsua_media.c  RTP socket reachable at 25.209.76.245:4002
 11:28:27.512  pjsua_media.c  RTCP socket reachable at 25.209.76.245:4003
 11:28:29.469    pjsua_acc.c  Account sip:REMOVED@64.61.93.190 added with id 0
 11:28:29.472       endpoint  Request msg REGISTER/cseq=38195 (tdta0x870a00) created.
 11:28:29.473    tsx0x871a64  Transaction created for Request msg REGISTER/cseq=38196
(tdta0x870a00)
 11:28:29.473    tsx0x871a64  Sending Request msg REGISTER/cseq=38196 (tdta0x870a00)
in state Null
 11:28:29.473  sip_resolve.c  Target '64.61.93.190:0' type=Unspecified resolved to
'64.61.93.190:5060' type=UDP (UDP transport)
 11:28:29.474   pjsua_core.c  TX 459 bytes Request msg REGISTER/cseq=38196
(tdta0x870a00) to UDP 64.61.93.190:5060:
Via: SIP/2.0/UDP
25.209.76.245:5060;rport;branch=z9hG4bKPj3J.p9htbaxysyvLATIq2dKO0qzxGrJXy
Max-Forwards: 70
From: <sip:REMOVED@64.61.93.190>;tag=VZFRhN8GpP7-OI5VJoABmUkvpFwKS-GJ
To: <sip:REMOVED@64.61.93.190>
Call-ID: p1UiC0ttdq-T5H7d4OgMpmczm6DL8utq
CSeq: 38196 REGISTER
User-Agent: Siphon PjSip v1.0.3-trunk/arm-apple-darwin9
Contact: <sip:REMOVED@25.209.76.245:5060>
Expires: 1800
Content-Length:  0

--end msg--
 11:28:29.474    tsx0x871a64  State changed from Null to Calling, event=TX_MSG
 11:28:29.475    pjsua_acc.c  Registration sent
 11:28:29.974    tsx0x871a64  Retransmit timer event
 11:28:29.975    tsx0x871a64  Retransmiting Request msg REGISTER/cseq=38196
(tdta0x870a00), count=0, restart?=1
 11:28:29.975   pjsua_core.c  TX 459 bytes Request msg REGISTER/cseq=38196
(tdta0x870a00) to UDP 64.61.93.190:5060:
REGISTER sip:64.61.93.190 SIP/2.0
Via: SIP/2.0/UDP
25.209.76.245:5060;rport;branch=z9hG4bKPj3J.p9htbaxysyvLATIq2dKO0qzxGrJXy
Max-Forwards: 70
From: <sip:REMOVED@64.61.93.190>;tag=VZFRhN8GpP7-OI5VJoABmUkvpFwKS-GJ
To: <sip:REMOVED@64.61.93.190>
Call-ID: p1UiC0ttdq-T5H7d4OgMpmczm6DL8utq
CSeq: 38196 REGISTER
User-Agent: Siphon PjSip v1.0.3-trunk/arm-apple-darwin9
Contact: <sip:REMOVED@25.209.76.245:5060>
Expires: 1800
Content-Length:  0

--end msg--
 11:28:30.078 sip_endpoint.c  Processing incoming message: Response msg
100/REGISTER/cseq=38196 (rdata0x858064)
 11:28:30.078   pjsua_core.c  RX 392 bytes Response msg 100/REGISTER/cseq=38196
(rdata0x858064) from UDP 64.61.93.190:5060:
SIP/2.0 100 Trying Registration
Via: SIP/2.0/UDP
25.209.76.245:5060;rport=15367;branch=z9hG4bKPj3J.p9htbaxysyvLATIq2dKO0qzxGrJXy;
received=208.54.94.77
From: <sip:REMOVED@64.61.93.190>;tag=VZFRhN8GpP7-OI5VJoABmUkvpFwKS-GJ
To: <sip:REMOVED@64.61.93.190>
Call-ID: p1UiC0ttdq-T5H7d4OgMpmczm6DL8utq
CSeq: 38196 REGISTER
Server: OpenSER (1.3.2-notls (i386/linux))
Content-Length: 0

--end msg--
 11:28:30.079    tsx0x871a64  Incoming Response msg 100/REGISTER/cseq=38196
(rdata0x858064) in state Calling
 11:28:30.079    tsx0x871a64  State changed from Calling to Proceeding, event=RX_MSG
 11:28:30.123 sip_endpoint.c  Processing incoming message: Response msg
400/REGISTER/cseq=38196 (rdata0x858064)
 11:28:30.123   pjsua_core.c  RX 492 bytes Response msg 400/REGISTER/cseq=38196
(rdata0x858064) from UDP 64.61.93.190:5060:
SIP/2.0 400 Bad destination, only register messages destined for this server 
are accepted
Via: SIP/2.0/UDP
25.209.76.245:5060;received=208.54.94.77;rport=15367;branch=z9hG4bKPj3J.p9htbaxy
syvLATIq2dKO0qzxGrJXy
From: <sip:REMOVED@64.61.93.190>;tag=VZFRhN8GpP7-OI5VJoABmUkvpFwKS-GJ
To: <sip:REMOVED@64.61.93.190>;tag=329cfeaa6ded039da25ff8cbb8668bd2.a7c2
Call-ID: p1UiC0ttdq-T5H7d4OgMpmczm6DL8utq
CSeq: 38196 REGISTER
Server: OpenSER (1.3.2-notls (i386/linux))
Content-Length: 0

--end msg--
 11:28:30.123    tsx0x871a64  Incoming Response msg 400/REGISTER/cseq=38196
(rdata0x858064) in state Proceeding
 11:28:30.123    tsx0x871a64  State changed from Proceeding to Completed, event=RX_MSG
 11:28:30.123    pjsua_acc.c  SIP registration failed, status=400 (Bad destination,
only register messages destined for this server are accepted)
 11:28:30.480 sip_endpoint.c  Processing incoming message: Response msg
100/REGISTER/cseq=38196 (rdata0x858064)
 11:28:30.480   pjsua_core.c  RX 392 bytes Response msg 100/REGISTER/cseq=38196
(rdata0x858064) from UDP 64.61.93.190:5060:
SIP/2.0 100 Trying Registration
Via: SIP/2.0/UDP
25.209.76.245:5060;rport=15367;branch=z9hG4bKPj3J.p9htbaxysyvLATIq2dKO0qzxGrJXy;
received=208.54.94.77
From: <sip:REMOVED@64.61.93.190>;tag=VZFRhN8GpP7-OI5VJoABmUkvpFwKS-GJ
To: <sip:REMOVED@64.61.93.190>
Call-ID: p1UiC0ttdq-T5H7d4OgMpmczm6DL8utq
CSeq: 38196 REGISTER
Server: OpenSER (1.3.2-notls (i386/linux))
Content-Length: 0

Original comment by dcecch...@gmail.com on 24 Nov 2009 at 10:32

GoogleCodeExporter commented 8 years ago
It seems this ia a configuration error on your iphone or on your OpenSER.

Original comment by samuelv0...@gmail.com on 24 Nov 2009 at 11:04

GoogleCodeExporter commented 8 years ago
Doing a test to my local asterisk server it works fine but the remote provider 
, I
received that error. Maybe they are denying the IP from the iphone provider 
network.
Thanks for looking into it.

Original comment by dcecch...@gmail.com on 24 Nov 2009 at 11:17