There?s a way to get the channel signalling in dialplan?
I have changed the code in channels/chan_dahdi.c and includes:
< } else if (!strcasecmp(data, "signalling")) {
< ast_mutex_lock(&p->lock);
< snprintf(buf, len, "%s",
sig2str(p->sig));
< ast_mutex_unlock(&p->lock);
those lines on dahdi_func_read and works perfect, but wanna know if there is
a way without touch in code.
So in dialplan I can use:
exten =>
s,n,GotoIf($["${CHANNEL(channeltype)}"="DAHDI"]?:end)
exten => s,n,GotoIf($["${CHANNEL(signalling)}"="MFC/R2"]?
mfcr2)
exten => s,n,GotoIf($["${CHANNEL(signalling)}"="ISDN
PRI"]? isdnpri)
exten => s,n,GotoIf($["${CHANNEL(signalling)}"="FXS
Kewlstart"]?
fxskewstart)
Regards,
Arnaldo.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20100902/9257fc43/attachment.htm