Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] [sip] setvar not executed when call comes in via registry


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
madduck at madduck.net
Guest





PostPosted: Wed Sep 02, 2015 7:16 am    Post subject: [asterisk-users] [sip] setvar not executed when call comes i Reply with quote

Hi,

I have a line like

register => 1yyyyyyy1:xxxxxxxxxxxx@sipconnect.sipgate.de/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: madduck.bogus@madduck.net

--
_____________________________________________________________________
-- 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
Back to top
madduck at madduck.net
Guest





PostPosted: Wed Sep 02, 2015 8:27 am    Post subject: [asterisk-users] [sip] setvar not executed when call comes i Reply with quote

also sprach martin f krafft <madduck@madduck.net> [2015-09-02 14:16 +0200]:
Quote:
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.

Thanks to [TK]-Fender, we isolated the problem to a different stanza
matching the incoming call. :/

--
@martinkrafft | http://madduck.net/ | http://two.sentenc.es/

seminars, n.:
from "semi" and "arse", hence, any half-assed discussion.

spamtraps: madduck.bogus@madduck.net

--
_____________________________________________________________________
-- 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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services