Skip to content

Commit

Permalink
usrloc: print Route header name in keepalive when Path is present
Browse files Browse the repository at this point in the history
- related to GH #2446
  • Loading branch information
miconda committed Aug 18, 2020
1 parent d74ab36 commit d49d6b8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/modules/usrloc/ul_keepalive.c
Expand Up @@ -43,7 +43,7 @@
static int ul_ka_send(str *kamsg, dest_info_t *kadst);

/**
*
*
_KAMETHOD_ _URI_ SIP/2.0\r\n
Via: SIP/2.0/_PROTO_ _IP_:_PORT_;branch=z9hG4bKx._GCNT_._BCNT_.0\r\n
__KAROUTES__
Expand All @@ -60,7 +60,7 @@ Content-Length: 0\r\n\r\n"

#define ULKA_MSG "%.*s %.*s SIP/2.0\r\n" \
"Via: SIP/2.0/%.*s %.*s:%.*s;branch=z9hG4bKx.%u.%u.0\r\n" \
"%.*s%.*s" \
"%s%.*s%.*s" \
"From: <%.*s>;tag=%.*s-%x-%lx-%lx-%x.%x\r\n" \
"To: <sip:%.*s%s%.*s>\r\n" \
"Call-ID: " ULKA_CALLID_PREFIX "%u.%u\r\n" \
Expand Down Expand Up @@ -197,6 +197,7 @@ int ul_ka_urecord(urecord_t *ur)
vaddr.len, vaddr.s,
vport.len, vport.s,
_ul_ka_counter, bcnt,
(uc->path.len>0)?"Route: ":"",
(uc->path.len>0)?uc->path.len:0,
(uc->path.len>0)?uc->path.s:"",
(uc->path.len>0)?2:0,
Expand Down

0 comments on commit d49d6b8

Please sign in to comment.