[asterisk-dev] Channel Signalling

Arnaldo Giacomitti Junior arnaldo.junior at cits.br
Fri Sep 24 09:17:05 CDT 2010


I posted this message to user list but got no answer
 Maybe here someone can
help me, or apply this code to trunk.

 

There´s a way to get the channel signalling in dialplan?

I have changed the code in channels/chan_dahdi.c and include:

 

<             } 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 Giacomitti Junior 
Engenheiro de Desenvolvimento 
 <mailto:arnaldo.junior at cits.br> arnaldo.junior at cits.br
Tel. +55 41 3527-2785 - Ramal 222


CITS - Centro Internacional de Tecnologia de Software
Rua Carneiro Lobo, 468 | 10º Andar | Batel
CEP 80240-240 | Curitiba/PR – Brasil
Tel. +55 41 3527-2787
 <http://www.cits.br/> www.cits.br

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20100924/3b537b12/attachment-0001.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/octet-stream
Size: 9429 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-dev/attachments/20100924/3b537b12/attachment-0001.obj 


More information about the asterisk-dev mailing list