theintencity / rtmplite

Flash RTMP server and SIP-RTMP gateway in Python
Other
201 stars 88 forks source link

Adding custom SIP Headers to invite #109

Closed waterjump closed 6 years ago

waterjump commented 7 years ago

Are there any good examples of passing a custom SIP header on an invite call? I have been digging through this code and documentation for days and coming up short. This is for use with Twilio. See their details on "SipHeader_" about halfway down this page. https://www.twilio.com/docs/api/twiml/twilio_request

Thanks.

ROBERT-MCDOWELL commented 7 years ago

standard SIP custom header prefix is sip_h_X-variable

waterjump commented 7 years ago

@madovsky Can you please direct me to the part of the rtmplite API where I can provide headers?

ROBERT-MCDOWELL commented 6 years ago

look at def _createRegister() in siprtmp_gevent.py or siprtmp.py

waterjump commented 6 years ago

Thank you. Closing.