]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip: Change default from user value. 00/1200/3
authorMark Michelson <mmichelson@digium.com>
Fri, 4 Sep 2015 19:40:38 +0000 (14:40 -0500)
committerMark Michelson <mmichelson@digium.com>
Fri, 4 Sep 2015 20:03:28 +0000 (15:03 -0500)
commit500856b4f0945c7c25b4aa8eb79e01ee4155f457
tree99aa4b40f670fc90cdffddf06e64727248931874
parenta1e1d8e81535ec07ea76756637a0ad70cf3ef431
res_pjsip: Change default from user value.

When Asterisk sends an outbound SIP request, if there is no direct
reason to place a specific value for the username in the From header,
Asterisk would generate a UUID. For example, this would happen when
sending outbound OPTIONS requests when qualifying or when sending
outbound INVITE requests when originating (if no explicit caller ID were
provided). The issue is that some SIP providers reject these sorts of
requests with a "Name too long" error response.

This patch aims to fix this by changing the default outbound username in
From headers to "asterisk". This value can be overridden by changing the
default_from_user option in the global options if desired.

ASTERISK-25377 #close
Reported by Mark Michelson

Change-Id: I6a4d34a56ff73ff4f661b0075aeba5461b7f3190
contrib/ast-db-manage/config/versions/154177371065_add_default_from_user.py [new file with mode: 0644]
include/asterisk/res_pjsip.h
res/res_pjsip.c
res/res_pjsip/config_global.c