Hi, I have a line like
register => 1yyyyyyy1:[email protected]/incoming in sip.conf, and a corresponding stanza (note especially the final setvar): [trunk-sipgate] type=peer qualify=yes insecure=invite language=de dtmfmode=rfc2833 host=sipconnect.sipgate.de fromdomain=sipconnect.sipgate.de fromuser=1yyyyyyy1 defaultuser=1yyyyyyy1 secret=xxxxxxxxxxxx context=in-trunk-sipgate session-timers=accept allow=!all,alaw,ulaw,g726 setvar=FOO=BAR If I 'sip show peer trunk-sipgate', the variable FOO is there. I also have a stanza for my local SIP phone, e.g. [0020fe8200de] ; abbreviated md5secret=abcdabcdabcdabcadbcdabcadbcdabcd context=in-martin setvar=DEFAULT_ORIGIN=11 When I make a call with this phone, the dialplan has access to ${DEFAULT_ORIGIN}. However, when a call comes in through the sipgate trunk and gets routed to the in-trunk-sipgate context, the ${FOO} variable is not set and thus not available from the dialplan. Am I doing something wrong (* v11.13 on Debian) Thanks, -- @martinkrafft | http://madduck.net/ | http://two.sentenc.es/ chaos reigns within. reflect, repent, reboot. order shall return. spamtraps: [email protected]
digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
