[asterisk-users] Asterisk variable for SIP context

Dave Fullerton dfullertasterisk at shorelinecontainer.com
Tue Dec 9 14:05:58 CST 2008


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



More information about the asterisk-users mailing list