Asterisk func checksipdomain

Synopsis:

Checks if domain is a local domain

Description:

CHECKSIPDOMAIN(<domain|IP>)

This function checks if the domain in the argument is configured
as a local SIP domain that this Asterisk server is configured to handle.
Returns the domain name if it is locally handled, otherwise an empty string.
Check the domain= configuration in sip.conf

Notes

  • *CLI> show function CHECKSIPDOMAIN

Return value

Returns the resulting string.

Example

exten => s,1,Set(foo=${CHECKSIPDOMAIN(123.34.56.78)})


See also


Synopsis:

Checks if domain is a local domain

Description:

CHECKSIPDOMAIN(<domain|IP>)

This function checks if the domain in the argument is configured
as a local SIP domain that this Asterisk server is configured to handle.
Returns the domain name if it is locally handled, otherwise an empty string.
Check the domain= configuration in sip.conf

Notes

  • *CLI> show function CHECKSIPDOMAIN

Return value

Returns the resulting string.

Example

exten => s,1,Set(foo=${CHECKSIPDOMAIN(123.34.56.78)})


See also


Created by: murf, Last modification: Fri 05 of Nov, 2010 (09:20 UTC) by admin
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+