I can not understand

2013-01-25 16:11:07] DEBUG[9908] chan_sip.c: Invalid SIP message - rejected , no callid, len 307

what is the error?

/* Find the active SIP dialog or create a new one /
p = find_call(req, addr, req->method); /
returns p with a reference only. NOT locked*/
if (p == NULL) {
ast_debug(1, “Invalid SIP message - rejected , no callid, len %zu\n”, ast_str_strlen(req->data));
ast_mutex_unlock(&netlock);
return 1;
}

If you Post a full SIP trace that could help, and when exactly is that you get this error?

It’s a debug message, not an error. Debug messages do not imply errors, and unless they start getting reported commonly, in association with a real problem, tell you nothing more than that a particular part of the code got exercised with particular values.

The OP has posted three versions of this, all with incomplete information, and with the information getting less and less each time. Based on the first version, he should be looking for non-printing characters. Also using a protocol analyzer, like wireshark, may help pinpoint that sort of problem.

If he want to use the debug message, he needs to read the code to find out why the routine would return a NULL. He might also want to add more debug lines and recompile, or set break points.

by google translator:
Hello gentlemen, Thank you for your help …
The problem is that since my client ricece OK receiving the call from the client sends an 'ACK when asterisk receives the ACK print that message …
rejected … bla bla …

NOTE:IP 10.0.2.15:5060 is EMULATOR

SIP/2.0 200 OK <— Client B OK CALL
Via: SIP/2.0/UDP 10.0.2.15:5060;branch=z9hG4bK-2034-84154;received=77.190.124.50;rport=54505
From: sip:103@droidsip.net;tag=2034
To: "110@droidsip.net"sip:110@droidsip.net;tag=as63d145cf
Call-ID: 77461dc4d20660f74d14b082c9db5652@droidsip.net
CSeq: 6 INVITE
Server: FPBX-2.10.1(1.8.19.1)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Contact: sip:110@87.117.235.69:5060
Content-Type: application/sdp
Content-Length: 180

v=0
o=root 689055816 689055816 IN IP4 87.117.235.69
s=Asterisk PBX 1.8.19.1
c=IN IP4 87.117.235.69
t=0 0
m=audio 10576 RTP/AVP 3
a=rtpmap:3 GSM/8000
a=ptime:20
a=sendrecv


[2013-01-25 16:11:07] DEBUG[9908] chan_sip.c: Trying to put ‘SIP/2.0 200’ onto UDP socket destined for 77.190.124.50:54505
[2013-01-25 16:11:07] VERBOSE[9908] chan_sip.c:
<— SIP read from UDP:77.190.124.50:54505 —>
ACK sip:110@droidsip.net SIP/2.0 --> CLIENT A ACK TO OK
Via: SIP/2.0/UDP 10.0.2.15:5060;branch=z9hG4bK-2034-84154
Max-Forwards: 70
Contact: <103@droidsip.net:54505>
From: sip:103@droidsip.net;tag=2034
To: sip:110@droidsip.net;tag=as63d145cf
Call-ID: 77461dc4d20660f74d14b082c9db5652@droidsip.net
CSeq: 6 ACK
Content-Length: 0

<------------->
[2013-01-25 16:11:07] DEBUG[9908] chan_sip.c: Header 0 [ 32]: ACK sip:110@droidsip.net SIP/2.0
[2013-01-25 16:11:07] DEBUG[9908] chan_sip.c: Header 1 [ 57]: Via: SIP/2.0/UDP 10.0.2.15:5060;branch=z9hG4bK-2034-84154
[2013-01-25 16:11:07] DEBUG[9908] chan_sip.c: Header 2 [ 16]: Max-Forwards: 70
[2013-01-25 16:11:07] DEBUG[9908] chan_sip.c: Header 3 [ 33]: Contact: <103@droidsip.net:54505>
[2013-01-25 16:11:07] DEBUG[9908] chan_sip.c: Header 4 [ 37]: From: sip:103@droidsip.net;tag=2034
[2013-01-25 16:11:07] DEBUG[9908] chan_sip.c: Header 5 [ 41]: To: sip:110@droidsip.net;tag=as63d145cf
[2013-01-25 16:11:07] DEBUG[9908] chan_sip.c: Header 6 [ 54]: Call-ID: 77461dc4d20660f74d14b082c9db5652@droidsip.net
[2013-01-25 16:11:07] DEBUG[9908] chan_sip.c: Header 7 [ 11]: CSeq: 6 ACK
[2013-01-25 16:11:07] DEBUG[9908] chan_sip.c: Header 8 [ 17]: Content-Length: 0
[2013-01-25 16:11:07] VERBOSE[9908] chan_sip.c: — (9 headers 0 lines) —
[2013-01-25 16:11:07] DEBUG[9908] chan_sip.c: = Looking for Call ID: 77461dc4d20660f74d14b082c9db5652@droidsip.net (Checking From) --From tag 2034 --To-tag as63d145cf
[2013-01-25 16:11:07] DEBUG[9908] chan_sip.c: Invalid SIP message - rejected , no callid, len 307
[2013-01-25 16:11:08] DEBUG[22062] manager.c: Running action ‘Login’