Hi list! Since I think, I have a problem in my dialplan, how can I debug it? It would be very useful a command in Asterisk CLI to ask Asterisk what it would do if the number X call the number Y. Something like "exim -bt", if someone here know the SMTP-daemon Exim... Is there such an option in Asterisk? Thanks Luca Bertoncello (lucabert at lucabert.de)
On Fri, May 29, 2015 at 07:24:45AM +0200, Luca Bertoncello wrote:> > Since I think, I have a problem in my dialplan, how can I debug it? > It would be very useful a command in Asterisk CLI to ask Asterisk what it > would do if the number X call the number Y. > Something like "exim -bt", if someone here know the SMTP-daemon Exim... > > Is there such an option in Asterisk? >Hi Luca, try 'dialplan show <number>@<context>'. Regards, Sebastian
Zitat von Sebastian Kemper <sebastian_ml at gmx.net>:> try 'dialplan show <number>@<context>'.Hello Sebastian Thanks a lot! Is there an option to check all? What I mean is: if someone call a number, Asterisk go through the dialplan and try to send the call to the extension. Now, I want to "simulate" the same. I know the source and the destination number. I'm not sure how can I know the context. How can I say Asterisk "what do you want to do with the call from X to Y"? Thanks Luca Bertoncello (lucabert at lucabert.de)
> Since I think, I have a problem in my dialplan, how can I debug it? > It would be very useful a command in Asterisk CLI to ask Asterisk what it > would do if the number X call the number Y. > Something like "exim -bt", if someone here know the SMTP-daemon Exim... > > Is there such an option in Asterisk? >Yes, it is called "core set verbose 42", the other options is "core set debug 42". Enjoy the show! Once you are more familiar with *, you might want to have a look what you can do with logger.conf. jg
Zitat von jg <webaccounts173 at jgoettgens.de>:> Yes, it is called "core set verbose 42", the other options is "core > set debug 42". Enjoy the show!OK, thanks, but with this option I can just debug what happens if I call an extension right now... I'd like to have a command to ask Asterisk how it will handle a call...> Once you are more familiar with *, you might want to have a look > what you can do with logger.conf.Maybe later... Thanks Luca Bertoncello (lucabert at lucabert.de)