@miconda commented on this pull request.


> @@ -188,6 +188,8 @@ str* build_dialoginfo(char *state, str *entity, str 
> *peer, str *callid,
                        LM_ERR("while adding child\n");
                        goto error;
                }
+               /* Testing(POC) - Add a display attribute to the 
remote/identity tag */
+               xmlNewProp(tag_node, BAD_CAST "display", BAD_CAST 
"RemoteCallerName");  

I understand that you want the user part from SIP URI set in identity tag, then 
practically you have to parse it with parse_uri() function, which fills a 
structure with a field point to user part. Like:

```
parse_uri(remotetarget->s, remotetarget->len, &puri);
```
Then use `puri.user.s` and `puri.user.len`, which point to the start of user 
part and give the length. Similar will be for localtarget part. 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/2617#pullrequestreview-582380703
_______________________________________________
Kamailio (SER) - Development Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to