[asterisk-dev] sip contact suffix on header

Olle E. Johansson oej at edvina.net
Thu Mar 5 04:13:10 CST 2009


4 mar 2009 kl. 12.18 skrev luciano digivoice:

> Hello all,
>
> last week I got a problem, a customer needs to insert a contact  
> suffix at the SIP Header(Asterisk 1.4.22). For example:
>
> Original Contact:
> Contact: <sip:551133062182 at 192.168.0.24>
>
> Changed Contact:
> Contact: <sip:551133062182lbo at 192.168.0.24>
>
> After studing the chan_sip.c we made a patch. This patch creates a  
> new sip.conf parameter(contactsuffix), and this parameter is read by  
> the chan_sip.c, changing the contact string.
>
> This change is running without problems, but we would like to put it  
> in the new version of Asterisk 1.4.X.
>
> How could we do it?

We don't add any new features to the 1.4 branch, we do that in trunk  
and incorporate it in new releases.

I think a more generic approach would be to add a way to set the whole  
username part of the contact. This approach is very specific to your  
needs and not very generic, even though I understand that it solves  
your issues.

Patches can always be added to the bug tracker, http://bugs.digium.com  
where they will be reviewed before submission into the code.

Thanks for contributing to Asterisk!

Regards,
/O





More information about the asterisk-dev mailing list