diff options
Diffstat (limited to 'src/sip/sip.c')
-rw-r--r-- | src/sip/sip.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sip/sip.c b/src/sip/sip.c index e18c423..bda9261 100644 --- a/src/sip/sip.c +++ b/src/sip/sip.c @@ -1657,7 +1657,7 @@ static void register_option_timeout(struct timer *timer) TAG_END()); } -sip_endpoint_t *sip_endpoint_create(int send_no_ringing_after_progress, int receive_no_ringing_after_progress, const char *name, const char *local_user, const char *local_peer, const char *remote_user, const char *remote_peer, const char *asserted_id, int local_register, int remote_register, const char *register_user, const char *register_peer, int authenticate_local, int authenticate_remote, const char *auth_user, const char *auth_password, const char *auth_realm, const char *public_ip, const char *stun_server, int register_interval, int options_interval, int stun_interval, int expires) +sip_endpoint_t *sip_endpoint_create(const char *user_agent, int send_no_ringing_after_progress, int receive_no_ringing_after_progress, const char *name, const char *local_user, const char *local_peer, const char *remote_user, const char *remote_peer, const char *asserted_id, int local_register, int remote_register, const char *register_user, const char *register_peer, int authenticate_local, int authenticate_remote, const char *auth_user, const char *auth_password, const char *auth_realm, const char *public_ip, const char *stun_server, int register_interval, int options_interval, int stun_interval, int expires) { sip_endpoint_t *sip_ep; char local[256]; @@ -1721,6 +1721,7 @@ sip_endpoint_t *sip_endpoint_create(int send_no_ringing_after_progress, int rece goto error; } nua_set_params(sip_ep->nua, + SIPTAG_USER_AGENT_STR(user_agent), SIPTAG_ALLOW_STR("REGISTER,INVITE,ACK,BYE,CANCEL,OPTIONS,NOTIFY,INFO"), NUTAG_APPL_METHOD("REGISTER"), NUTAG_APPL_METHOD("INVITE"), |