1package gov.nist.javax.sip;
2
3import java.io.IOException;
4
5import javax.sip.ListeningPoint;
6import javax.sip.header.ContactHeader;
7import javax.sip.header.ViaHeader;
8
9public interface ListeningPointExt extends ListeningPoint {
10
11    /**
12     * Create a contact for this listening point.
13     *
14     * @return a contact header corresponding to this listening point.
15     *
16     * @since 2.0
17     *
18     */
19
20    ContactHeader createContactHeader() ;
21
22    /**
23     * Send a heartbeat to the specified Ip address and port
24     * via this listening point. This method can be used to send out a period
25     * CR-LF for NAT keepalive.
26     *
27     * @since 2.0
28     */
29    public void sendHeartbeat(String ipAddress, int port) throws IOException ;
30
31    /**
32     * Create a Via header for this listening point.
33     *
34     * @return a via header corresponding to this listening point. Branch ID is set to NULL.
35     *
36     * @since 2.0
37     */
38    public ViaHeader createViaHeader();
39
40
41}
42