@@ -306,6 +306,7 @@ static int request(struct sipreg *reg, bool reset_ls)
306
306
* @param sip SIP Stack instance
307
307
* @param reg_uri SIP Request URI
308
308
* @param to_uri SIP To-header URI
309
+ * @param from_name SIP From-header display name (optional)
309
310
* @param from_uri SIP From-header URI
310
311
* @param expires Registration interval in [seconds]
311
312
* @param cuser Contact username
@@ -323,7 +324,8 @@ static int request(struct sipreg *reg, bool reset_ls)
323
324
* @return 0 if success, otherwise errorcode
324
325
*/
325
326
int sipreg_register (struct sipreg * * regp , struct sip * sip , const char * reg_uri ,
326
- const char * to_uri , const char * from_uri , uint32_t expires ,
327
+ const char * to_uri , const char * from_name ,
328
+ const char * from_uri , uint32_t expires ,
327
329
const char * cuser , const char * routev [], uint32_t routec ,
328
330
int regid , sip_auth_h * authh , void * aarg , bool aref ,
329
331
sip_resp_h * resph , void * arg ,
@@ -340,7 +342,7 @@ int sipreg_register(struct sipreg **regp, struct sip *sip, const char *reg_uri,
340
342
if (!reg )
341
343
return ENOMEM ;
342
344
343
- err = sip_dialog_alloc (& reg -> dlg , reg_uri , to_uri , NULL , from_uri ,
345
+ err = sip_dialog_alloc (& reg -> dlg , reg_uri , to_uri , from_name , from_uri ,
344
346
routev , routec );
345
347
if (err )
346
348
goto out ;
0 commit comments