Whoops, touchpad hit Send early. [1] https://wiki.asterisk.org/wiki/display/AST/Asterisk+18+Function_CHANNEL
On Fri, Sep 17, 2021 at 9:48 AM Joshua C. Colp <jc...@sangoma.com> wrote: > On Fri, Sep 17, 2021 at 9:42 AM marek <cervaj...@gmail.com> wrote: > >> hi, >> >> i need check sip headers of incoming calls >> >> i have hybrid configuration with chan_sip and chan_pjsip enabled >> >> so i need check if incoming call is through chan_sip or chan_pjsip >> because i cant use i.e. ${PJSIP_HEADER(read,something)} on chan_sip >> >> is there some function/application/variable? >> > > The CHANNEL dialplan function[1] has the name field, which will return the > channel name. If it starts with SIP then it's chan_sip, if it's PJSIP then > it's chan_pjsip. > > -- > Joshua C. Colp > Asterisk Technical Lead > Sangoma Technologies > Check us out at www.sangoma.com and www.asterisk.org > -- Joshua C. Colp Asterisk Technical Lead Sangoma Technologies Check us out at www.sangoma.com and www.asterisk.org
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users