login | register
Thu 04 of Dec, 2008 [00:40 UTC]

voip-info.org

Discuss [0] History

Asterisk func checksipdomain

Created by: murf,Last modification on Sat 14 of Jan, 2006 [05:31 UTC]

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



Comments