Check If Call Is From Chan_sip Or Chan_pjsip
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?
thanks
Marek
—
3 thoughts on - Check If Call Is From Chan_sip Or Chan_pjsip
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.
Whoops, touchpad hit Send early.
[1] https://wiki.asterisk.org/wiki/display/AST/Asterisk+18+Function_CHANNEL
Le 17/09/2021 à 14:41, marek a écrit :
Hi,
${CHANNEL(channeltype)} should give you the information.
Regards,
Jean
—