Changeset 531 for pjproject/trunk/pjsip-apps/src/samples/sipstateless.c
- Timestamp:
- Jun 20, 2006 3:39:07 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/samples/sipstateless.c
r448 r531 104 104 /* Create global endpoint: */ 105 105 { 106 const pj_str_t *hostname;107 const char *endpt_name;108 109 106 /* Endpoint MUST be assigned a globally unique name. 110 * The name will be used as the hostname in Warning header. 107 * Ideally we should put hostname or public IP address, but 108 * we'll just use an arbitrary name here. 111 109 */ 112 110 113 /* For this implementation, we'll use hostname for simplicity */114 hostname = pj_gethostname();115 endpt_name = hostname->ptr;116 117 111 /* Create the endpoint: */ 118 119 status = pjsip_endpt_create(&cp.factory, endpt_name, 112 status = pjsip_endpt_create(&cp.factory, "sipstateless", 120 113 &sip_endpt); 121 114 PJ_ASSERT_RETURN(status == PJ_SUCCESS, 1);
Note: See TracChangeset
for help on using the changeset viewer.