<div dir="ltr"><div dir="ltr">On Fri, Sep 17, 2021 at 9:42 AM marek <<a href="mailto:cervajs64@gmail.com">cervajs64@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">hi,<br>
<br>
i need check sip headers of incoming calls<br>
<br>
i have hybrid configuration with chan_sip and chan_pjsip enabled<br>
<br>
so i need check if incoming call is through chan_sip or chan_pjsip <br>
because i cant use i.e. ${PJSIP_HEADER(read,something)} on chan_sip<br>
<br>
is there some function/application/variable?<br></blockquote><div><br></div><div>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. </div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-family:tahoma,sans-serif"><font color="#073763">Joshua C. Colp</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Asterisk Technical Lead</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Sangoma Technologies</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Check us out at <a href="http://www.sangoma.com" target="_blank">www.sangoma.com</a> and <a href="http://www.asterisk.org" target="_blank">www.asterisk.org</a></font><br></div></div></div></div></div></div></div></div></div></div></div>