[Serusers] t_uac_dlg pb

mma mmouhiha at softiphone.net
Thu Aug 4 10:21:07 CEST 2005


I want to send an invite request to ser's fifo using t_uac_dlg command and exec_msg,
my pb is that i can't construct a valid invite header , 
when i check the log of ser, i see that there is errors in parsing headers.

i'm trying to send something like this : 

cat > /tmp/ser_fifo << EOF
:t_uac_dlg:hh
INVITE
sip: user2 at sip.server.net
.
From: sip:user1 at sip.server.net
To: sip:user2 at sip.server.net
.
Content-Type: application/sdp
EOF

please can someone correct it.

Regards


PS : the valid header is the following :

Session Initiation Protocol
    Request-Line: INVITE sip:5001 at sip.softiphone.net SIP/2.0
    Message Header
        Via: SIP/2.0/UDP 192.168.1.100;branch=z9hG4bK52ffa6c1cda5b285
        From: "5003" <sip:5003 at sip.softiphone.net>;tag=81ee9e99dc30cc34
            SIP Display info: "5003" 
            SIP from address: sip:5003 at sip.softiphone.net
            SIP tag: 81ee9e99dc30cc34
        To: <sip:5001 at sip.softiphone.net>
            SIP to address: sip:5001 at sip.softiphone.net
        Contact: <sip:5003 at 192.168.1.100>
        Supported: replaces, timer
        Call-ID: b2d776f6e99851a4 at 192.168.1.100
        CSeq: 44559 INVITE
        User-Agent: Grandstream GXP2000 1.0.1.9
        Max-Forwards: 70
        Allow: INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE,UPDATE,PRACK
        Content-Type: application/sdp
        Content-Length: 310
    Message body
        Session Description Protocol
            Session Description Protocol Version (v): 0
            Owner/Creator, Session Id (o): 5003 8000 8000 IN IP4 192.168.1.100
            Session Name (s): SIP Call
            Connection Information (c): IN IP4 192.168.1.100
            Time Description, active time (t): 0 0
            Media Description, name and address (m): audio 5004 RTP/AVP 0 8 18 3 4 101
            Media Attribute (a): sendrecv
            Media Attribute (a): rtpmap:0 PCMU/8000
            Media Attribute (a): rtpmap:8 PCMA/8000
            Media Attribute (a): rtpmap:18 G729/8000
            Media Attribute (a): rtpmap:3 GSM/8000
            Media Attribute (a): rtpmap:4 G723/8000
            Media Attribute (a): ptime:20
            Media Attribute (a): rtpmap:101 telephone-event/8000
            Media Attribute (a): fmtp:101 0-11





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20050804/5dbce7fc/attachment.htm>


More information about the sr-users mailing list