futel / asteriskserver

SIP server for Futel
Creative Commons Zero v1.0 Universal
24 stars 7 forks source link

connections from twilio endpoint not metricing properly #548

Closed kra closed 1 year ago

kra commented 1 year ago

Connections on the [twilio] PJSIP endpoint do not have the expected CHANNEL channel variable, at least not by the time metric() tries to retrieve them in util.py.

an incorrect value example is CHANNEL=PJSIP/twilio-0000111c an expected value example is CHANNEL=PJSIP/415-00001b82

WTF is the CHANNEL value being populated differently, is this because of some unfortunate difference in auth/aors or whatever in pjsip.conf?

Instead of figuring out how to fix it maybe we must just stop using that value. We use it downstream to parse out the extension. I didn't want to add any new values if the information was there but it's not worth it to wrestle Asterisk.

kra commented 1 year ago

this is is bogus but this might work:

whichever of these values is not '' 'CallerIDName' eg '410', 'ConnectedLineName' eg '445'