[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sip-implementors
Subject:    [Sip-implementors] Clarification
From:       Suresh Arunachalam <ash.14.in () gmail ! com>
Date:       2010-12-28 5:17:36
Message-ID: AANLkTinFqwkgOmoEzbC-bd+mZPPOHaoUr6ch2ip3ini5 () mail ! gmail ! com
[Download RAW message or body]

Hi All,

I have few queries regarding the named event payload sent in an INFO
message. The payload format specifies 4 bytes format. I am framing the dtmf
payload and converting it to HEX format (my requirement). and sending to
server. My question is.
What is should be the content length is payload should it be 4 bytes?
I am casting my HEX value to char pointer which gives size of 8 bytes and
the same is pushed into content length header. I understand this is wrong,
but unable to get to a solution to fix. Sample info message provided below

INFO sip:test@192.168.10.83:5070 SIP/2.0.
From: sut <sip:471@192.168.10.65:5060>;tag=1ee100-0-13c4-2730-2d80f26e-2730.
To: sipp <sip:test@192.168.10.83:5070>;tag=1187
Call-ID: 1ee100-0-13c4-2730-2d80f26e@192.168.10.83.
CSeq: 1 INFO.
Via: SIP/2.0/UDP 192.168.10.65:5060;branch=z9hG4bK-2743-996006-7f8d47ed.
Max-Forwards: 70.
Contact: <sip:471@192.168.10.65:5060>.
Content-Type: audio/telephone-event.
Content-Length: 8.
.
100A0064

When I fix the content length my message body gets reduced to 4 bytes as
below


INFO sip:test@192.168.10.83:5070 SIP/2.0.
From: sut <sip:471@192.168.10.65:5060>;tag=1ee100-0-13c4-2730-2d80f26e-2730.
To: sipp <sip:test@192.168.10.83:5070>;tag=1187
Call-ID: 1ee100-0-13c4-2730-2d80f26e@192.168.10.83.
CSeq: 1 INFO.
Via: SIP/2.0/UDP 192.168.10.65:5060;branch=z9hG4bK-2743-996006-7f8d47ed.
Max-Forwards: 70.
Contact: <sip:471@192.168.10.65:5060>.
Content-Type: audio/telephone-event.
Content-Length: 4.
.
100A
Kind suggestions /help in this regard is highly appreciated.

Thanks
Suri

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic