summaryrefslogtreecommitdiff
path: root/pjsip-apps/src/samples/sipstateless.c
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2006-06-20 15:39:07 +0000
committerBenny Prijono <bennylp@teluu.com>2006-06-20 15:39:07 +0000
commite03158426d316085bbec3088f3a54004dc832a0e (patch)
treebf745f7af641d801e7bc9cd8857da6d63ab22cd1 /pjsip-apps/src/samples/sipstateless.c
parente120cd2fd516294025fb23da7403ceac296e2411 (diff)
Yet again large diffs because of documentation/doxygen update
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@531 74dad513-b988-da41-8d7b-12977e46ad98
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);
}