Katty Xiong wrote:
> Hi all,

Hi Katty,

> Can a callee send a BYE request? I tried several ways and it didn't 
> work properly. The SUT I am using is SER.

Do you want to send the BYE end-to-end or via the proxy? If via proxy,
you need to set a Route header to it, respecting the Record-Route. Also,
keep in mind that you have to copy the From tag from the INVITE to the
To tag of the BYE.

Here is an example:

<recv request="INVITE" rrs="true">
         <action>
                 <ereg regexp=".*" search_in="hdr" header="Record-Route:"
occurence="1" assign_to="1" />

                 <ereg regexp="tag=([[:alnum:]._]*)" search_in="hdr"
header="From:" assign_to="10" />
         </action>

</recv>

...

<send retrans="500">
<![CDATA[
BYE [next_url] SIP/2.0
[last_Via:]
Max-Forwards: 70
Route:[$1]
From: "Alice" <sip:[EMAIL PROTECTED]>;tag=to_[call_id]
To: "Bob" <sip:[EMAIL PROTECTED]>;[$10]
[last_Call-ID:]
Contact: <sip:[EMAIL PROTECTED]:[local_port]>
Cseq: 10 BYE
Content-Length: 0
]]>
</send>

Monica

-- 
Dipl. Ing. Monica Sarbu
http://www.iptel.org/~monica

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to