osip-dev
[Top][All Lists]
Advanced

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

Re: [osip-dev] What can cause the call of cb_transp_error?


From: Aymeric Moizard
Subject: Re: [osip-dev] What can cause the call of cb_transp_error?
Date: Mon, 2 Feb 2015 16:15:12 +0100



2015-02-01 15:15 GMT+01:00 Roger Schreiter <address@hidden>:
Hello,
 
Hi Roger 

I just checked "void ict_snd_invite (osip_transaction_t * ict, osip_event_t * evt)"

If you confirm that you returned 0 from your "cb_send_message" callback, then
the issue might be related to issue with "Via" header. The cb_send_message wil
be called if the Via is not correct for example. There are other use-case where it
may be called.

The easiest would be to put a breakpoint in ict_handle_transport_error and see
why it's called! Give the backtrace & full logs.

Regards
Aymeric


I wonder, why the callback function for transport error is called
in my programm.

My programm is accepting an INVITE from remote, is sending back
100 Trying immedeately, and then sending a new INVITE to another
IP address.

osip is calling my call back function cb_send_message(), which
sends the INVITE and returns with 0.
And then immedeately my cb_transp_error() is called with that
INVITE message as argument (less than 1 ms later).

How can osip guess, there is a transport error that quickly?

Any ideas, what can cause it?

The invite and the log follow here.

Regards,
Roger.


INVITE SIP:address@hidden SIP/2.0
Via: SIP/2.0/UDP 192.168.1.1;branch=454a55ef_1254647244
From: <SIP:address@hidden>;tag=296aae9d
To: <SIP:address@hidden>
Call-ID: address@hidden
CSeq: 1 INVITE
Contact: <SIP:address@hidden>
Content-Type: application/sdp
Allow: ACK, INVITE, CANCEL, BYE
Max-Forwards: 70
User-Agent: PLANica 0.1
Content-Length:   355
...


|5| <osip_transaction.c: 136> | allocating transaction resource 2
10ad96517d0d0c3

|5| <ict.c: 32> | allocating ICT context

|7| <osip_transaction.c: 349> | sipevent tr->transactionid: 2

|7| <osip_transaction.c: 350> | sipevent tr->state: 0

|7| <osip_transaction.c: 351> | sipevent evt->type: 16

|7| <osip_transaction.c: 352> | sipevent evt->sip: 4503810

|7| <osip_transaction.c: 373> | sipevent evt: method called!

|6| <osip_event.c: 51> | MESSAGE REC. CALLID:10ad96517d0d0c3

|7| <osip_transaction.c: 349> | sipevent tr->transactionid: 2

|7| <osip_transaction.c: 350> | sipevent tr->state: 1

|7| <osip_transaction.c: 351> | sipevent evt->type: 13

|7| <osip_transaction.c: 352> | sipevent evt->sip: 4503e10

_______________________________________________
osip-dev mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/osip-dev



--

reply via email to

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