Send message header in trunk register

Hi, how can i send custom data if i want to register a trunk? like below, the regxml part?
is that possible?

thnx


REGISTER sip:10000000002@192.168.0.71:5065 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.72:5060;rport;branch=z9hG4bK870856495
From: Room 2 <sip:10000000002@192.168.0.72>;tag=588337480
To: Room 2 <sip:10000000002@192.168.0.72>
Call-ID: 1549082696
CSeq: 2 REGISTER
Contact: <sip:10000000002@192.168.0.72:5060;line=39b237d1561ac46>
Authorization: Digest username="10000000002", realm="XXX", nonce="710ae2f3adf7446b6ea068ed6cede929", uri="sip:10000000002@192.168.0.71:5065", response="78e1b60cb438905bdaf010e680d06734", algorithm=MD5, opaque="9c77d2882f5d8f3fb72f307e3da4d76d"
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>Rooom</regDevName>
<regDevSerial>Qxxxx</regDevSerial>
<regDevMacAddr>2c:a5:xx:xx:xx</regDevMacAddr>
</regXML>

There is no support for doing so. You would need to modify the outbound registration code.

hmm? how can i do that in asterisk? can you help me on the way ?

There is no guide or anything. It’s modifying the underlying code to add support for such a thing.

Oh ok, too bad…
Any idea bif it’s possible with FreePBX?

FreePBX uses Asterisk underneath, it would also not have the functionality you’ve asked for.

1 Like

Ok thnx for feedback

if you can live with it not being regXML use Set(PJSIP_HEADER(add,

Is that possible for a trunk?

Can you add headers to a REGISTER?

Yeah, verry interested in this too

No, you can’t use PJSIP_HEADER To add headers to a REGISTER. It only adds to outgoing INVITE requests.

ups did not notice ti was for REGISTER

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.