Skip to content

Commit

Permalink
fix: sip register location with port
Browse files Browse the repository at this point in the history
  • Loading branch information
ireader committed Dec 23, 2023
1 parent 6669901 commit 0ae77c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions libsip/src/sip-message.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ struct sip_message_t* sip_message_create(int mode)
sip_contacts_init(&msg->contacts);
sip_params_init(&msg->headers);

#if !defined(DEBUG) && !defined(_DEBUG)
sip_message_add_header(msg, "User-Agent", SIP_HEADER_USER_AGENT);
#endif
atomic_increment32(&s_gc.message);
return msg;
}
Expand Down
2 changes: 1 addition & 1 deletion libsip/test/sip-message-test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ static int sip_uas_onregister(void* param, const struct sip_message_t* req, stru
{
assert(expires == 7200);
assert(0 == strcmp(user, "bob"));
assert(0 == strcmp(location, "192.0.2.4"));
assert(0 == strcmp(location, "192.0.2.4:5060"));
struct sip_message_test_t* test = (struct sip_message_test_t*)param;
sip_uas_transaction_addref(t);
test->st.reset(t, sip_uas_transaction_release);
Expand Down

0 comments on commit 0ae77c1

Please sign in to comment.