Hi Guys We are using the wizard to configure our pjsip trunk(see below) How do we get this setting to work contact_user=username We want to change the contact field in the sip invite to display the username of the trunk [trunk_defaults](!) type = wizard transport = transport-udp endpoint/allow_subscribe = no endpoint/allow = !all,g729 aor/qualify_frequency = 30 registration/expiration = 1800 contact_pattern=xxx [xxx](trunk_defaults) sends_auth = yes sends_registrations = yes endpoint/context = extensions remote_hosts = xxx.xx.xx.xx accepts_registrations = no endpoint/send_rpid = yes endpoint/send_pai = yes outbound_auth/username = xxx outbound_auth/password = xxx contact_pattern=xxx -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20151019/1dcc4b09/attachment.html>
On 15-10-19 07:41 AM, Andrew Colin wrote:> Hi Guys > > We are using the wizard to configure our pjsip trunk(see below) > > How do we get this setting to work > > contact_user=username > > We want to change the contact field in the sip invite to display the > username of the trunk >The Contact header can not currently be modified on a per-endpoint basis and takes its values from the generated From header. On a global scale it could be controlled using the default_user global option. Otherwise there's no real way without adding explicit support for it. -- Joshua Colp Digium, Inc. | Senior Software Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - US Check us out at: www.digium.com & www.asterisk.org
Hi Joshua If i put the default_user option per endpoint would it work?? So what exactly does the contact_user option do? I know that in freeswitch there is the option extension-in-contact.We ?basically need to achieve the same functionality? Thanks<div> </div><div> </div><!-- originalMessage --><div>-------- Original message --------</div><div>From: Joshua Colp <jcolp at digium.com> </div><div>Date: 2015/10/19 13:03 (GMT+02:00) </div><div>To: asterisk-users at lists.digium.com </div><div>Subject: Re: [asterisk-users] Modify Contact in PJsip </div><div> </div>On 15-10-19 07:41 AM, Andrew Colin wrote:> Hi Guys > > We are using the wizard to configure our pjsip trunk(see below) > > How do we get this setting to work > > contact_user=username > > We want to change the contact field in the sip invite to display the > username of the trunk >The Contact header can not currently be modified on a per-endpoint basis and takes its values from the generated From header. On a global scale it could be controlled using the default_user global option. Otherwise there's no real way without adding explicit support for it. -- Joshua Colp Digium, Inc. | Senior Software Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - US Check us out at: www.digium.com & www.asterisk.org -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20151019/c198dd3e/attachment.html>