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