OpenSIPS / opensips

OpenSIPS is a GPL implementation of a multi-functionality SIP Server that targets to deliver a high-level technical solution (performance, security and quality) to be used in professional SIP server platforms.
https://opensips.org
Other
1.27k stars 578 forks source link

Question regarding add headers for register trunk #2778

Closed pergolafabio closed 2 years ago

pergolafabio commented 2 years ago

Hi, this is just a question, i was using Asterisk for local purposes with a few endpoints,

but for a a specific trunk i need to send a body in the register header like below, the contenttype xml , with body REGXML Is this possible with opensips? this is a new system to me

Some advice is welcome

REGISTER sip:10000000002@192.168.0.71:5065 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.72:5060;rport;branch=z9hG4bK206682350
From: Room 2 <sip:10000000002@192.168.0.72>;tag=588337480
To: Room 2 <sip:10000000002@192.168.0.72>
Call-ID: 1549082696
CSeq: 1 REGISTER
Contact: <sip:10000000002@192.168.0.72:5060;line=39b237d1561ac46>
Content-Type: text/xml
Max-Forwards: 70
User-Agent: eXosip/3.6.0
Expires: 900
Content-Length:   165

<regXML>
<version>V2.0.0</version>
<regDevName>Room 2</regDevName>
<regDevSerial>Q123456</regDevSerial>
<regDevMacAddr>1234567890</regDevMacAddr>
</regXML>
pergolafabio commented 2 years ago

It's possible :-)