[Bulk] [sip-comm-dev] SIP STACK problem


#1

Hello, i am developing a gateway from a voip distributed system i
created for wi-fi ad-hoc networks. I am having a problem with
communicating with the sip proxy.
My test is:
  I am running a sip-based voip program (sip-communicator) registered
with my nist-sip-proxy and i am using it to call another voip program
(my own) that is not registered with the proxy. The proxy tries to
check if the domain is in it´s list but it is not, so it uses DNS so
send the invite to my program. So far so good, i receive the invite
like i was supposed to. The problem is when i answer.
First i send a 100 trying to the proxy (just like sip-communicator
would) and the a 180 ringing. Both of witch are received by the
sip-communicator because the proxy re sends the msg but the
sip-communicator does nothing.
The proxy writes: "transaction null" so i think it is a sip stack prob.
I am creating my own messages by hand.. that is i am simply sending
the udp packets with the header and body of normal SIP messages. Am i
leaving something out? Do i have to implement a SIP stack for my prog?

From what i have seen it helps but it is not mandatory.

Could it be a problem generated because i dont register my program
with the proxy??
If i use sip-communicator whithout the proxy the problem stands.. it
receives the messages but does nothing.
I am sending examples so you can understand better.
I would appreciate some help
Thanks
      Sérgio Gaspar

What it should be:

Response 100 Trying received:
SIP/2.0 100 Trying
Call-ID: 3db48b1fc511bbaba73bd2f79a246976@172.16.5.189
CSeq: 1 INVITE

From: "Sergio" <sip:Sergio@dominio:5060;transport=udp>;tag=5369678

Via: SIP/2.0/UDP
172.16.5.193:4000;branch=z9hG4bK184f5ff6b40340f605c96b0e887387fa,SIP/2.0/UDP
172.16.5.189:5060;branch=z9hG4bK7d9f3f5ca1ee8bba80b5e5d4d946dcba
Max-Forwards: 69
Record-Route: <sip:172.16.5.193:4000>
Content-Length: 0

Processing Response in progress
DEBUG TRANSACTION INFO: here is the client transaction:
gov.nist.javax.sip.stack.SIPClientTransaction@d32194cc
DEBUG TRANSACTION INFO: Its dialog is:
gov.nist.javax.sip.stack.SIPDialog@18adae2
ResponseForwarding, forwardResponse() (STEP 5) don't forward the 100 Trying.

···

To: <sip:david@dominio:5060>

***************************************************************

what i get:

Response 100 Trying received:
SIP/2.0 100 Trying
To: <sip:zigas@projectotelec:4400>
CSeq: 1 INVITE

From: "David" <sip:David@dominio:5060;transport=udp>;tag=31807380

Call-ID: 58f8ab09e01ad8351f0ae7b98291aa05@172.16.5.193
Max-Forwards: 69
Via: SIP/2.0/UDP
172.16.5.193:4000;branch=z9hg4bk991ed6a9fc91377b63749459cf60929f,SIP/2.0/UDP
172.16.5.193:5060;branch=z9hG4bK393fbc29618433ca3bd7e845e1c3951f
Content-Length: 0

Processing Response in progress
DEBUG TRANSACTION INFO: the transaction is null
ResponseForwarding, forwardResponse(), the client transaction does
not exist, will forward the response statelessly!
ResponseForwarding, forwardResponse(), the response statelessly forwarded:
SIP/2.0 100 Trying
To: <sip:zigas@projectotelec:4400>
CSeq: 1 INVITE

From: "David" <sip:David@dominio:5060;transport=udp>;tag=31807380

Call-ID: 58f8ab09e01ad8351f0ae7b98291aa05@172.16.5.193
Max-Forwards: 69
Via: SIP/2.0/UDP
172.16.5.193:5060;branch=z9hG4bK393fbc29618433ca3bd7e845e1c3951f
Content-Length: 0

*************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#2

Hellp S�rgio,

