summaryrefslogtreecommitdiff
path: root/pjsip-apps/src/samples/sipstateless.c
diff options
context:
space:
mode:
Diffstat (limited to 'pjsip-apps/src/samples/sipstateless.c')
-rw-r--r--pjsip-apps/src/samples/sipstateless.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/pjsip-apps/src/samples/sipstateless.c b/pjsip-apps/src/samples/sipstateless.c
index c3cfe071..4c8354c5 100644
--- a/pjsip-apps/src/samples/sipstateless.c
+++ b/pjsip-apps/src/samples/sipstateless.c
@@ -103,20 +103,13 @@ int main()
/* Create global endpoint: */
{
- const pj_str_t *hostname;
- const char *endpt_name;
-
/* Endpoint MUST be assigned a globally unique name.
- * The name will be used as the hostname in Warning header.
+ * Ideally we should put hostname or public IP address, but
+ * we'll just use an arbitrary name here.
*/
- /* For this implementation, we'll use hostname for simplicity */
- hostname = pj_gethostname();
- endpt_name = hostname->ptr;
-
/* Create the endpoint: */
-
- status = pjsip_endpt_create(&cp.factory, endpt_name,
+ status = pjsip_endpt_create(&cp.factory, "sipstateless",
&sip_endpt);
PJ_ASSERT_RETURN(status == PJ_SUCCESS, 1);
}