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

List:       semsdev
Subject:    [Semsdev] [Tracker] Created: (SEMS-8) Early Announce fails Reason
From:       "Anonymous (JIRA)" <tracker () iptel ! org>
Date:       2007-05-18 11:08:40
Message-ID: 30698225.1179486520294.JavaMail.root () tracker
[Download RAW message or body]

Early Announce fails Reason Code when appending 'P-App-Param: \
                Final-Reply-Code=<code>;Final-Reply-Reason=<rs>' headers
----------------------------------------------------------------------------------------------------------------------


                 Key: SEMS-8
                 URL: http://tracker.iptel.org/browse/SEMS-8
             Project: SEMS
          Issue Type: Bug
    Affects Versions: 0.10.0_rc2
         Environment: Openser/SEMS
         Assigned To: Raphael Coeffic


When using the P-App-Param header format for Early Announce SEMS does not return the \
Reply Reason

SEMS Writes the following back to Openser
((26552) DEBUG: write_to_socket (AmUtils.cpp:588): sending: \
<:t_reply:/tmp/3804429C-464D8002000C381F-B7609BA0 404

55114:1622898574
52777BEB-464D7FF50002838A-B7F136D0
Contact: <sip:rva404@202.125.42.98>
.
.

> 
(26552) DEBUG: write_to_socket (AmUtils.cpp:614): write to unix socket: completed
(26552) DEBUG: cacheMsg (AmCtrlInterface.cpp:186): recv-ed: <400 Reason phrase \
expected> (26552) ERROR: send_msg (AmServer.cpp:152): AmServer::send_request: ser \
answered: 400 Reason phrase expected


SEMS appears to parse header values OK
(26552) DEBUG: execute (AmInterfaceHandler.cpp:156): hdrs = <P-MsgFlags: 0
P-App-Param:Final-Reply-Code: 404
Final-Reply-Reason: Not Found!

Openser Header value
modparam("tm", "tw_append",   "early_headers:'P-App-Param: \
Final-Reply-Code=$avp(early_code);Final-Reply-Reason=$avp(early_reason)")

The following code snippet is from Earlyannounce.cpp starting at line 168.

          string code = get_header_keyvalue(iptel_app_param,"Final-Reply-Code");
          if (code.length() && str2i(code, code_i)) {
            ERROR("while parsing Final-Reply-Code parameter\n");
          }
          reason = get_header_keyvalue(iptel_app_param,"Final-Reply-Reason");    

Should line 172 read
          string reason = get_header_keyvalue(iptel_app_param,"Final-Reply-Reason");  \


Regards,
Jim
jim@evolutiontel.net

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: \
                http://tracker.iptel.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
Semsdev mailing list
Semsdev@lists.iptel.org
http://lists.iptel.org/mailman/listinfo/semsdev


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

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