Make sure the dialog id (From and To tags) and transaction id in messages sent by your own prog, are match those in the request.

Hope this helps
Emil

S�rgio Gaspar wrote:

···

Hello, i am developing a gateway from a voip distributed system i
created for wi-fi ad-hoc networks. I am having a problem with
communicating with the sip proxy.
My test is:
  I am running a sip-based voip program (sip-communicator) registered
with my nist-sip-proxy and i am using it to call another voip program
(my own) that is not registered with the proxy. The proxy tries to
check if the domain is in it�s list but it is not, so it uses DNS so
send the invite to my program. So far so good, i receive the invite
like i was supposed to. The problem is when i answer.
First i send a 100 trying to the proxy (just like sip-communicator
would) and the a 180 ringing. Both of witch are received by the
sip-communicator because the proxy re sends the msg but the
sip-communicator does nothing.
The proxy writes: "transaction null" so i think it is a sip stack prob.
I am creating my own messages by hand.. that is i am simply sending
the udp packets with the header and body of normal SIP messages. Am i
leaving something out? Do i have to implement a SIP stack for my prog?

From what i have seen it helps but it is not mandatory.

Could it be a problem generated because i dont register my program
with the proxy??
If i use sip-communicator whithout the proxy the problem stands.. it
receives the messages but does nothing.
I am sending examples so you can understand better.
I would appreciate some help
Thanks
      S�rgio Gaspar

What it should be:

Response 100 Trying received:
SIP/2.0 100 Trying
Call-ID: 3db48b1fc511bbaba73bd2f79a246976@172.16.5.189
CSeq: 1 INVITE
From: "Sergio" <sip:Sergio@dominio:5060;transport=udp>;tag=5369678
To: <sip:david@dominio:5060>
Via: SIP/2.0/UDP
172.16.5.193:4000;branch=z9hG4bK184f5ff6b40340f605c96b0e887387fa,SIP/2.0/UDP
172.16.5.189:5060;branch=z9hG4bK7d9f3f5ca1ee8bba80b5e5d4d946dcba
Max-Forwards: 69
Record-Route: <sip:172.16.5.193:4000>
Content-Length: 0

Processing Response in progress
DEBUG TRANSACTION INFO: here is the client transaction:
gov.nist.javax.sip.stack.SIPClientTransaction@d32194cc
DEBUG TRANSACTION INFO: Its dialog is:
gov.nist.javax.sip.stack.SIPDialog@18adae2
ResponseForwarding, forwardResponse() (STEP 5) don't forward the 100 Trying.

***************************************************************

what i get:

Response 100 Trying received:
SIP/2.0 100 Trying
To: <sip:zigas@projectotelec:4400>
CSeq: 1 INVITE
From: "David" <sip:David@dominio:5060;transport=udp>;tag=31807380
Call-ID: 58f8ab09e01ad8351f0ae7b98291aa05@172.16.5.193
Max-Forwards: 69
Via: SIP/2.0/UDP
172.16.5.193:4000;branch=z9hg4bk991ed6a9fc91377b63749459cf60929f,SIP/2.0/UDP
172.16.5.193:5060;branch=z9hG4bK393fbc29618433ca3bd7e845e1c3951f
Content-Length: 0

Processing Response in progress
DEBUG TRANSACTION INFO: the transaction is null
ResponseForwarding, forwardResponse(), the client transaction does
not exist, will forward the response statelessly!
ResponseForwarding, forwardResponse(), the response statelessly forwarded:
SIP/2.0 100 Trying
To: <sip:zigas@projectotelec:4400>
CSeq: 1 INVITE
From: "David" <sip:David@dominio:5060;transport=udp>;tag=31807380
Call-ID: 58f8ab09e01ad8351f0ae7b98291aa05@172.16.5.193
Max-Forwards: 69
Via: SIP/2.0/UDP
172.16.5.193:5060;branch=z9hG4bK393fbc29618433ca3bd7e845e1c3951f
Content-Length: 0

*************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net