[asterisk-dev] SIP Autopeer templates [was Re: The fate of 16033]

Kirill 'Big K' Katsnelson kkm at adaptiveai.com
Mon Feb 22 16:44:43 CST 2010


On 100217 2352, Olle E. Johansson wrote:
>> Does not look like it has been used much at all? What I am missing somewhat there is kind of a peer "template" that would be applied to an autocreated peer -- you can configure a manual one in a [section] of sip.conf, but little can be configured in an automatic one.
>>
> Funhy you should say that. In my chan_sip2 code over five years ago, there was a template system for autocreatepeer as well as for realtime. Maybe we should bring that template code alive again.

I have seen chan_sip2 in general and the template feature in particular 
mentioned in the tracker, but could never figure out what happened to 
that code.

>> Do you think such a feature could be of any interest to the community of users? I have not taken a decision to implement it yet, but I'll put that on the "pro" side of the balance.
> I think it's needed both for autocreatepeers and for realtime. I often get questions if the templates we have in text based configs is available for realtime, but it is not. We do need something for that.
> If I remember correctly, I had something like
> 
> [template_autocreatepeer]
> type=template
> 
> [mysweetrealtimeclass5]
> type=template
> 
> These where excluded from all matching and counting of objects, but used when creating the peers. I think the implementation would be much more simple now.

Sounds sweet. So does that exist anywhere?

  -kkm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5506 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.digium.com/pipermail/asterisk-dev/attachments/20100222/4a75cef3/attachment.bin 


More information about the asterisk-dev mailing list