[asterisk-dev] Question about ASTOBJ_CONTAINER_TRAVERSE

Johansson Olle E olle at voop.com
Fri Dec 22 08:29:41 MST 2006


22 dec 2006 kl. 15.19 skrev Juan Carlos Castro y Castro:

> I'm creating a dialplan app within chan_sip.c that tests the status  
> of a connection to a registrar, like "sip show registry" does. The  
> code snippet should work, but it stays needlessly in the loop once  
> the correct item in the list is found.

I would suggest a dialplan function instead of an application!

The documentation for ASTOBJ_CONTAINER_TRAVERSE documents how to  
break out.
http://www.asterisk.org/doxygen/trunk/astobj_8h.html

/O



More information about the asterisk-dev mailing list