[asterisk-users] Asterisk variable for SIP context
Mike
list at virtutel.ca
Tue Dec 9 17:53:24 CST 2008
Dave,
Well that worked perfectly. Thank you.
A more "advanced" question then, for those who want to be challenged:
Brief: How can I find the values in the setvar field of a SIP peer, if I
don`t have access to ${var_a}.
Details:
When I place an outgoing call, I can easily access a variable that is in the
setvar field of the sip entry of the phone used.
i.e. Noop(${var_a}) works perfectly is setvar=var_a=foo is set.
BUT when I use two phones (Polycom in my case, I doubt it's relevant), place
phone A on forward to 555-555-5555, place a call from phone B to phone A, on
that "forward call" I lose the setvar (I get ''). The value is empty (it's
set, albeit differently, in both phone A and phone B sip entry. So I should
be getting something).
What am I missing?
Mike
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Dave Fullerton
Sent: Tuesday, December 09, 2008 15:06
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Asterisk variable for SIP context
Mike wrote:
> Hi,
>
> Say I wanted to know what context a SIP registration is using to dial out
in
> my dialplan, what would I do?
>
> For example, I have phones on a "local-calls-only" context (as defined in
> sip.conf), others in "unrestricted-calls". In my dialplan, I`d like to
act
> on that knowledge.
>
> Mike
>
The SIPPEER function should allow you to extract what context is defined
in sip.conf.
-Dave
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list