[asterisk-dev] sip contact suffix on header

Klaus Darilion klaus.mailinglists at pernau.at
Wed Mar 4 05:46:43 CST 2009



luciano digivoice schrieb:
> 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 
> <mailto:sip%3A551133062182 at 192.168.0.24>>
> 
> Changed Contact:
> Contact: <sip:551133062182lbo at 192.168.0.24 
> <mailto:sip%3A551133062182lbo 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.

It will never get into the 1.4 branch as this is a new feature and 1.4 
will not get new features - only bugfixes.

To have it included in new Asterisk versions you have to make a patch 
for Asterisk-trunk (development version) and post it at bugs.digium.com.

Nevertheless putting info in the Contact header does not look like a 
nice solution.


regards
klaus

> 
> How could we do it?
> 
> Thanks a lot.
> 
> -- 
> Luciano Alves Barroso
> www.digivoice.com.br <http://www.digivoice.com.br>
> www.meucci.org <http://www.meucci.org>
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
> 
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev



More information about the asterisk-dev mailing list