Olivier
2008-Sep-29 09:17 UTC
[asterisk-users] Knowing incoming call technology and channel
Hi,
I've read www.voip-info.org but couldn't find the answer I'm after.
In diaplan, how can you know the technology and channel of an incoming call
?
I was thinking of something like :
[incoming]
exten => _XXXX,1,Set(CALLERID(num)=00${CALLERIDNUM})
exten => _XXXX,2,NoOp(This call comes from ${CHANNELTYPE})
exten => _XXXX,3,NoOp(This call comes from ${CHANNELNO})
exten => _XXXX,4,NoOp(Said differently this call comes from
${CHANNELTYPE}/${CHANNELNO})
My ultimate goal is to have this working with Zaptel channels (from a
bristuffed Asterisk).
Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20080929/9cb96739/attachment.htm
Alex Balashov
2008-Sep-29 09:26 UTC
[asterisk-users] Knowing incoming call technology and channel
Try this:
exten => _XXXX,1,Set(THISTECH=${CUT(CHANNEL,/,1)})
exten => _XXXX,n,NoOp(Technology is ${THISTECH})
exten => _XXXX,n,Set(THISCHANNEL=${CUT(CHANNEL,/,2)})
exten => _XXXX,n,NoOp(Channel is ${THISCHANNEL})
Olivier wrote:
> Hi,
>
> I've read www.voip-info.org <http://www.voip-info.org> but
couldn't find
> the answer I'm after.
>
> In diaplan, how can you know the technology and channel of an incoming
> call ?
> I was thinking of something like :
>
> [incoming]
> exten => _XXXX,1,Set(CALLERID(num)=00${CALLERIDNUM})
> exten => _XXXX,2,NoOp(This call comes from ${CHANNELTYPE})
> exten => _XXXX,3,NoOp(This call comes from ${CHANNELNO})
> exten => _XXXX,4,NoOp(Said differently this call comes from
> ${CHANNELTYPE}/${CHANNELNO})
>
>
> My ultimate goal is to have this working with Zaptel channels (from a
> bristuffed Asterisk).
>
> Regards
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> AstriCon 2008 - September 22 - 25 Phoenix, Arizona
> Register Now: http://www.astricon.net
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
--
Alex Balashov
Evariste Systems
Web : http://www.evaristesys.com/
Tel : (+1) (678) 954-0670
Direct : (+1) (678) 954-0671
Mobile : (+1) (706) 338-8599
Philipp Kempgen
2008-Sep-29 11:21 UTC
[asterisk-users] Knowing incoming call technology and channel
Olivier schrieb:> In diaplan, how can you know the technology and channel of an incoming call > ?${CHANNEL(channeltype)} Philipp Kempgen -- http://www.das-asterisk-buch.de - http://www.the-asterisk-book.com Amooma GmbH - Bachstr. 126 - 56566 Neuwied -> http://www.amooma.de Gesch?ftsf?hrer: Stefan Wintermeyer, Handelsregister: Neuwied B14998 --