diff options
-rw-r--r-- | res/res_pjsip.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/res/res_pjsip.c b/res/res_pjsip.c index bbf3b5ea4..11c0bf95c 100644 --- a/res/res_pjsip.c +++ b/res/res_pjsip.c @@ -3109,6 +3109,11 @@ void ast_sip_add_usereqphone(const struct ast_sip_endpoint *endpoint, pj_pool_t return; } + if (pjsip_param_find(&sip_uri->other_param, &STR_USER)) { + /* Don't add it if it's already there */ + return; + } + param = PJ_POOL_ALLOC_T(pool, pjsip_param); param->name = STR_USER; param->value = STR_PHONE; |