<div dir="ltr"><br><br><div class="gmail_quote">2008/9/29 Alex Balashov <span dir="ltr"><<a href="mailto:abalashov@evaristesys.com">abalashov@evaristesys.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Try this:<br>
<br>
exten => _XXXX,1,Set(THISTECH=${CUT(CHANNEL,/,1)})<br>
exten => _XXXX,n,NoOp(Technology is ${THISTECH})<br>
exten => _XXXX,n,Set(THISCHANNEL=${CUT(CHANNEL,/,2)})<br>
exten => _XXXX,n,NoOp(Channel is ${THISCHANNEL})</blockquote><div><br>Hi,<br><br>I don't have any spare zaptel enabled system I could try this on, but I was not aware of this CHANNEL variable.<br>Now, I can see it here <a href="http://www.voip-info.org/wiki/view/Asterisk+variables">http://www.voip-info.org/wiki/view/Asterisk+variables</a><br>
Maybe, I will add a line in <a href="http://www.voip-info.org">www.voip-info.org</a> to keep others (me?) from searching again.<br><br>Thanks for helping<br> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
Olivier wrote:<br>
<br>
> Hi,<br>
><br>
> I've read <a href="http://www.voip-info.org" target="_blank">www.voip-info.org</a> <<a href="http://www.voip-info.org" target="_blank">http://www.voip-info.org</a>> but couldn't find<br>
<div><div></div><div class="Wj3C7c">> the answer I'm after.<br>
><br>
> In diaplan, how can you know the technology and channel of an incoming<br>
> call ?<br>
> I was thinking of something like :<br>
><br>
> [incoming]<br>
> exten => _XXXX,1,Set(CALLERID(num)=00${CALLERIDNUM})<br>
> exten => _XXXX,2,NoOp(This call comes from ${CHANNELTYPE})<br>
> exten => _XXXX,3,NoOp(This call comes from ${CHANNELNO})<br>
> exten => _XXXX,4,NoOp(Said differently this call comes from<br>
> ${CHANNELTYPE}/${CHANNELNO})<br>
><br>
><br>
> My ultimate goal is to have this working with Zaptel channels (from a<br>
> bristuffed Asterisk).<br>
><br>
> Regards<br>
><br>
><br>
><br>
</div></div>> ------------------------------------------------------------------------<br>
><br>
> _______________________________________________<br>
> -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
><br>
> AstriCon 2008 - September 22 - 25 Phoenix, Arizona<br>
> Register Now: <a href="http://www.astricon.net" target="_blank">http://www.astricon.net</a><br>
><br>
> asterisk-users mailing list<br>
> To UNSUBSCRIBE or update options visit:<br>
> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
<br>
<br>
--<br>
Alex Balashov<br>
Evariste Systems<br>
Web : <a href="http://www.evaristesys.com/" target="_blank">http://www.evaristesys.com/</a><br>
Tel : (+1) (678) 954-0670<br>
Direct : (+1) (678) 954-0671<br>
Mobile : (+1) (706) 338-8599<br>
<br>
_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
AstriCon 2008 - September 22 - 25 Phoenix, Arizona<br>
Register Now: <a href="http://www.astricon.net" target="_blank">http://www.astricon.net</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</blockquote></div><br></div>