Hi, does anybody know about the setvar option in asterisk's sip.conf. I am trying to define it for a peer that's used when making calls using the originate ami call, but it seems to not have any effect. Marcus -- Marcus Hunger - hunger at sipgate.de Telefon: +49 (0)211-63 55 55-61 Telefax: +49 (0)211-63 55 55-22 indigo networks GmbH - Gladbacher Str. 74 - 40219 D?sseldorf HRB D?sseldorf 39841 - Gesch?ftsf?hrer: Thilo Salmon, Tim Mois Steuernummer: 106/5713/2881, Umsatzsteuer-ID: DE219349391 www.sipgate.de - www.sipgate.at - www.sipgate.co.uk -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080328/a41e9ee3/attachment.htm
On Fri, 2008-03-28 at 12:30 +0100, Marcus Hunger wrote:> does anybody know about the setvar option in asterisk's sip.conf.Sure! This is one of my favorite features. Let's say I have a definition for my phone in sip.conf, and it looks something like this: [myphone] secret=verysecretpassword type=friend ; a friend is both a user and a peer host=dynamic ; phone will register to Asterisk disallow=all allow=gsm ; first, try to negotiate gsm allow=ulaw ; the try ulaw setvar=MYVAR=blah Whenever a call comes into Asterisk from this particular phone, Asterisk will automatically create a channel variable named MYVAR, and ${MYVAR} will contain the value "blah". I can then use it for whatever purpose I see fit within my dialplan. -- Jared Smith Community Relations Manager Digium, Inc.
Maybe Matching Threads
- With ARI, is it possible to create (originate) a call and pass both the caller id name and number?
- Load issues using AGI
- With ARI, is it possible to create (originate) a call and pass both the caller id name and number?
- Reload dialplan from bash in strict mode
- PJSIP reInvite