Skip to content

Commit 20b9d3f

Browse files
author
Ing. Jan Kaláb
committed
Assume tel phone is voice phone
This allow Jitsi client to make SIP calls
1 parent bfaaa67 commit 20b9d3f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sm/mod_iq_vcard.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@ static pkt_t _iq_vcard_to_pkt(sm_t sm, os_t os) {
190190

191191
log_debug(ZONE, "extracted dbkey %s val '%s' for vcard key %s", dkey, dval, vkey);
192192

193+
if (!strcmp(dkey, "tel")) {
194+
nad_append_elem(pkt->nad, NAD_ENS(pkt->nad, 2), "VOICE", pkt->nad->elems[elem].depth + 1);
195+
}
193196
nad_append_elem(pkt->nad, NAD_ENS(pkt->nad, 2), vskey, pkt->nad->elems[elem].depth + 1);
194197
nad_append_cdata(pkt->nad, dval, strlen(dval), pkt->nad->elems[elem].depth + 2);
195198
}

0 commit comments

Comments
 (0)