[asterisk-users] Asterisk variable for SIP context

Mike list at virtutel.ca
Tue Dec 9 17:33:12 CST 2008


Great, just what I needed.  Thanks!

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