NoFate
#1
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>
jcolp
#2
There is no support for doing so. You would need to modify the outbound registration code.
NoFate
#3
hmm? how can i do that in asterisk? can you help me on the way ?
jcolp
#4
There is no guide or anything. It’s modifying the underlying code to add support for such a thing.
NoFate
#5
Oh ok, too bad…
Any idea bif it’s possible with FreePBX?
jcolp
#6
FreePBX uses Asterisk underneath, it would also not have the functionality you’ve asked for.
1 Like
if you can live with it not being regXML use Set(PJSIP_HEADER(add,
NoFate
#9
Is that possible for a trunk?
Can you add headers to a REGISTER?
NoFate
#11
Yeah, verry interested in this too
jcolp
#12
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
system
closed
#14
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.