I’m trying to use directmedia but it looks like that requires SIP Info rfc2796 in order to work. I’m using Polycom phones and since INFO isn’t in the allow list in the SDP the phones refuse to send an info packet.
I ran across this post from 2021 Asterisk PJSIP using SIP INFO.
Before I go poking around the source code is there anything I’m missing to enable dtmf using info?
SIP INFO doesn’t appear in SDP, it’s in the SIP packet itself. What is the actual configuration? What is the SIP trace (pjsip set logger on)? Is the res_pjsip_dtmf_info module loaded?
The module shows loaded
res_pjsip_dtmf_info.so PJSIP DTMF INFO Support 9 Running core
pjsip set logger gave me a ton of info of course. Does this sngrep info work instead? A bit easier for me to go through. If not I can post the full pjsip logger info. The public IP of my server was replaced with xxx.xxx.x.xxx below.
I noticed this doesn’t include INFO in the ALLOW section. Setting DTMF to Info works with Yealink and microsip softphone but not with Polycom. On the Polycom I get the following error in the logs “1012134126|pps |4|00|[PpsHybridC]: MsgPpsDtmfViaInfo Rejected” and no dtmf info packet is sent from the Polycom.
If INFO is required in the Allow SIP header, then I’d suggest filing an issue on Github at Issues · asterisk/asterisk · GitHub with the details as we don’t add it to the list currently.